Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 11th January 2008, 06:49 AM   (permalink)
Default Best way to wire a bushel of LEDs?

Hey,

Im making a little LED based project.. basically I have a bunch LEDs in the form of letters.. each letter contains 8-10 LEDs..


I plan to use a PIC to control the letters..

I have over 100 LEDs in total.. Im just wondering what the best way to wire them would be.. each letter will have common anode

I really dont want my PCB to contain 100+ resistors.. but I also dont want to loss brightness.

Any ideas?

So that will be 10 LEDs to one pic output (Transistor used for power amplification)

Thanks
__________________
"Stick around" - Arnold Schwarzenegger in The Predator after impaling a soldier to a wood post

9vDC Guitar Pedal PSU

PIC16F84a Game Module
Peter_wadley is offline  
Old 11th January 2008, 06:55 AM   (permalink)
Default

What is the main source voltage? 12V? I would avoid running the LED's off of a voltage regulator, as you will end up with a lot of wasted power. Running the LED's in series is best, as you can use 1 resister per series, and you will need significantly less current.

We need to know:
LED voltage rating/current rating
available voltage sources
Ambient is online now  
Old 11th January 2008, 07:01 AM   (permalink)
Default

If it red LEDs I wire them in two strings parallel each containing 5 LEDs per string (series) for a 12V supply.
A string will driven by a ULN or UDN line drivers.

If I have more letters I’m extending my columns using Johnson counters.
__________________
Gayan

My Website
http://gsmicro.blogspot.com/
Gayan Soyza is offline  
Old 11th January 2008, 03:22 PM   (permalink)
Default

10 leds per letter ... if they're red yellow or low voltage green, find a 24v power supply and wire all 10 in series with one resistor, and maybe a rectifier diode just to provide some reverse voltage protection. if they're high power green/blue/white, you'll need 36volts ... luckily both can be found pretty cheap on ebay or surplus websites.

the advantage to straight series connections is each led receives the same current, and will shine the same brightness.
__________________
If you don't have a planet, what good are gold bars?

want to contact me directly? gmail gordonthree
check out my project website: http://projects.dimension-x.net
Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
justDIY is offline  
Old 11th January 2008, 07:00 PM   (permalink)
Default

OK,

Some more info for you guys

They are standard red LEDs 1.7v - 2.0v drop?

Current.. dependent on resistor value used..

The problem I have is some letters contain 4 leds while some can have up to 11!

I am going to grab a 24 volt supply..

2.0v x 11 LEDs = 22v - Good

2.0v x 4 = 8v .. leaving 16v for the resistor.. will this cause over heating?

How will I make sure each letter, given that they each have different number of LEDs, will be of the same brightness?

Just use V = IR?.. or I = V/R, Rather..?

Thanks for the help
__________________
"Stick around" - Arnold Schwarzenegger in The Predator after impaling a soldier to a wood post

9vDC Guitar Pedal PSU

PIC16F84a Game Module
Peter_wadley is offline  
Old 11th January 2008, 08:34 PM   (permalink)
Default

Quote:
Originally Posted by Peter_wadley
OK,
How will I make sure each letter, given that they each have different number of LEDs, will be of the same brightness?
if each letter has different number of leds, they're going to be different brightness, there's no way to solve that short of adding more leds to the letters that don't have enough leds.

the rest of your message is correct ... the excess voltage in your 4 led scenario will get burned off by the resistor ... you can help spread that heat out a little using multiple resistors in a series parallel configuration, but in the end, you get the same amount of heat.

you could look at using LDO regulators for the small letters, or a switch mode buck converter, improving the efficiency a lot over a plain resistor.
__________________
If you don't have a planet, what good are gold bars?

want to contact me directly? gmail gordonthree
check out my project website: http://projects.dimension-x.net
Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
justDIY is offline  
Old 11th January 2008, 10:46 PM   (permalink)
Default

OK

I have the power supply.. its is 24v DC rated for 1.67A

So.. The wiring...

There are 10 Letters.. so I will use a 10 PIC outputs..

Should Each output turn on an NPN transistor? Then... each of these transistor will source a letter... by attaching first to a resistor... then each led one by one...

Now I was thinking... to have the same brightness (well, close enough) could I just say.. add 7 DIODES in series on the PCB for the letter containing 4 LEDs.. just make each letter have 11 diode drops.. erm Oh wait diodes only drop .7 volts right?

This is something of concern.. I have 1/4 watt resistors... will I need .. power resistors for this setup? 11 leds.. with 24v source..

Calculations:

Each LEDs drops 1.8v and requires 25ma..

so the resistor will be subject to ... 24v - (1.8v X 11) = 4.2V

in wattage... 4.2V X 25ma = .1 Watt ..

Therefore I can use 1/4 watt resistors?

thanks for your help again
__________________
"Stick around" - Arnold Schwarzenegger in The Predator after impaling a soldier to a wood post

9vDC Guitar Pedal PSU

PIC16F84a Game Module
Peter_wadley is offline  
Old 11th January 2008, 11:25 PM   (permalink)
Default

I do many projects with leds and my favorite weapon of choice just now is a couple of Max7219 chips, which can be found really cheap, the chip will use just 3 lines on the pic, and each 1 can handle 64 leds, and they are cascadable without adding any additional pic data lines. the benefit is that you only need 1 resistor for each group of 64 leds, and they will all be the same brightness. by using a small pot for the resistor on each max7219 means that you only have 1 adjustment to make to match the brightness of each batch of 64 leds, and it doesnt matter if you have 1 or 64 leds connected, they will all be the same brightness.

the added benefit comes from the ability to change the brightness in code (16 steps), and can individually address each led if neccessary. (allows flashing, running light patterns ect)

these chips are very easy to wire with just a connection to the pic, and a couple of decoupling capacitors, and 1 resistor to set led brightness.

code wise, its very simple too, especially as there is a built in test mode, and by entering testmode all leds are turned on at full brightness, so basically you are send just a single 16bit number to the chip, and on comes the display.

I probably made this sound much more complex than it really is, but believe me its really really simple. it runs in 5v.
weegee is offline  
Old 12th January 2008, 04:27 AM   (permalink)
Default

Peter if you can wire your leds as a matrix, then that changes everything.

I was basing my recommendations that you have discrete modules, each one drawing a letter out of leds?

Your individual leds will all be the same brightness, but I mean, a letter made with only 4 leds is not going to be as bright as one made with 11

putting a bunch of rectifier or switching diodes in series would eat up some of the voltage, but it would be cumbersome. just grab some 5-10watt sand resistors cheap from a surplus store and let 'em bake ... it won't hurt anything.
__________________
If you don't have a planet, what good are gold bars?

want to contact me directly? gmail gordonthree
check out my project website: http://projects.dimension-x.net
Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
justDIY is offline  
Old 13th January 2008, 08:46 AM   (permalink)
Default

hmmm

Could I not just wire each letter in series.. then using ohms law ensure that each letter is getting the same amount of current?

For the letter containing four LEDs:

Let each LED use 2 volts.

Resistor Voltage:

24V - (4 LEDS X 2V) = 16v

Find needed resistance for current of 25ma:

R = V / I

R = 16V / .025A

R = 640 ohm

Wattage of 16v X .025A = .4W ... therefore half watt resistor would be needed.

For letter containing 11 LEDs:

Resistor Voltage:

24V - (11 LEDS X 2V) = 2v

Find needed resistance for current of 25ma:

R = V / I

R = 2V / .025A

R = 80ohm

Wattage of 2V X .025A = .05 therefore 1/4 watt resistor can be used.

Does this sound logical?

Thanks
__________________
"Stick around" - Arnold Schwarzenegger in The Predator after impaling a soldier to a wood post

9vDC Guitar Pedal PSU

PIC16F84a Game Module
Peter_wadley is offline  
Old 13th January 2008, 01:27 PM   (permalink)
Default

Be warned that the LEDs' voltage drop will vary considerably, you might have 10 LEDs with a voltage drop of 1.8V or 10 with a voltage drop of 2.2V. What's normally listed on the datasheet is either the typical or maximum voltage drop.

This means that if you use the maximum voltage drop in your calculation more current will flow than you expect which could destroy the LEDs. It's best to use the maximum voltage drop when you're estimating how many LEDs you can power from the miniumum supply voltage and and the minimum voltage drop when the supply voltage is at its highest. This will give you a good estimate of the maximum and minimum current draw, battery life, brightness and resistor power dissipation.
__________________
I also post at the following sites:
http://www.stop-microsoft.org http://www.heated-debates.com
Screen name: Aloone_Jonez
And http://www.silicontronics.com, same screen name as here.
Hero999 is offline  
Old 13th January 2008, 03:56 PM   (permalink)
Default

using a constant current driver eliminates many of Hero's concerns - as long as you have more than enough forward voltage, the driver takes care of the rest.
__________________
If you don't have a planet, what good are gold bars?

want to contact me directly? gmail gordonthree
check out my project website: http://projects.dimension-x.net
Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
justDIY is offline  
Old 13th January 2008, 06:51 PM   (permalink)
Default

I am unsure what is meant by 'constant current driver'

Could you please elaborate

Thanks

Also, The max current for standard RED LEDs is usually around 25ma, Correct?
__________________
"Stick around" - Arnold Schwarzenegger in The Predator after impaling a soldier to a wood post

9vDC Guitar Pedal PSU

PIC16F84a Game Module
Peter_wadley is offline  
Old 13th January 2008, 08:04 PM   (permalink)
Default

He means a current regulator that keeps the current the same regardless of the foward voltage drop across the LEDs.
__________________
I also post at the following sites:
http://www.stop-microsoft.org http://www.heated-debates.com
Screen name: Aloone_Jonez
And http://www.silicontronics.com, same screen name as here.
Hero999 is offline  
Old 13th January 2008, 08:12 PM   (permalink)
Default

The 7219 is a good chip!
__________________
Agustín Tomás
In theory, there is no difference between theory and practice. In practice, however, there is.
atferrari is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Good Electronic Supply's Sites, Everyone Come On In! :P Electric Rain General Electronics Chat 44 28th August 2007 12:06 AM
Introduction to High Brightness LEDs and Thermal Management Ocelaris Electronic Projects Design/Ideas/Reviews 3 17th March 2007 06:35 AM
Problems with Dual Brightness (Current) LED Tail Lights? Eagle Schematics! Ocelaris Electronic Projects Design/Ideas/Reviews 12 31st December 2006 07:18 PM
Req: simple low drop constant current source Dominique General Electronics Chat 10 9th February 2006 03:20 PM
Switcher CAD III help zachtheterrible General Electronics Chat 6 1st August 2004 02:04 AM



All times are GMT. The time now is 02:15 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker