From the course: Raspberry Pi: GPIO
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Pulse width modulation in depth
- [Instructor] Pulse width modulation is frequently used with the Raspberry Pi and there are some tricks to using it efficiently. It's worth our time to look at pulse width modulation in depth. Pulse width modulation is a method to simulate a variable analog signal with a digital signal. For example, consider an LED. It can only be turned on or off. Pulse width modulation is used by dimmers to turn LED room lights from off to middle brightness to fully on. Pulse width modulation works by rapidly turning a digital signal on and off, on and off faster than the device can respond. If the digital signal is always off, the light will appear off. If the digital signal is always on, the light will appear on. If the digital signal is only on half the time, the light will appear to be on at half brightness. There are two controls for pulse width modulation. The first is signal frequency. This is how quickly a signal switches…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.