Pulse-Width Modulation

  • Warren W. Gay


This chapter explores pulse-width modulation (PWM) using the Raspberry Pi. PWM is applied in motor control, light dimming, and servo controls, to name a few examples. To keep the hardware simple and the software small enough to read, we’re going to apply PWM to driving an analog meter in this chapter.


Duty Cycle Static Void Hardware Simple Integer Divisor Full Deflection 

Copyright information

© Warren W. Gay 2014

Authors and Affiliations

  • Warren W. Gay
    • 1
  1. 1.OntarioCanada

Personalised recommendations