Author Topic: help with LED light bar??  (Read 4861 times)

0 Members and 1 Guest are viewing this topic.

Offline revheadTopic starter

  • Jr. Member
  • **
  • Posts: 8
  • Helpful? 0
help with LED light bar??
« on: June 14, 2009, 01:01:13 AM »
Hey everyone I’m new to this forum and from reading other topics there seem to be many pros out there that really know there stuff about electronics so I figured this would be the best place to seek an answer to my question.

I am building two LED light bars that will react to music in a stereo fashion based on the circuit found at this link:
http://www.instructables.com/id/Sync-LEDs-to-music/

Now I have an electronics background and found it very easy to follow the schematic but I wish to modify it. What I would like to do is replace the two LED's in series on both the channels with 25 LED's in parallel for each stereo channel. What I don’t understand is, is the 220 ohm resistor before the LED's there to supply the correct amount of voltage to the LED's and if so, what resistor values would I need for 25 LED's in parallel?

Also because I want to put them in parallel, would I need a resistor before each LED or could I just use one in front of the power supply/in front of the individual Light Bars??

I am using White LED's with a blue tint rated at 3.3 Volts and 20mA. I will also use a 12 volt power supply @ 1000mA and might make a voltage regulator to drop the voltage down to a further 3 – 4 Volts because I’m thinking that if I supply the correct amount to voltage to the LED’s I won’t need any resistors??

I would greatly appreciate any help from you guys and gals, I think this is really simple to work out with Ohms law but I just can’t wrap my head around the problem.
Cheers!

Offline HDL_CinC_Dragon

  • Supreme Robot
  • *****
  • Posts: 1,261
  • Helpful? 5
Re: help with LED light bar??
« Reply #1 on: June 14, 2009, 01:44:24 AM »
You will always need resistors to limit the current to the LEDs since they dont actually have their own resistance pretty much(They do but its very very very minimal. Almost the same as a regular wire).
Using a 12v power supply with 25 LEDs, (id use 24 due to the numbers we're working with here, really. Ill continue as if using 24 LEDs) you would have a series-parallel circuit. 4 LEDs in series with 6 sets of 4 in parallel. That way, each of the 6 parallel branches will handle the full 12 volts. In each of the 6 branches, youll want a 150ohm resistor at the lowest in series with the 4 LEDs. That will supply 80mA at 12v to the 4 LEDs in that branch: ---R---L---L---L---L---    <-- like that. So you would basically have that little example circuit 6 times in parallel with eachother. Then on the common leads, connect the positive side to the Collector of a power transistor, and the other side to GND. Then connect the Emitter to your 12v power source. Next hook the Base up to the music input and you should be good to go.

Its almost 4AM so my transistor hook-up may not be 100% correct so wait for someone to confirm or shoot down my advice on this one. At this point in time, however, im fairly certain my thoughts here are sound.

Im assuming your doing this in a car/truck?


-EDIT-
Oh, and those 220ohm resistors are there to supply the proper current, not the voltage. Since LEDs have no measurable resistance of there own, a resistor needs to be added to drop the current. The instructable setup has 2 LEDs that draw 20mA so with 2 in series they draw 40mA. At a source voltage of 9v, a resistance of 220ohms would supply a current of 40.1mA to those 2 series LEDs
In your situation, if you put all of your LEDs in parallel, they would all fry instantly. They would each have 12 volts running through them when theyre rated for only 3.3v.
« Last Edit: June 14, 2009, 01:54:26 AM by HDL_CinC_Dragon »
United States Marine Corps
Infantry
Returns to society: 2014JAN11

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: help with LED light bar??
« Reply #2 on: June 14, 2009, 03:04:58 AM »
yes dragon is correct, i myself have been looking for something like this for a while and up until that instructible was made there were only 2-3 and all barely explained what i wanted to know. this one is great!
i attached a schematic for you to use.
Howdy

Offline Miles

  • Full Member
  • ***
  • Posts: 49
  • Helpful? 1
Re: help with LED light bar??
« Reply #3 on: June 14, 2009, 04:26:55 AM »
Smash according to your schematic all of the LED's are back to front meaning they won't light or let the positive power go through them.

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: help with LED light bar??
« Reply #4 on: June 14, 2009, 05:01:37 AM »
ahh, my bad...
just to reference my previous post, the leds are back to front.... they would be hooked up with the positive leg toward the resistor. ive recently read a few schematics that a friend drew up and the leds were backward which kind of confused me :-\ sorry.
Howdy

Offline Soeren

  • Supreme Robot
  • *****
  • Posts: 4,672
  • Helpful? 227
  • Mind Reading: 0.0
Re: help with LED light bar??
« Reply #5 on: June 14, 2009, 05:22:21 AM »
Hi,

Besides, it's a really bad idea not having a base resistor (and a pull down to keep the base in check when there's no input).

And why make do with such a simple circuit - it's not that hard to make it frequency dependant like a real "light organ" (think the seventies ;D).
Regards,
Søren

A rather fast and fairly heavy robot with quite large wheels needs what? A lot of power?
Please remember...
Engineering is based on numbers - not adjectives

Offline Razor Concepts

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
    • RazorConcepts
Re: help with LED light bar??
« Reply #6 on: June 14, 2009, 09:21:06 AM »
There are some chips out there that can limit the current internally so no resistors at all are needed. Take the TLC5940/5947 for example, you only need one resistor to set the current of all of the LEDs.

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: help with LED light bar??
« Reply #7 on: June 14, 2009, 02:52:01 PM »
Hi,

Besides, it's a really bad idea not having a base resistor (and a pull down to keep the base in check when there's no input).

And why make do with such a simple circuit - it's not that hard to make it frequency dependent like a real "light organ" (think the seventies ;D).

i never use a base resistor :o unless at school when my teacher makes me... ive never fried a transistor!
ill try adding a pull down sometime, would it go before the base resistor to gnd?
Howdy

Offline revheadTopic starter

  • Jr. Member
  • **
  • Posts: 8
  • Helpful? 0
Re: help with LED light bar??
« Reply #8 on: June 17, 2009, 10:07:59 PM »
Thank you everyone who has replied, sorry for not thanking you earlier, I wasn’t getting email alerts to let me know people where replying.
Oh and SMASH, that schematic is great; would I just replicate that for the second channel of my schematic?

Also if anyone has any good ideas as how to lay the schematic for the LEDs into a "bar/tube" configuration using prototyping board with holes/long lines of copper track so that I can use them as light bars. It needs to be narrow and I do not have the equipment to etch my own PCBs.

Cheers!! :)

Offline Miles

  • Full Member
  • ***
  • Posts: 49
  • Helpful? 1
Re: help with LED light bar??
« Reply #9 on: June 18, 2009, 01:17:43 AM »
why don't you just buy a LED bar graph? there are heaps of different ones out there.

Offline revheadTopic starter

  • Jr. Member
  • **
  • Posts: 8
  • Helpful? 0
Re: help with LED light bar??
« Reply #10 on: June 18, 2009, 02:26:45 AM »
what is an LED bar graph?

i am fine with making my own light bar, what i dont understand about the schematic is how the voltage and current is divided from the power supply to the two seperate channles in the circuit. does each side recieve the sum of the power supply and its potential current (eg - power supply is 5 Volts @ 1000mA, do both sides of the schematic recieve 5 Volts and a potential of 1000mA) or do both side recieve an eaqual share of the voltage and current (eg - 5 Volt Power Supply @ 1000mA, does each side recieve 2.5 Volts and a potential of 500mA (also how does the voltage behave when one side of the circuit is on and the other off?))

if anyone can clear this up for me that would be great!!
Cheers :)

Offline Razor Concepts

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
    • RazorConcepts
Re: help with LED light bar??
« Reply #11 on: June 18, 2009, 06:30:03 AM »
If you mean the circuit that is shown in the instructible...

Both the left and right halves of the light are connected in parallel to the battery. So basically, you can imagine them as two separate circuits that are just powered by the same battery. The battery will just give as much current as each circuit needs.

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: help with LED light bar??
« Reply #12 on: June 18, 2009, 06:32:39 AM »
well, i pmed you but meh... yes to the copper track question.
get some protoboard with tracks not individual holes and have all +'ivs on one side and all -'ivs on the other.
each side gets full voltage if the channels are wired in parallel, if in series the voltage drops.
if you have a 1000Mah supply your circuit can draw 1000mA for 1hr, 2000mA for 1/2 hour and so on...
Howdy

Offline Miles

  • Full Member
  • ***
  • Posts: 49
  • Helpful? 1
Re: help with LED light bar??
« Reply #13 on: June 18, 2009, 07:33:14 PM »
an LED bar graph can look like this (see picture below)

basically a whole lot of LED's put together to look like a bar graph. each LED has its own + & - lead so you can still wire it up the same.

Just google images of LED bar graphs. There are lots that look different to one another

Offline revheadTopic starter

  • Jr. Member
  • **
  • Posts: 8
  • Helpful? 0
Re: help with LED light bar??
« Reply #14 on: June 19, 2009, 01:41:45 AM »
Thanks for your help everyone. I have sorted out my resistors. I will be using a 75 ohm resistor in series with each LED which will be connected in parallel. All I need to do know is figure out how to lay it all down on a PCB. SMASH gave me an idea so I sketched the idea in paint and attached the picture to this post. Check it out and see if it will work. I am trying to make the layout as thin as possible and I think I have got it to be as thin as it will go. I am not setting the resistors in vertically because I don’t want them getting in the bay if the LEDs so I have laid them flat.

Let me know of any improvements or suggestions that you have,
Cheers!!

Offline HDL_CinC_Dragon

  • Supreme Robot
  • *****
  • Posts: 1,261
  • Helpful? 5
Re: help with LED light bar??
« Reply #15 on: June 19, 2009, 09:31:33 PM »
For that circuit DO NOT supply more than 3.3 volts to the power rail!
United States Marine Corps
Infantry
Returns to society: 2014JAN11

Offline revheadTopic starter

  • Jr. Member
  • **
  • Posts: 8
  • Helpful? 0
Re: help with LED light bar??
« Reply #16 on: June 20, 2009, 01:57:06 AM »
regarding "HDL_CinC_Dragon" why shouldnt i supply more than 3.3 volts? i have the appropriate resistors for each LED... i am useing a 5 volt power supply???

Offline Soeren

  • Supreme Robot
  • *****
  • Posts: 4,672
  • Helpful? 227
  • Mind Reading: 0.0
Re: help with LED light bar??
« Reply #17 on: June 20, 2009, 09:17:17 AM »
Hi,

All I need to do know is figure out how to lay it all down on a PCB.
You could do without a PCB, just make a long piece of acrylic or similar, drill holes to glue the LED's into and wire it up (thin enamelled solder-through wire would make it a quick job). Cut one pin of the resistors short, so it can be soldered directly to the LED and Bend the other pin in a right angle holding the part right at the resistor with a thin plier, so as not to damage the pin-to-resistor connection. Then you can solder the free ends of the resistors to each other one by one.
Regards,
Søren

A rather fast and fairly heavy robot with quite large wheels needs what? A lot of power?
Please remember...
Engineering is based on numbers - not adjectives

Offline revheadTopic starter

  • Jr. Member
  • **
  • Posts: 8
  • Helpful? 0
Re: help with LED light bar??
« Reply #18 on: June 20, 2009, 07:50:43 PM »
thanks for the idea. i had thought of something similar to what you mentioned but i didnt want to fiddle around with bending LED and resistor leads. i am going to lay them out on a vero style PCB, cut it to width and slide it into an acrylic diffuser used in LED bar lights that are designed to replace flurecent tubes. i hope i get it all to work.
cheers.

Offline HDL_CinC_Dragon

  • Supreme Robot
  • *****
  • Posts: 1,261
  • Helpful? 5
Re: help with LED light bar??
« Reply #19 on: June 21, 2009, 05:41:39 PM »
If you use like a 220 ohm resister in series with each LED then you should fine w/ 5v I think...? Im tired so I might not be thinking properly...
United States Marine Corps
Infantry
Returns to society: 2014JAN11

Offline Soeren

  • Supreme Robot
  • *****
  • Posts: 4,672
  • Helpful? 227
  • Mind Reading: 0.0
Re: help with LED light bar??
« Reply #20 on: June 21, 2009, 05:57:44 PM »

Quote
I am using White LED's with a blue tint rated at 3.3 Volts and 20mA

(U_Supply - U_LED) / R = I_LED

(5V - 3.3V) / 75 = 22.7mA

Sounds quite allright.
Regards,
Søren

A rather fast and fairly heavy robot with quite large wheels needs what? A lot of power?
Please remember...
Engineering is based on numbers - not adjectives

Offline HDL_CinC_Dragon

  • Supreme Robot
  • *****
  • Posts: 1,261
  • Helpful? 5
Re: help with LED light bar??
« Reply #21 on: June 22, 2009, 01:54:51 PM »
Wow I have NO idea what the heck I did with my math there.... Thanks for picking up my slack Soeren. Sorry Rev for giving false info.
United States Marine Corps
Infantry
Returns to society: 2014JAN11

Offline revheadTopic starter

  • Jr. Member
  • **
  • Posts: 8
  • Helpful? 0
Re: help with LED light bar??
« Reply #22 on: June 22, 2009, 09:05:51 PM »
Wow I have NO idea what the heck I did with my math there.... Thanks for picking up my slack Soeren. Sorry Rev for giving false info.

No prob. I thought that you may have made a mistake because i was so confident with the info that I have learnt from this forum. Everyone makes mistake and it is so easy to do when working with conversions such as milli amps, amps...

Thanks for the help,
Cheers!!

 


Get Your Ad Here