O'Reilly logo

Programming with STM32: Getting Started with the Nucleo Board and C/C++ by Donald Norris

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

10

Pulse Width Modulation (PWM)

This chapter concerns pulse width modulation (PWM), which is a digital signal easily generated by a MCU for a variety of purposes. These purposes commonly include controlling the following:

•   A standard servo motor’s position

•   The rotational speed of a continuous rotation servo

•   The luminescence of a light emitter

•   The rotation speed of a standard electric motor with external driver circuitry

•   A photovoltaic solar battery charger

•   The maximum power-point track

•   An output waveform such as sine, triangle, or square

•   An acoustic sound generator

This chapter’s projects will demonstrate how to control the luminescence (light intensity) of a normal LED, the color and luminescence of a tricolor ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required