March 2017
Beginner to intermediate
422 pages
8h 4m
English
Pulse wave modulation, or PWM is a technique where the power is oscillated between on and off at a certain frequency. There are several applications for this. In this recipe, we will start off easy and see how it can control the perceived brightness of an LED. By changing the oscillation frequency using PWM, we can flicker an LED to give the effect of changing brightness. Let's try it out!
If you have SPI or I2C enabled, make sure not to use the pins that are reserved for that mode.
Read now
Unlock full access