Best practices using 555/4017 & many LEDs

  • Thread starter Thread starter Freddythunder
  • Start date Start date
  • Tags Tags
    Leds
AI Thread Summary
The discussion focuses on building a realistic lightbar for a fake police car using multiple LEDs, specifically red, blue, and yellow lights. The user seeks advice on using 555 timers and 4017 decade counters to control the LEDs, with a preference for transistors over relays for better reliability and efficiency. The conversation highlights the importance of ensuring that transistors can handle the required current for multiple LEDs, as well as considerations for LED brightness and viewing angles. Suggestions include using driver modules to simplify the design and achieve the desired lighting effects. Overall, the user is encouraged to explore various configurations to optimize their project within budget constraints.
  • #51
You've got them working in the right fashion, well done. You are using a pair of 555s for that, undoubtedly. Can you slow the fast blink rate down a bit?

This is how I pictured you'd need to go: It looks like you'll use a pair of 556's to drive the blinking arrays. One astable operating at a rate of ƒ cycles per second can connect to the RESET of a second astable operating at 3ƒ cycles per second. While the low rate astable output is HIGH the faster astable can produce its output and this is used to drive half of the LEDs.

The output of the ƒ cps astable can, in addition, drive a third 555 connected as a logic inverter (going to pins 2 & 6) and the output of this goes to the RESET of another 3ƒ astable. It's the output of this astable which drives the remaining half of the LEDs.

Allowing a single astable to alternate the drive between half of the LEDs and the remainder will give a better synchronized appearance.

I think you are able to drive 10 reds with a pair of small signal transistors, but how many blues did I eventually settle on? (The arrangement is not a Darlington pair, it's just a two stage amplifier.)
 
Engineering news on Phys.org
  • #52
Without going back into the thread, I think you said 6 blues, but each segment is 10 no matter the color. Will this 2 547s be enough for 10 blues? I hope so because I ordered 50. Although that was only $5.

You are correct about using the other side of the first 555 astable to click on a third 555 and it would be more synchronized. I may approach that later but I think I'm going to start with a 556 for each 10 LEDs. I still have the whole other side to build later. It's getting to the point where I'm spending too much money on this one prop. I still have a whole movie to budget. And a car to buy! oh my! I'm thinking of just doing the 8 segments of blue and red and have them blink randomly. I've seen police cars that are totally random and perfectly synchronized so I think I can still sell the effect if they are random.

Besides. I love the idea of only having ONE segment, circuit and all breaking on film day and having one or two backups built that I can swap out with a screwdriver and quick connect to power. Probably a few more bucks that way but I think it'll pay off in the long run.
 
  • #53
I scanned over the threads 4 pages - and know this is relatively late. But ideally for that quantity you should use a LED Driver - they actually flash the LED at high power faster then your eye can detect - the allows the LED to run a normal power (average) and the eye picks up the higher brightness.
Example - If you are looking at a cars LED taillights - and waive your hand in front of them you will see the strobe effect from this.
 
  • #54
Thanks windadct, but the end result is to have the rate slow enough that It doesn't look solid at all. I'm adding in potentiometers so I'll be able to slow that rate down actually. But I appreciate the input!
 
  • #55
Freddythunder said:
Without going back into the thread, I think you said 6 blues, but each segment is 10 no matter the color. Will this 2 547s be enough for 10 blues? I hope so because I ordered 50. Although that was only $5.
It's the level of current that is the important factor. If you increase that series resistor then you can use more parallel strings of two blues, although reducing their brightness in the process. At one stage you said they were too bright for the camera, so this is okay. (I tried to get you to determine the lowest satisfactory current for the blues, but you still haven't.) Are you using 5 parallel strings of two blues each with a 390Ω series resistor? You should increase that to 470Ω to avoid tempting fate.

For the circuit values I gave, this was how I summarized it: https://www.physicsforums.com/showpost.php?p=4044769&postcount=40
I may approach that later but I think I'm going to start with a 556 for each 10 LEDs.
So you'll use how many 556's? A dozen or more? That will be eye-catching, to say the least! Reminds me of the time late one Christmas Eve when I strolled down to the corner to have a sticky beak at a colourful Christmas tree decoration that seemed to be lighting up the street, only to discover it was the lights on a police car! (No, I hadn't been celebrating ...)
 
  • #56
Hi! I used that led calculator I mentioned a few times and then upped the resistance a touch. If they are too bright for the camera I can always adjust the camera or fix it in post. Sorry for not getting the lowest current like you asked. I should have but I need to get this project completed! It's driving me nuts! I made the array 4, 4, and 2 with resistors 47, 47, and 330 ohm respectively. Then I have a different array for reds which I tested the yellows in the same configuration; you saw that video. Here's the blues:



New issue. I made the actual circuit board and the timer is working, but the transistors are not. Is there a pretty good chance of getting bum transistors? I've Quadruple checked everything even looked at voltage readings and it just seems the second transistor is dead. Could I have killed it with the soldering iron? It was a terrible pain in the butt soldering on those pad per perf boards. I'm going to get a quote for printed boards and see if I can afford it.

I'm planning on using a 556 for each segment of lights. I'll have 8 to start in the overheads which I found a 4' by 10" clear fluorescent light fixture lens that will work absolutely perfectly and will probably spread out the light more too. As time progresses I'll have a few more chunks of LEDs on the pushbar and back window and I can use this same circuit over and over! I've added a 500k ohm trimmer on the first 555 so I can adjust the on off rate per segment.

And you were celebrating! Sticky beak is wine!
Blue lights are still going! Even my wife likes it! She said she's proud of me :)
 
Last edited by a moderator:
  • #57
Hey I really still appreciate the help. I don't think I would have made it this far without help! Btw
 
  • #58
Freddythunder said:
I made the array 4, 4, and 2 with resistors 47, 47, and 330 ohm respectively.
You put 4 blues in series? Using 12 volts? I'm surprised you got them to light, though it means you have almost no control over the current in them. I didn't want to have even 3 in series, because the constraints are so tight when using those small signal transistors for the switching. The blues have a higher voltage across them, and 47Ω gives next to no control over the current. Excessive current is likely to damage the LEDs.
New issue. I made the actual circuit board and the timer is working, but the transistors are not. Is there a pretty good chance of getting bum transistors? I've Quadruple checked everything even looked at voltage readings and it just seems the second transistor is dead. Could I have killed it with the soldering iron?
No, not with the soldering iron. You most likely killed it with far too much current. Good job it was destroyed now, otherwise it would have happened at a more inconvenient time, e.g., when you are running it off the car's electrical system. Failure is inevitable when you overload that small transistor by making haphazard changes. If you hope to have reliable operation, you have to follow a calculated design.

Since you are driving the LEDs with the high current 555, we don't now need to be so frugal with drive current as when using a low output current 4017. I'll take another look at operating 10 blues using one pair of transistors.
Blue lights are still going! Even my wife likes it! She said she's proud of me :)
I'm confused. You say the transistor isn't switching, yet you say the LEDs are still flashing?

I'll take a look at some changes to allow 10 blues.
 
Last edited:
  • #59
To operate 10 blue LEDs, I suggest that you refer back to the schematic here[/color] and make the following changes:

change R1 to 2.7kΩ
change R2 to 47kΩ

and operate 3 strings of 3 blue LEDs in series with 220Ω ½W
in parallel with a single blue LED in series with 560Ω ½W

If the 560Ω gets noticably warm, replace it with a 560Ω 1W (or, equivalently, a 220Ω ½W in series with a 330Ω ½W).

Fingers crossed!
 
  • #60
NascentOxygen said:
you have to follow a calculated design.
I thought I did by following the calculator...

NascentOxygen said:
I'm confused. You say the transistor isn't switching, yet you say the LEDs are still flashing?
Sorry for the confusion; I have two identical circuits, one on the breadboard that was running the blue LEDs, and the one on the little circuit board that had never lit up anything. I ran a single LED to the 556 to check it's operation and it was working, but nothing was going through the transistors. So I don't think I burnt it out. I will try the new resistor values you suggest. Thanks.
 
  • #61
Here's an idea if you get printed circuit boards made. Lay it out so each board supports 1x 556, 2x pairs of transistors, and 10x LEDs. When soldering on the blue LEDs, you have one pair of transistors driving 6 LEDs and the other pair driving 4 LEDs. When soldering on yellow or red LEDs, use a few jumper links to drive all 10 LEDs from one pair of transistors, leaving the space for the second pair of transistors empty.
 
  • #62
Freddythunder said:
I ran a single LED to the 556 to check it's operation and it was working, but nothing was going through the transistors. So I don't think I burnt it out. I will try the new resistor values you suggest. Thanks.
Small signal transistors do get killed without much effort. It is easy to get their leads mixed up. Check that; otherwise, replace it and see whether the circuit starts working.
 
  • #63
I'll add a note for when you run your circuit off the car's electrical system...

Refer back to the circuit schematic, you'll see capacitor C1. It's there as representative of an attempt to filter potentially destructive spikes that may damage your semiconductors. I suggest that you make C1 using 3 capacitors in parallel to make it closer to ideal: 470uF, 10uF, 0.1uF all in parallel, rated at least 25VW.

If I were building this for myself, I'd use a more thorough filter than this, but as you are working to a tight budget, try those and hope for the best.

Good luck with it. http://imageshack.us/a/img819/7011/smileyi.gif
 
Last edited by a moderator:
  • #64
...And then 4 months later...

Hey Nascent, what does putting the caps in parallel do? I've never heard of that, just the difference between putting resistors in parallel vs series changing the overall resistance - does putting caps in parallel do anything besides offer a different capacitance? I have also seen some sort of regulators that put 4 diodes in a circle.. Do you have another idea to clean up the car power. As this project seems to be taking me years to accomplish, maybe I can build a power circuit next July or so...

In other news, I'm learning that soldering is not my strong suit and I get really frustrated doing it! I've posted asking where I could find some hobbiest to do it for me and see the cost to frustration ratio. Any ideas?
 
  • #65
Freddythunder said:
...And then 4 months later...

Hey Nascent, what does putting the caps in parallel do?
Welcome back. Again. :smile:

My suggestion for different capacitors in parallel is an attempt to produce behaviour closer to the ideal. While big capacitors (electrolytics) store a lot of charge, they are slow to react, and fast spikes can still get past them. Smaller capacitors are faster to react, so can better absorb fast spikes, but they can't absorb much energy. Placing a few different ones in parallel is a way to get a large capacitance which can still react fast.

I suggested that as a crude protection against transients on the vehicle power supply when the engine is running. If you power the display only while the engine is off, and is kept off, there should be no spikes in voltage.

There are regulator ICs available, or something could be constructed using a couple of transistors, but the circuit you built is probably sufficiently robust that the capacitors will do.

In other news, I'm learning that soldering is not my strong suit and I get really frustrated doing it! I've posted asking where I could find some hobbiest to do it for me and see the cost to frustration ratio. Any ideas?
Sorry, I have no suggestions. But if you got those printed circuit boards constructed, the soldering should be as straightforward as possible. When soldering, the surfaces must first be cleaned of oxide, and the soldering iron constantly wiped on wet paper to wipe off the lead oxide.

They say practice makes perfect, though in the case of soldering, it should read "Lots of practice ...". http://physicsforums.bernhardtmediall.netdna-cdn.com/images/icons/icon6.gif

Good luck!
 
Last edited by a moderator:
  • #66
It's been a year and a half. Sheesh.. So printed circuit boards are too expensive. I pulled out all of my stuff determined to finish it so I can move on with the script. I even have a proposed camera man who's brother has a old police car to use.

I have six segments constructed and attached to circuits as we have explained. One didn't work. I finally got that one to work and another segment stopped. Along with my patience. :(

Sooo, sometime earlier in the year I was thinking it would be so much easier to just have two 556 circuits, which are working great, the ones that work, and have one drive 40 red, the other drive 40 blue. All the segments have resistors attached so I just need power sent to them. In either case I know that if I run numerous transistors off one 556, I'll blow up the 556. I also have an aurdrino I'm contemplating using to drive it. Can I use a power transistor to drive 40 LEDS at once?

I tried reading this
http://www.sqlskills.com/blogs/paulselec/post/arduino-figuring-out-transistors-and-associated-resistors.aspx

But left een more confused. I know I can only pull so much and can figure how mush current to push... I think.

Can you help a guy one more time :)
 
  • #67
Disappointed to learn there has been no progress with this. I shall review the thread to see where things stand.
 
  • #68
Hello Freddy T...

As a different angle - have you asked any of the companies that make these for a "scratch and dent" - or warranty return that is not sale-able? This is for some type of a movie, if I reacall ( I did read through all 4 pages but remeber this thread) - you can offer to put thank you credits in the scroll.
 
  • #69
It would be cheaper to buy a lightbar from ebay. I started some projects myself in the last couple of years, and after buying all parts, finding out I didn't have the tools I needed, finding out I would do better with other components than the ones I ordered and re-ordering, finding a box for the stuff to fit in, trying to form the box to work the way I want... etc... I ended up spending more than I could have spent buying a used unit.
 
  • #70
NascentOxygen said:
Disappointed to learn there has been no progress with this. I shall review the thread to see where things stand.

Ouch. Well I did have six segments blinking the way I wanted and the entire shell constructed. I only get about a day a month to work on this with job and fam. But now I'm ready to get this thing finished!

As for scratch and dent I could ask but imnpretty sure it'd be more. I found one one Craigslist for 250 without a controller. That's the best I've seen. I'm only about $100 down. If I can find a way to send power to the segments and control it with my arduino, then I'm set and it will be better than the 555s anyhow. I got the arduino for free so there'd be much less to buy.
 
  • #71
Last edited:
  • #72
Hello again,

Here is a picture I put together with the values of the resistors and how I put the LEDs together. I'm not exactly sure where in the past four pages I got these diagrams, it's not exact to the post you posted. That was more for the transistor setup I believe.

http://www.themoviecraig.com/files/led-segments.png

After looking at the programming for the arduino and the lack of time I have on just this small piece of the larger project puzzle... I definitely want to change my mind and use the arduino as the processor. The outputs of the arduino are either high or low. So I can program it to toggle hi and low, then shut off for a while. Due to time restraints, I would love to have two of these outputs - connect one to all 40 reds, and the other to all 40 blues.

I figure I can use some solid state method using larger transistors, and tried to research but didn't find anything. I know there are relays, but am afraid they might not be fast enough - but desperate times...

thanks again for your help - I'm soooo close!
 
Last edited by a moderator:
  • #73
Trying to use my brain and avoid further frustration, would this work?

If I used the LED calculator I found correctly:
All blue LEDs (at 120 mA Each array) would pull 480mA
All red LEDs (at 60mA each) would pull 240mA

According to this:
http://www.555-timer-circuits.com/increasing-output-current.html

Can I use 1 BC337 for each of the colors off of two of the circuits? One 556 switches a 337 for the blues and the other 556/337 for the reds?
 
  • #74
Freddythunder said:
Hello again,

Here is a picture I put together with the values of the resistors and how I put the LEDs together. I'm not exactly sure where in the past four pages I got these diagrams, it's not exact to the post you posted. That was more for the transistor setup I believe.

http://www.themoviecraig.com/files/led-segments.png

After looking at the programming for the arduino and the lack of time I have on just this small piece of the larger project puzzle... I definitely want to change my mind and use the arduino as the processor. The outputs of the arduino are either high or low. So I can program it to toggle hi and low, then shut off for a while. Due to time restraints, I would love to have two of these outputs - connect one to all 40 reds, and the other to all 40 blues.

I figure I can use some solid state method using larger transistors, and tried to research but didn't find anything. I know there are relays, but am afraid they might not be fast enough - but desperate times...

thanks again for your help - I'm soooo close!
Your image seems to show 7 red LEDS in a series string, to be powered by the vehicle battery, nominally 12 volts. Each red LED has approx 2.1v across it, according to your earlier measurements, making a total of 14.7v not including what is required across the current-limiting resistor. I can't see this working. I certainly would not have offered this as a viable arrangement. You can have no idea whether it will work, or what the current will be. Definitely inviting trouble in my opinion.

And it's similar bad news for the blue LEDS if you were to string 4 in series here. :cry:
 
Last edited by a moderator:
  • #75
My apologies - the reds are 6 and 4 not 7 and 3... The way I built the thing, the resistor was going in the opposite direction of where I was counting. As for the LEDs, they do all work. I've had 6 of the 8 segments all bliking at once and all segments currently work. I also had a blue one flashing for a few hours; figured if it's going to burn out or blow up, I'd see something then.
 
  • #76
Project Finished!

Here we are again... One year and four months later.. Of course I think probably closer to a total of about 15 hours in that time span.. And it is finished.

I wound up putting together two 556 circuits and connecting the output to a TIP31 transistor for 4 segments of LEDs each. The circuits are currently in a breadboard, but for the time being, I think it will probably stay like that. I finished wiring up the lightbar and ran about 6 feet of wire off the end so that I can connect it to anything later if I change my mind, solder circuits together, get printed circuit boards, box up the breadboard, or any other option.

NacentOxygen, thank you for your help over the year!

I decided that with by budget constraints of not being able to spend anything else on this, I can take some strong magnets I have from projects past and be able to stick it to a metal car roof.

I also learned that driving around with those lights on my car WHEN THEY'RE OFF is illegal - so I'm glad I found that Arizona Revised Statute! (28-947) So when I do go and film, it will have to be on private property and I'll have to transport it in my trunk or something.



https://www.youtube.com/watch?v=VD2Qc26BAn4
 
Last edited by a moderator:
Back
Top