RGB LED driven by PWM using Netduino
Embedded-Lab is doing a series of tutorials for the Netduino. The Day 7 tutorial of a series is RGB LED color formation using Pulse Width Modulation:
This entry was posted in LEDs, tutorials and tagged netduino, PWM, RGB.
Pulse Width Modulation (PWM) is a digital method of delivering a varying amount of power to a load, and hence can be used to control the brightness of an LED or speed of a DC motor. Controlling the power, we will make this tutorial colorful using a Red Green Blue (RGB) LED. Each segment (lead) of an RGB-LED will get a PWM signal via RgbLed class allowing us to illuminate the RGB-LED with any color defined by RGB. This class can also generate random colors. Using the RgbLed class, some standard colors can also be sent to a RGB-LED.