595 Driving Individual LEDs

slug

New member
I'm wanting to make a star with individually controlled LEDs. I want to dedicated one 595 board solely to the star. My question is, what is the best way to do this? Can I run wires to the led indicator sockets on the board to the individual leds, or should I run cat5 to the star and keep the board inside? I bought several of the bullet cat5 adapters. I read somewhere that I can jumper the power from pin 1 to the other 3 wires, so that each pair will be powered, but I just want some confirmation from the experts here.

Thanks.
 
Each channel of a 595 board can drive a single LED directly without a problem. A 595 also has the capability to use additional voltage and send it out only to the channels and not to the on-board chips if you planned to use higher-output LEDs instead of normal, everyday ones, so all you need are ways to separate each of the 64 channels and send the outputs to each of the leds you want to control. It's a piece of cake.

If the board is inside the house and the LEDs are outside, that will mean 16 cat5 cables going from the house to the star. If you mounted the 595 inside the star, the cables would be a lot shorter, but then you might run into the problem of controlling the 595 because you don't want the cable from the PC to the 595 to be very long. About 12' is all you can realistically get out of a parallel cable. Of course, if the board is outside, you'll need to put it in some kind of weatherproof enclosure too...

If you added a Ren-C to the 595, then you can run a serial connection to the Ren-C and gain a LOT more distance, plus dimming capability. A Ren-C board costs about $25 to build.

An Olsen 595 and a Ren-C both fit nicely inside a single CG-2000 case, by the way, so it's very doable.... I have a couple of them set up that way...
 
Last edited:
already using the serial for the renard, and not sure if I'll have time to build a ren c
I understand but a ren-c takes only an hour to build and then you daisychain it from your existing renard setuo. I still think it wouldx be worth your while to consider it.
 
Do you know who sells the board? And, do they already have programmed chips? I agree. I think I can find an hour, and it will give me some flexibility on the LEDs.
 
WJohn sells the boards and PICs but he is in Australia so you may get them in time. There may be someone local to you.
Maybe post a "wanted to buy" entry in the Buy/Sell/Trade section.

Jon
 
The 595 doesn't have programmed chips, and all parts are readily available. There's also a design in the file library that can be used to home-etch your own 595 board.
 
Thanks. I've already got the 595s built. I will contact wjohn for the other.

I've got one more question. I'm getting ready to buy the LEDs for this project. They don't need to be blinding bright. Maybe 10000 to 20000 mcd, and only white. I see all of the lots on ebay that include the resistor, but they are for 12v. I'm guessing that I will need resistors for 5v. Is there any website that will help me to calculate the resistor that I will need?

Edit to add: I read a little more about the Ren C and 595. Do I also need the Ren T?

Thanks for all your assistance.
 
Last edited:
Thanks. I've already got the 595s built. I will contact wjohn for the other.

I've got one more question. I'm getting ready to buy the LEDs for this project. They don't need to be blinding bright. Maybe 10000 to 20000 mcd, and only white. I see all of the lots on ebay that include the resistor, but they are for 12v. I'm guessing that I will need resistors for 5v. Is there any website that will help me to calculate the resistor that I will need?

Edit to add: I read a little more about the Ren C and 595. Do I also need the Ren T?

Thanks for all your assistance.

If you put LEDs on the 595 board, you already know how bright a typical LED would be. You also know that the resistor packs for it are 680 ohms, so that at 5vdc, putting a 680 ohm resistor in line with a common LED will bring the current down to a safe level. I've used red, green, yellow and blue LEDs on 595 boards with the same 680 ohm and they all seem to work fine, so a 680 is more-or-less a "one size fits all" solution for an indicator LED. If you want optimum outputs, then you need to tailor the resistor to the LED itself because different colors typically can handle different current loads.

Do a google search for LED resistor calculators and you'll find plenty of help there. At 12 volts, I've generally found a 1K resistor works in most cases, and you may be able to get by with 750 ohms. Bear in mind these aren't measured for optimum -- it's what I had in the shop at the time, I tried it and they've always worked fine. You'd certainly want at least 1/4 watt resistors for 12v usage. Higher power than that and you'll need 1/2 watt versions for added safety -- you don't really want things to catch fire...

On the LEDs however, if they're the "high power" type, it can be a different ball game. To get optimum brightness you'll find you may be in the 18-24v power area and much lower resistor values, such as 8 or 9 ohm resistors and at least 1/2 watt values.

Simple way to check is to use the Thomas Edison method: put on safety glasses (VERY IMPORTANT!), wire the resistor and LED in series to a 12v power supply and watch and see what happens! If it burns out, it will probably do so pretty quickly. If the LED goes first, it will turn brown or maybe just explode with a loud >SNAP!!!<. Isn't DIY FUN??? If the resistor goes, it will heat up something fierce and may even catch fire. More DIY fun!!!

I write this tongue-in-cheek, but what I've found in buying LEDs is that the specs are not always what they're advertised to be. So using the calculations is the right starting point but in the end, when you apply power, you may be in for surprizes anyway. Just be sure to wear safety glasses because an exploding LED can be dangerous.

On the issue of Ren-C and Ren-T. The Ren-T provides power, the ZC signal and RS485 communication. However, there are less expensive ways of providing all three. The ZC can come from a simple circuit using a couple 15K 1/2 watt resistors and a H11AA1 chip, 5vdc power for the 595 can come from the PC (an unused disk drive power connector) and the Ren-C can handle either RS232 or RS485 so you can either use your existing computer's serial port or an inexpensive USB to RS485 adapter. Lots of options there...
 
Last edited:
Forgive me if I keep asking questions, but you have alot of info in your head and you keep leading me to more questions. You say to test it with 12v power. I will probably be using the 5v from the pc power supply. Should I be providing 12v instead.

I'm just having fun with the boards and electricity. I'm just a computer guy, so this is still sort of new to me.
 
Forgive me if I keep asking questions, but you have alot of info in your head and you keep leading me to more questions. You say to test it with 12v power. I will probably be using the 5v from the pc power supply. Should I be providing 12v instead.

I'm just having fun with the boards and electricity. I'm just a computer guy, so this is still sort of new to me.

Sorry for cluttering up your brain with stuff. I have to do that because I no longer have a brain, so now I get to mess with everybody else!!! My brain left me when I got hooked on this hobby and the same will probably happen to you after a while. :lol: (The comment usually comes to you in the form of a spouse or other loved one after you brought home another couple hundred boxes of lights, "HAVE YOU LOST YOUR MIND?")

The 595 uses 5v. It has an additional power connector that allows pumping higher voltage and/or current (within reason) out to the individual circuits themselves for things such as driving LED strings directly. That power goes out through the ULN2803's which can handle up to about 30 volts (if memory serves me right...)

A great source of quite clean and very steady power is from a disk drive connector inside your PC. There are two black wires, a red one and a yellow one on that connector. Both blacks are ground. The red carries +5vdc, the yellow carries +12vdc. Either can also supply (usually) up to around 2amps of current, too so they're terrific sources for LED control. The voltages are usually rock-solid steady which is also nice. Many DIY'ers just take the power supply out of an old PC and use it to power things -- they make terrific bench power supplies if you ever need one.

IMO, I try to stick with 5vdc since so many chips and circuits are comfortable with that. You can usually use 1/4watt and often 1/8 watt resistors as well. But 5vdc isn't a trivial amount of power -- especially when you consider that it can be 1-2 amps of current, too. You can easily put up to 24vdc through the small CAT5 wires, for example, but even at 5volts, if those wires get shorted, it can cause a fire so it's nothing to take lightly.

A normal SSR circuit usually shows that the current limiting resistor leading to the MOC3023 on the SSR is usually 1/4watt and 680 ohms. That's a really good guideline for most small electronic components, including LEDs. You can take virtually any common indicator LED and connect it to 5v power in series with a 680 ohm resistor and it'll be plenty bright and won't burn out. You can generally use a 330 ohm resistor too, with the same safety margin although the LED will be noticeably brighter. You could try 100 ohm resistor and it'd be brighter still.. but... you'll likely find that the LED will start to get hot and heat kills those things (and after a while, it will likely burn out -- and boy, do they stink!!!)

If you connect your 595 to the 5v output from a PC's disk drive connector, you should have plenty of amperage available to drive not only the 64 LEDs on the 595 board itself, but another 64 individual LEDs out in the field. Most of those white high-power LEDs are designed for about 3.2-3.7 volts, but you may discover that at 5vdc, you may not even need a resistor at all or at the very most, maybe 10 ohms! But I'd suggest trying the 330 ohm resistors for a white LED anyway just to see what you get. I'm pretty sure it won't burn out. Then try two 330 ohm resistors in parallel with one another, which will essentially give you about 165 ohms total resistance. See what happens. If that works, try a 100 ohm resistor. Each step down you'll notice it'll be just a little brighter. Eventually, you'll get to a point where it'll likely burn out and that's part of the fun of experimentation.

To be sure, there are calculations you can use, but they're predicated on knowing exactly the specs of the LEDs, and the cheap stuff we buy off eBay or other places could easily be factory seconds and have a much wider manufacturing tolerance. So while the calculations are helpful, they provide a decent starting place for further experimentation. Worse yet, out of a dozen of the cheap LEDs there could be quite a wide variance in the amount of current they can take. Hence, you may find some experimentation may be required, which almost always eventually ruins the component you're testing.

Another thing, don't forget that the cable runs from the 595 to the LEDs will also soak up a little juice -- the longer the cable, the less juice will arrive at the other end. Won't make a lot of difference for a run of less than 50 feet, but you get up to 100, 150 feet and it can be noticeable.
 
Just to add a little to the last post regarding the PC Power supply, to get the newer Power supplies to run with no mother board present just jump the Green wire to any Black on the mother board connector.
I put a switch in mine for ease of use.
I thought a 595 for a mega tree was overkill but for a star????? Good on ya
And dont worry about the comments from family and friends regarding your new mental illness, we understand you.:lol:
Hope this helps and bast of luck.

Josh
 
I'm wanting to make a star with individually controlled LEDs. I want to dedicated one 595 board solely to the star. My question is, what is the best way to do this? Can I run wires to the led indicator sockets on the board to the individual leds, or should I run cat5 to the star and keep the board inside? I bought several of the bullet cat5 adapters. I read somewhere that I can jumper the power from pin 1 to the other 3 wires, so that each pair will be powered, but I just want some confirmation from the experts here.

Thanks.
Not that you have much time, but if you have 6 or so 485 drivers and some miscellaneous regulators lying around you could create a signal enhancer that would boost the Data, Clock and latch signals. You would need two prototype boards to pull it all off, but I have heard of people extending their 595 to PC distance by driving the signals to 485 pairs.

Maybe you could search for 595 extender somewhere in the group here.
 
Due to lack of planning, I doubt if I'm going to get the 595 working very soon. Still need the Ren-C board. Working on it, but it's going to be a little while.

My question is, can I do the same with a Ren64? Can I drive the LEDs directly off the board? I believe it's sending the 5v on pin 1 to the external SSRs, just like the 595 does. I'm closer on getting the Ren64 up and running.

Thanks.
 
Due to lack of planning, I doubt if I'm going to get the 595 working very soon. Still need the Ren-C board. Working on it, but it's going to be a little while.

My question is, can I do the same with a Ren64? Can I drive the LEDs directly off the board? I believe it's sending the 5v on pin 1 to the external SSRs, just like the 595 does. I'm closer on getting the Ren64 up and running.

Thanks.

Not really, because the PICs are only good for a small amount of current (about 6 mA after taking into account the on-board status LEDs). The LEDs are not going to be all that bright, as they are typically driven with 25 mA.
 
Back
Top