Arduino Random Color Generator with 256 Color LED. - This example uses the Duemilanove to PWM (Pulse Width Modulate) the base drive for a three color LED (Red, Green, and Blue). Based on the and the relative ntensity of each output, 256 colors can be produced. This example uses an analog input to change the cycle time, or the time between color changes. A random number is generated to control the output intensity of each LED. It is a good example of an analog input, and analog outputs, as the LEDs are being modulated in an analog format with PWM. The circuit is more dynamic with an analog input controlling the rate of change. The PWM output could also be used to control motors or larger loads with the use if a relay or larger power transistors.
Link to this comment:
Video Responses
All Comments (0)