PIC16F628 8 RGB LED Controller

PIC16F628 8 RGB LED ControllerThis code is for a simple RGB LED controller for 8 LEDs using a PIC16F628. The pattern is determined by the data in the EEPROM. Upon startup, the controller loads the data into RAM and starts up the sequence. 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. Currently the max number of display patterns is 20 (because the bank array is 80 bytes and each pattern is 4 bytes).


PIC16F628 8 RGB LED Controller SchematicThe microcontroller code can be downloaded here:
- 8RGBRAM.jal (8RGBRAM.hex)

Responses to “PIC16F628 8 RGB LED Controller”

  1. helio Says:

    ola amigo estou a procura de controle de leds rbg com pic 12f629
    grato a todos
    helio atibaia são paulo brasil
    que tenham um feliz natal a todos

    ReplyReply
  2. Steve Says:

    helio – It is very easy to control an RGB LED with a PIC12F629. Please see (for example): http://www.semifluid.com/?p=8

    ReplyReply
  3. Mateus Says:

    Do you know if this is the model used in Led Lights for pools?
    Thanx

    ReplyReply
  4. Solar Says:

    What do you think about using PIC16F628 to control individule circuit board? It seems impossible for me but people from Lunar Accents said they can do it with their program!!!

    ReplyReply
  5. Steve Says:

    #4 (Solar) – What do you mean by using a PIC16F628 to control individual circuit boards? If you mean a master and multiple slaves, then yes it would not be a problem. As long as you use a multidrop bus then it would not be difficult to create a system that controls multiple lights. You could even do long-distance control using RS485 converters and wiring.

    ReplyReply
  6. alain Says:

    hi, nice circuit, im building a pov and using one color led, hopefully, your schematic gave me an idea to make a tri color pov toy. do you have the source code in .asm format. thanks

    alain

    ReplyReply
  7. Don Says:

    Can someone post a video to this? It seems like the red LEDs stay on and the green and blue chase each other in the .hex example. Is this correct?

    ReplyReply
  8. RadU Says:

    What i can do with that Code? The circuit it`s does work self? Were i need That code???Please tell me !!!!!

    ReplyReply
  9. Jerry Says:

    Just curious what is the voltage required for each LED? Or What is the voltage on each of the pins?

    ReplyReply
  10. john linabury Says:

    I built a backlight for a wall hung LCD clock and used 8 RGB’s. Then i stumbled on this wonderfull circuit, Thank you very much…. It just so happened that I hadf an extra 16f628 and the project works wonderfully. I was wondering if you had any other HEX codes for the non serial version? what I have is 4 RGB’s down each side of the display, i would like to make them all change color at the same time or change in patterns of 4(so 2 RGB’s are the same color at the same time) I’m new to PIC programming so I would appreciate any help. Thank you for your time

    ReplyReply
  11. Davidp0 Says:

    Hi,

    Where can I find the Bank_arrays_ins.jal librairy, for this very cool project?

    Thanks

    Davidp0

    ReplyReply
  12. Rafa Says:

    Hi..! Can you post the source code with some comments or explanations..I´d like to make others effects. Thx in advance

    ReplyReply

Leave a Reply

Trackbacks/Pingbacks to “PIC16F628 8 RGB LED Controller”