课程: Raspberry Pi: GPIO

今天就学习课程吧!

今天就开通帐号,24,100 门业界名师课程任您挑!

Pulse width modulation in depth

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…

内容