RGB PIC Color Changer


[Ian] put up his RGB LED color changer project over at diylife. It’s a pretty simple project, but well designed and flexible for combining with other projects. He used a PIC18F2550 to drive everything, and some FETs to drive the LEDs. When you connect a USB cable, the color cycling project stops and the PIC responds to simple hex based color commands.

8 thoughts on “RGB PIC Color Changer

  1. comment i left on the diylife board:

    Nice design. I wonder if you get subtle flickers when updating the PWM values. I’ve found in my designs on the 14bit pics, that I have to update the PWM when my ” 1 byte cycle counter” wraps to zero rather than immediately. You are clocking at a higher clock rate (I use 4-8mhz internal clocks with up to 10 PWM channels), so your design may not be so sensitive.

    Recently, i’ve given up on the PIC and it’s goofy architecture and moved to the Cypress PSOC parts. They are really neat with dedicated digital and analog blocks. You can set up up to 16 PWM (actually I use pseudo random bit sequences, which have less flicker) outputs, and the C compiler is really reliable vs the buggy stuff i’ve experienced w/ the pic (though the PSOC compiler generates crap code). The PSOC has it’s own shortcomings, such as a really inefficient CPU, but the digital and analog blocks more than make up for it b/c stuff is done in HW vs SW. PSOC is really fun, esp when u wrap your head around it’s way of doing things.

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.