This is a PIC 18F1320 based RGB led controller. The LED is a 5Watt 70 lumen RGB with a common anode configuration, bought from dealextreme for $6.36. A software based PWM controls three Leds, Red Green and Blue to form different colors. each LED has 50 different intensities that can generate up to 125,000 different colors. The software interface is coded in Visual Basic. 3 Sliders enable individual control of the RGB led. a Randomize mode generated random colors whose time period is selectable using the fourth slider.
Serial Protocol: The PIC USART is configured at 19,200bps. it listens to the serial port and accepts commands in the following format: XX YY$
where XX is the color to set (valid values: RD for red, GR for green, BL for blue), YY is the intensity to set(valid from 0-50) and $ is the command terminate symbol. to set the intensity of Red to 30, the following string is sent over the serial port: RD 30$. An application like hyper terminal can also be used to control this setup.
|