Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Want to design a circuit - how to control RGB led ?

Status
Not open for further replies.

rgbled

Newbie level 4
Newbie level 4
Joined
Sep 22, 2009
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,306
how to control RGB led ?

Hi ! I want to design a circuit to control RGB led

that's including of some RGB leds and pic 16f877a and transistors.

I know the methol to control the mixing colour of RGB is PWM ? Do you know exactly about it .?. if some one have any information about it , and any useful site So tell me please. thanks
 

Re: how to control RGB led ?

nobody has suggestion for me ?
 

These can be found just about anywhere. All you need is to have a separate line for each LED. Have a resistor in series with the LED. The max current you can drive directly from a PIC is 25mA and the max TOTAL is 125mA. If you want to exceed these limits, you need to use a drive transistor (usually isn't necessary unless you are using a high wattage LED.

The PWM can be done using a PWM module if the PIC has it or by using timers and interrupts. Just remember that the human eye can see switching slower than 24mS, so you probably want to be switching your on-off cycle in a 5 or 10mS period for each LED. You just set an interrupt to start each cycle every 10mS and turn on each of the LEDs. Then you set the timing for each of the colors so you'll get an interrupt, and on receiving each timer interrupt, you'll know when to turn that line off. Make sure there are 3 before the end of the 10mS period....or add the code to ignore it when it's greater than 10mS so it just stays on (same for staying off).

That should be enough for you to do it. Good luck.
-D
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top