O'Reilly logo

Learning BeagleBone Python Programming by Alexander Hiam

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

Chapter 4. PWM and ADC Subsystems

In this chapter, we will take a look at the pulse width modulation (PWM) and analog-to-digital converter (ADC) subsystems. We will cover the following topics:

  • Fading an LED
  • Controlling servo motors
  • Voltage dividers
  • Voltage followers
  • Sensing light levels with a photocell
  • Sensing distance with Sharp IR rangefinders
  • Building a simple robot

PWM

The BeagleBone's PWM subsystem contains three enhanced PWM (ePWM) modules and one enhanced capture (eCAP) module, all of which have their own two outputs, for a total of up to eight PWM outputs (refer to Appendix A, The BeagleBone Black Pinout to see which pins support PWM). We briefly covered what PWM is in Chapter 1, Before We Begin, but let's look at it in a bit more detail before ...

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