Best practices using 555/4017 & many LEDs

  • Thread starter Freddythunder
  • Start date
  • Tags
    Leds
In summary, to create an arrow of yellow LEDs that show direction, you would need to use a circuit like this:-Use a power transistor to control the current to the LEDs-Bias the transistor with appropriate current-Have an array of transistors to control the current to the LEDs
  • #1
Freddythunder
48
1
Hello,

I'm new here.. I have a question about running a lot of LEDs in a couple scenarios. I'm building a full-size lightbar for a fake police car to be used in movies. I found a schematic for the red & blue LEDs that I'm going to duplicate using some 555s or 556 here:
http://www.instructables.com/id/41-LED-Flasher-Circuit-using-555-IC/

But I would also like to (easily & cheaply on a no-production-value film budget) get yellow LEDs on the back that would show direction by illuminating at one end and moving across. I've made this before using a 555 and a 4017, but only one LED at a time. I want to make it realistic so I'm dropping about $80 in LEDs so each segment would be 6-10 (30mA) LEDs instead of just one little one.

What would be the best, cheapest and most reliable way to do this? Can I use a transistor for the added current or a relay of some sort? I've been searching on and off for months for this solution, but I don't think I know the proper nomenclature to find what I am looking for.

Thanks!
 
Engineering news on Phys.org
  • #2
Both transistor or the relay will do.
If you use relays, then you would need to freewheeling diodes to prevent from inductive over-voltage.
Or you could use transistors just as well. Make sure the transistor can provide the current required, and you bias the base with appropriate current.

I think using transistors would be cheaper and more reliable .
And, welcome to PF.
 
  • #3
You probably don't want to switch relays as fast as your application will want. In addition the power supply requirements are much higher for driving relays as opposed to driving transistors.

Go with the transistors.
 
  • #4
Awesome, transistors it will be. Thanks for the help. I think that opened a lot of doors. This whole time I had never googled "transistor as a relay" (duh) and got a bazillion results. I'm going to read a few thousand of those and then I'll come back if I have any questions. Thanks!
 
  • #5
Actually, hang on, I have another question. I ran across this before about a year ago:
http://wild-bohemian.com/electronics/flasher.html

I remember that transistor configuration to make LEDs blink. I actually tried to get my dad to look at it (actually went to school for this stuff... I didn't) and he never got back to me. Since the LEDs are on the positive side of the transistors, is it feasible for me to run an array of LEDs off of this or will I blow up the transistors because the current still needs to course through them. This is for a car so I'll have tons of current at 12-14 volts. ...Or should I stick to the 555/6 flashers and make arrays through transistors?
Thanks again! I'm very happy I found someone who can help me with this stuff!
 
  • #6
Freddythunder said:
But I would also like to (easily & cheaply on a no-production-value film budget) get yellow LEDs on the back that would show direction by illuminating at one end and moving across. I've made this before using a 555 and a 4017, but only one LED at a time. I want to make it realistic so I'm dropping about $80 in LEDs so each segment would be 6-10 (30mA) LEDs instead of just one little one.
How many segments will comprise the full arrow? Each segment being made up of 6-10 LEDS one above the other in a vertical line?
 
  • #7
Freddythunder said:
'm building a full-size lightbar for a fake police car to be used in movies. I found a schematic for the red & blue LEDs that I'm going to duplicate using some 555s or 556 here:
http://www.instructables.com/id/41-LED-Flasher-Circuit-using-555-IC/
How many LEDs do you plan to combine for the blue light? That circuit as it stands can probably power at least double the number shown when you operate it off 12 volts, so maybe 40-50 blue LEDs. Much the same for the red.
 
  • #8
I really want to do this right and have it look as non-cheesy as I can, so I'm actually upping the amount of LEDs from what I said before and doing it right. So, I'd like to have 80 red on one side, 80 blue on the other. If I could use a power transistor or some kind of configuration for this circuit:
http://www.555-timer-circuits.com/police-lights.html
(noted the wrong one before - sorry!)

The yellow ones in the back would be 10 segments of 20 LEDs each segment.

I have put together an online model to explain in full detail what I would like to create. To activate it, click the grey buttons labeled "code3" and "yellow"
http://www.freddythunder.com/film/lightbar.html

Then once all that is done, if I want the yellow lights to blink like the red/blue ones, I'll just duplicate that circuit. I'm thinking that each section of LEDs will be a module with wires coming off of it and I can build a "brain" into one circuit board to control everything with a few 555/4017 combos. Whaduyathink?
 
Last edited by a moderator:
  • #9
In that circuit, they are supplying one of the colours with ten times the current as the other. I haven´t played the video, does it tell you which of their LEDs needs the greater current?

On your animation, I think you have the blue flashing differently to the red. In any case, it is too fast for me to figure out: are you wanting to flash any blue simultaneously with any red?
Maybe you could slow it down to one quarter actual speed?
 
Last edited:
  • #10
No I'm not sure why any of them would need 10 times the current. I'm too much a noob.

On the animation, the way I'm thinking, there's 2 blue and 2 red sections that fire and blink and then shut off, then it alternates to the remaining 2 blue and 2 red sections. The 555 sends a box wave (right?) to the 4017 making it alternate which 'side' fires. I'm sure I can get the circuit to work like the video shows, but my only question is can I use a bigger transistor and run 80 LEDs on each side of that circuit, or do I have to make multiple circuits.

As for the speed & the way they blink, quite frankly, I don't care. Just as long as they blink. It's just special lighting for the movies ;)

Thanks for your help
 
  • #11
A pair of transistors should be able to drive 40 LEDs, at least. But first we need to know the voltage and operating current of your LEDs, an this will differ for red and blue. Have you chosen the LEDs? There are basically two choices: standard LEDs and high brightness LEDs, the latter costing more and using more current.

Different coloured LEDs differ in their efficiency at producing light, and the eye has different sensitivities between red and blue, so to have similar apparent brightnesses it can be desirable to power the different coloured LEDs with different currents.

The 555 generates a square wave.
 
  • #13
Thank you for those links! I would have loved to [see if my budget allowed to] get those instead with the larger viewing. I have already bought 110 of the LEDs already from here:
http://ledshoppe.com/led10mm.htm

The white and blue are:
Emitted Colour : WHITE
Size (mm) : 10mm
Lens Colour : Water Clear
Peak Wave Length (nm) : N/A
Forward Voltage (V) : 3.2 ~ 3.8
Reverse Current (uA) : <=30
Luminous Intensity Typ Iv (mcd) : Average in 750

00
Life Rating : 100,000 Hours
Viewing Angle : ±10°
Absolute Maximum Ratings (Ta=25°C)
Max Power Dissipation : 80mw
Max Continuous Forward Current : 30mA
Max Peak Forward Current : 75mA
Reverse Voltage : 5~6V
Lead Soldering Temperature : 240°C (<5Sec)
Operating Temperature Range : -25°C ~ +85°C
Preservative Temperature Range : -30°C ~ +100°C

and the red/yellow are:

Emitted Colour : Red
Size (mm) : 10mm
Lens Colour : Water Clear
Peak Wave Length (nm) : 640 ~ 645
Forward Voltage (V) : 1.8 ~ 2.2
Reverse Current (uA) : <=30
Luminous Intensity Typ Iv (mcd) : Average in 10000
Life Rating : 100,000 Hours
Viewing Angle : ±10°
Absolute Maximum Ratings (Ta=25°C)
Max Power Dissipation : 80mw
Max Continuous Forward Current : 30mA
Max Peak Forward Current : 75mA
Reverse Voltage : 5~6V
Lead Soldering Temperature : 240°C (<5Sec)
Operating Temperature Range : -25°C ~ +85°C
Preservative Temperature Range : -30°C ~ +100°C

These LEDs have a very narrow viewing angle, but they are as bright as the sun. I'm thinking with the right blinking speed combined with camera height, shutter speed and aperture settings, I'll get real close enough to one of the new $500 lightbars on real cop cars - at least on film.

Thanks!
 
Last edited by a moderator:
  • #14
Freddythunder said:
The white and blue are:
Emitted Colour : WHITE
Size (mm) : 10mm
Lens Colour : Water Clear
Peak Wave Length (nm) : N/A
Forward Voltage (V) : 3.2 ~ 3.8
Reverse Current (uA) : <=30
Luminous Intensity Typ Iv (mcd) : Average in 750
Those blues are so dim in comparison with your reds that you may decide to buy brighter blues. Could you power a handful side by side with an equal number of reds, and view them head-on from a distance to see how they'd go? The yellows and reds sound good.

At 10mm, they are big ones. You've bought 100, but on the figures you gave you'll be needing at least 400?

Yes, you could work within viewing angle restrictions by always filming head-on.
 
  • #15
Just check your figures on your whites and blues, as that site currently doesn´t list 750 mcd LEDs, certainly not in 10mm.

At first glance, I think it will be feasible to use a driver module, and with care operate parallel strings for the blinking LEDs, e.g., the decade counter can control two 4015 modules each driving 84 LEDs to produce the blinking. To keep down cost, the yellow LEDs can be switched by transistors.

Have a look at the 4015 BoostPuck http://www.ledsupply.com/led-drivers.php Without boosting the +12v from the car battery, you´d be limited to powering 3 of the blue LEDs in a string; by boosting it to +28v you can power 7 blue LEDs per string.
 
  • #16
Okay. Sorry for the delay. Got laid off from my job and have been job hunting ever since.

I read somewhere on here that I can't count and it seems I cannot. Sorry my led count was off. But it looks like I still have some planning to do. I took a look at a real lightbar a couple days ago and I think the LEDs are ten on top, five on bottom so it may be less LEDs anyway.

So what you are suggesting instead of using the bc547 transistors (or alternate higher power transistors) I could use these boost puck thingies? Looks like a new world.

And can you show me how I would get the yellow ones to work like that using just transistors? Maybe a link to a tutorial or something?

I'm real close to just making the red and blue blink back and forth with just transistors to save time and money. As for the brightness, no matter what the numbers say, both the red and blue are bright enough for filming. They may actually be too bright and I may have to use larger resistors, that is if I ever get that far.

Thanks for the help!
 
  • #17
Freddythunder said:
Okay. Sorry for the delay. Got laid off from my job and have been job hunting ever since.
Nasty. :frown: Not something you saw coming?
So what you are suggesting instead of using the bc547 transistors (or alternate higher power transistors) I could use these boost puck thingies? Looks like a new world.
I was suggesting this, it would save transistors and resistors and a lot of connections. However, in light of your opinion that at full current the LEDs may be too bright, this eases the design constraints I was working within.

It's tempting to connect 3 of the blue LEDs in series with a resistor and power that string from the +12v. But there's a difficulty in designing for say, 22mA of LED current at a battery voltage of +12, while avoiding having that current soar to almost double that value as the battery warms up under charge and its terminal voltage rises to around +13.5v.

That regulator module I pointed to would have solved this. However, until you work out precisely how many LEDs need to be powered in unison, this can remain as "to be decided".

Regardless, some tests for you: connect one of your blue LEDs in series with a 390Ω resistor to a +12v supply, and record the voltage across the LED. Now substitute one at a time another fifteen blue LEDs, recording their voltage each time. That will indicate the voltage spread to allow for.

Can you do the same for your YELLOWS and, separately, the REDS.

At this stage I'm needing to know how many RED and BLUE together will flash in unison, to see whether they can all be economically powered via a single transistor.

As for the job hunting -
http://img502.imageshack.us/img502/7752/goodluckemoticon.gif​
 
Last edited by a moderator:
  • #18
As for the job, I had an idea it was coming soon. But two Fridays ago my boss said not to worry there was plenty of work and then Monday the company couldn't pay me anymore. I got feet on the pavement though.

Anyway, I'm not sure I understood what you meant about testing voltages. I started with a 330 ohm resistor and one blue, the voltage was 3.29. 2 went to 3.18. When I got to three, the first led was 3.05 and the third was 3.18.
4, 1st was 2.92 and the last was 3.06
5, 2.76 and 2.86
6, 2.54 and 2.56
By the time I got 7 LEDs hooked up in series, it was just under 2 volts and they were barely on. At that point I figured I'd check to see what you ment cause I think I'm testing things wrong.

I'm going to do some camera tests tonight to find out exactly how many LEDs will be in each section. I have 10 red and ten blue plugged into my breadboard just running solid at I think 30ma each. Its painful to look at so I might drop it down to 10 LEDs per section as its for movies and not real traffic visibility. I'll keep you posted!
 
  • #19
By "substitute" I mean remove the first LED and replace it with a different one, so that at anyone time there is just the resistor and one LED. :smile: Different LEDs may have slightly different voltages, those differences are what I'm interested to know.

Since you're starting over, can you use a 470Ω resistor this time, the results will be a little more representative; I'm getting the feeling we can aim for less than the full 30mA.

To answer an earlier question in this thread, I'm sure you'll be able to operate all the sequences off the one 555/4017 counter, you won't need to duplicate the clocking part. This means your sequences will all be fully synchronized.

Just confirm: the yellow strip comprising 10 blocks, when it's activated, will have the left-most block constantly lit, and the others will sequentially fire and each then remain lit until the right-most block has been lit, then 9 blocks will go dark together but the left-most block will never go dark at any time?

(Suggestion: if that is the case, then it may be worth making the yellow strip 11 blocks, since the counter can operate 10 and your left-most block does not need to be clocked if it is to stay lit constantly.)

I haven't been able to figure out the whites—what they do, why they are located where they are, and how many there'll be.
 
  • #20
I really appreciate your help with this. I really have no one else to ask this stuff to.

Okay, now I know what voltages you need. Here are the results with the 470 ohm resistor (yellow purple brown)
Yellow, 2 volts
Red, 2.1 volts
Blue, 3.27 volts

That is awesome that the red and blue is only one 555/4017 they cab be synced, or not, won't matter.

As for the yellow, that is completely right about the sequence. I think it would be more realistic if the first one on the left shut off when it resets, but whatever gets me close enough is close enough.

I'm going to go test the 20 LEDs I have on the breadboard to see how it looks on the camera. After that I'll post back exactly the final count of how many LEDs
 
  • #21
Alright, film testing done. I will definitely be going with only 10 LEDs per section, not 20. These LEDs are so bright I may have to use larger resistors on the blue so they look more blue in the camera. So, finally, I'll have 40 blue and 40 red. 8 total modules of LEDs where four and four will alternate with the flashing like the animation I put together.

What do ou think?
 
  • #22
Freddythunder said:
I really appreciate your help with this. I really have no one else to ask this stuff to.
There are plenty of others here who'll help you.
Okay, now I know what voltages you need. Here are the results with the 470 ohm resistor (yellow purple brown)
Yellow, 2 volts
Red, 2.1 volts
Blue, 3.27 volts
I was hoping you'd measure a dozen of each colour! Especially the blues now. They won't all be 3.27v and I'd like to see how much they can differ.
As for the yellow, that is completely right about the sequence. I think it would be more realistic if the first one on the left shut off when it resets,
So you want it to differ from your web simulation? You want the whole yellow panel to be fully blacked out for 1/11 of the cycle?
but whatever gets me close enough is close enough.
Not the way I look at it. You can get precisely what you want, but the time to decide is now, before final calculations, since design constraints are in some respects tight if you want lowest cost.
 
  • #23
On examining the way the 4017 operates, I see you have to choose between:
(a) 10 blocks of yellow, with the leftmost never darkened; or
(b) 9 blocks of yellow, with the leftmost being darkened for 1/10 of the cycle.
 
  • #24
This should be right for driving up to twelve of the yellow or red LEDs. Construct one to start with, and test it.

With it being able to drive 12 LEDs, consider making your yellow and red blocks multiples of 12.
The circuit to drive blue and white LEDs will be a bit different.
 

Attachments

  • leds.jpg
    leds.jpg
    39 KB · Views: 924
  • #25
A couple questions about that.. I see the 547's set up as a darlington pair (read about that it my travels) is that to allow for higher current? Is this circuit going to condition the voltage or current to save the life of the LEDs? You had mentioned that using car power voltage will fluctuate. I'm guessing that the LEDs are on the right, are those other 5/6 on the left diodes for one way power travels? And what value is C1?

Last question because I'm newer to electronics, I'm cheap, and I'm excited so I'm in a hurry (I'm working on that one) is it not advisable to just do something like this:
led.linear1.org/led.wiz/?VS=13&VF=2.8&ID=30&N=10&output=s

Sorry for all the questions, I do not doubt your help. I want to learn and understand as well as accomplish my goal.

Thanks!
 
  • #26
Freddythunder said:
A couple questions about that.. I see the 547's set up as a darlington pair (read about that it my travels) is that to allow for higher current?
It means the circuit will take very little current from the 4017. The 4017 data sheet shows it can output currents of only about 10mA. This is not sufficient for your needs, where one of the 4017 outputs will be driving maybe 14 separate blocks of LEDs, so a Darlington pair is needed to minimise the load on the 4017.
Is this circuit going to condition the voltage or current to save the life of the LEDs?
This limits the current to the LEDs to about 22mA. should battery voltage rise to 13.8v.
I'm guessing that the LEDs are on the right, are those other 5/6 on the left diodes for one way power travels? And what value is C1?
The small signal silicon diodes on the left form an OR gate and they come from outputs 1-9 of the 4017. Different blocks will have different numbers of diodes connected to different 4017 outputs to set it in the blinking sequence. C1 is an electrolytic, say 220μF, 25v but not needed at this stage.
Last question because I'm newer to electronics, I'm cheap, and I'm excited so I'm in a hurry (I'm working on that one) is it not advisable to just do something like this:
led.linear1.org/led.wiz/?VS=13&VF=2.8&ID=30&N=10&output=s
That calculator should give the same results I have.
 
  • #27
I can't seem to find 547 transistors very easily. Can I use 2222 or 3904 instead?
 
  • #28
Freddythunder said:
I can't seem to find 547 transistors very easily. Can I use 2222 or 3904 instead?
The 2N2222 should do just as well.
 
  • #29
Oh and btw, the white ones are just on off. The are like flashlights. 2 on the front and one on each side. For realism. I was planning on just running power to them straight
 
  • #30
NascentOxygen said:
On examining the way the 4017 operates, I see you have to choose between:
(a) 10 blocks of yellow, with the leftmost never darkened; or
(b) 9 blocks of yellow, with the leftmost being darkened for 1/10 of the cycle.

Then B. I would like the leftmost one to darken. That is how the real ones do it so I'll shoot for that.

I totally misunderstood what you meant about the LED voltages, but got it. Grabbed the DVM and started testing. Here is a link to a table of the data that I recorded:
http://www.freddythunder.com/film/leddata.php

I'm using some of the blue ones in a different configuration so if you need more than those 10, let me know I'll test the others.

I'm off to radio shack to get a couple 2222's. I will mail order some 547s, they're like $6 per 50 on amazon, but want to get started with this right away. I'm going to get a small board and some solid wire and put together what you suggest. I'll let you know what it is complete.
 
Last edited by a moderator:
  • #31
Important: the 2222 has a lower gain, so change R1 to 3.9kΩ (Always check initial operation: no components should get hot, not even warm to the touch.)

You might find it useful to construct just one circuit for testing purposes, and power all three colours from it simultaneously so you can photograph them together and, if necessary, set each to a more-suitable brightness.

So, using that basic circuit, instead of the 10 yellow LEDs, you could have:
one string of 4 yellows in series with a 220Ω, plus
a string of 4 reds in series with 220Ω, plus
a string of 2 blues in series with 390Ω, plus
another string of 2 blues in series with 390Ω

This would give 4 of each colour, and give you the opportunity to modify the resistor values to determine best luminosity for camera work. Don't forget that when the car's voltage varies these LEDs will change brightness a bit, too. https://www.physicsforums.com/images/icons/icon6.gif
 
Last edited by a moderator:
  • #32
Well went to an electronics parts place in Mesa today in hopes of finding the 547s. The 2222 are 2 bucks each at the radio shack so no thanks. I'm ordered 50 547Cs for $6, should be here in a few days.

I'm planning on doing the first circuit on a breadboard with the multiple colors to test like you suggested (good thinking!) and the solder together my sections of 10 LEDs each.

I'm going to use a 555 to turn the blocks on and off to test from pin 3. I think that's right. I'll alk to you in a few days.

Btw, found new job, start Monday.. All very exciting.
 
  • #33
Freddythunder said:
Btw, found new job, start Monday.. All very exciting.
Great. That's fast work!
 
  • #34
I actually got really lucky. Got 2 job offers after one week of looking. I'm a PHP developer and there were a ton of postings, but then this week - nothing out there. I'm thanking God above for the opportunities & the timing.

Anyway, while I wait impatiently for my transistors to come in, I came across another question. I was going to post a new thread, but figured I'd ask you first. I know that at Walgreens, they sell these balls that have a little flasher toy inside of them, when the ball gets knocked around, a blue & red led blink just like the police flasher thing. Years ago when I was a bartender, there were a few promotions where the booze company would give out these novelty ice cubes that had a blinking led inside of them, but it would blink like 1-2-3 pause 1-2-3 pause - much like I want my project to do. Being a kid inside, I've torn a toy or two apart like this to find a very small circuit board with some black plastic shell over any electronics.

My question is, is there some more simple way to do what I'm trying to do - or do you think that these toys have some sort of 555/4017 inside of them that make them do the same thing I'm trying to do? Is there some sort of other chip out there that is manufactured just to blink.

Or, maybe it's two 555 timers, one set to blink fast and another slow and the one 555 triggers the next 555 so you get that blinking, then pause, then blinking, then pause. Hmm. Maybe I'll play with that while I wait for my transistors.

Just a random thought I had.
 
  • #35
Using 4017 is by far the simplest method, in principle, for what you are doing, because the sequences are locked together and controlled by a single clock. To speed up or slow down the rate of blinking you'll just adjust one 555 and there are no timing issues. However, it also follows that you can't independently control things, so in that sense your options are limited. If you wanted 3 successive blinks, you'd need to use two 4017's with this timing method.

I thought you said you had already built the basic 555 + 4017 circuit? How much did the 4017 cost?

While cooling your heels, you could turn to the task of figuring out how many input diodes you'll need for each of the 9 yellow blocks. This means you have to work out what combination of outputs from the 4017 is needed for each yellow block to turn it on and hold it on. Maybe start with the timing diagram here: http://electronics.stackexchange.co...-multiple-connections-in-this-traffic-light-c

You'll also need to search for the full 4017 pin-out.

You might re-consider the 2222's. If you use 547's throughout you will have to construct at least 5 blocks to do what a single 2N2222 can. The 2N2222's are rated for more current, so one 2N2222 can drive half of the blues together with half of the reds (providing my hunch is right that you'll settle on less than 20mA drive for each LED). You'd need just two 2222's, all the rest can be 547s.
 

Similar threads

Replies
49
Views
3K
Replies
10
Views
7K
Replies
14
Views
2K
Replies
10
Views
5K
Replies
6
Views
3K
Back
Top