This code is for a simple RGB LED controller for 8 LEDs using a PIC16F628. It is controlled by sending 3 bytes to the internal USART for the red, green, and blue color channels. The operation is very simple and so is the wiring. The PIC selects each LED then turns on/off the respective colors then goes to the next LED. Because of persistence of vision, the eye sees the LEDs as all being on at the same time.
The microcontroller code can be downloaded here:
– u8RGBm.jal (hex) (less optimized but higher refresh rate)
– u8RGBm2.jal (hex) (better optimized but lower refresh rate)
Sample VB code and test application: 8RGBblinkenlightsDR1r1.zip