Loading...
Pages: [1] 2   Go Down
Author Topic: 32x8 LEDs with 74hc595  (Read 1564 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 40
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So, here is a scheme of what I want to do:


9V power supply, split to arduino, and to voltage regulator to 5V ( this transistor looking part is a voltage regulator LM7805 ). Any thoughts?
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 249
Posts: 16566
Available for Design & Build services
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Seems reasonable. I prefer databytes going vertical vs horizontal, little easier to code I think.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17

Offline Offline
Newbie
*
Karma: 0
Posts: 40
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ty CrossRoads for your reply. smiley
But isn't it the same, vertical or horizontal? Just depends on what "for loop" you put first ( i or j ). Haven't got to a programming part yet, but I'll be probably needing some help...
Logged

Valencia, Spain
Offline Offline
Edison Member
*
Karma: 65
Posts: 2271
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ty CrossRoads for your reply. smiley
But isn't it the same, vertical or horizontal?

Horizontal scrolling is a lot easier if the columns are bytes.
Logged

Montreal
Offline Offline
Edison Member
*
Karma: 17
Posts: 2207
Per aspera ad astra.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Need more hardware, ULN2803 is 500 mA maximum, 32 x 20 = 640 mA.
Same with 74HC595, 8 x 20 = 160 mA, what is more than 50-70 mA maximum current.
I'd suggest to use 4 ULN2803 just as buffers of 595, and 8 mosfets to do a matrix.
Logged


Offline Offline
Edison Member
*
Karma: 114
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

1. Pin 10 on hc595 is really named 'SCL'? If so, should you power it there?

2. You can move the resistors onto the ULN and save you some resistors / soldering.

3. If you have pins to spare, or want speed, you could use two sets of sck/mosi pins: one for the hc595 connected to the uln and another for the other hc595s. You can load up the data to serially to the uln, and the one pulse to move to the next column / row. The advantage is that it is very fast. The disadvantage is that it requires a faster refresh rate.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 249
Posts: 16566
Available for Design & Build services
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Doesn't appear that pins 16/8 (Vcc/Gnd) are shown.
"SCL" is the Serial Clear input. Pulled high as it should be when not used.

Disagree about the resistors - the intent appears to be to drive all anodes, and sink 1 cathode at a time, thus each anode needs to be current limited.
Ideally to about 8-9mA to avoid overstressing the 74HC595/70mA total current sourcing.
Which would limit current into the ULN2803 as well, 32x8mA = 256mA., 32*9 = 288mA.

On the ULN2803, Pin 10 does not need to be connected, that's only needed if a motor was hooked up & the diode was needed.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17

Montreal
Offline Offline
Edison Member
*
Karma: 17
Posts: 2207
Per aspera ad astra.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Ideally to about 8-9mA to avoid overstressing the 74HC595/70mA total current sourcing.
Which would limit current into the ULN2803 as well, 32x8mA = 256mA., 32*9 = 288mA.
This may works, at least at night time.  8 mA current in 8-column matrix configuration is just 1 mA constant current.  Visual perception isn't linear, nevertheless too low. I was thinking about opposite solution, using 4x ULN2803 to INCREASE a current up to 2x (40 mA) or so, make display clearly visible in broad day light...
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 40
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Need more hardware, ULN2803 is 500 mA maximum, 32 x 20 = 640 mA.
Same with 74HC595, 8 x 20 = 160 mA, what is more than 50-70 mA maximum current.
I'd suggest to use 4 ULN2803 just as buffers of 595, and 8 mosfets to do a matrix.

That's one of the ideas. My was to use multiplexing. One led at a time with 2ms on/off periods.

1. Pin 10 on hc595 is really named 'SCL'? If so, should you power it there?

2. You can move the resistors onto the ULN and save you some resistors / soldering.

3. If you have pins to spare, or want speed, you could use two sets of sck/mosi pins: one for the hc595 connected to the uln and another for the other hc595s. You can load up the data to serially to the uln, and the one pulse to move to the next column / row. The advantage is that it is very fast. The disadvantage is that it requires a faster refresh rate.

1. I used Eagle PCB libraries, and there pin10 is named as SCL. Should be MR actually. But either way it needs to be powered, and it is.
2. No need for resistors on ULN. It's purpose is to sink current only.
3. I saw this idea on internet and I liked it. smiley It doesn't mean that at one point I'd like to change it. But at this time I'm not ready for that. I'm a beginner at electronics, this is all new for me and it took me some time to figure it out. So, for now, I'm sticking to it. smiley

Doesn't appear that pins 16/8 (Vcc/Gnd) are shown.
"SCL" is the Serial Clear input. Pulled high as it should be when not used.

Disagree about the resistors - the intent appears to be to drive all anodes, and sink 1 cathode at a time, thus each anode needs to be current limited.
Ideally to about 8-9mA to avoid overstressing the 74HC595/70mA total current sourcing.
Which would limit current into the ULN2803 as well, 32x8mA = 256mA., 32*9 = 288mA.

On the ULN2803, Pin 10 does not need to be connected, that's only needed if a motor was hooked up & the diode was needed.

In eagle PCB there are no Vcc/Gnd pins. It's kinda understood. O.o
One question though. "32x8mA = 256mA."   You're counting this as all the anodes are turned on, and one cathode/ULN pin is turned on. What happens when all pins on ULN are on? If I understand well, max current through ULN is 500mA, but NOT per pin.
That's why I think this must be done with multiplexing...  Right?

This may works, at least at night time.  8 mA current in 8-column matrix configuration is just 1 mA constant current.  Visual perception isn't linear, nevertheless too low. I was thinking about opposite solution, using 4x ULN2803 to INCREASE a current up to 2x (40 mA) or so, make display clearly visible in broad day light...

Been thinking about it. Since this is a prototype, I'll be satisfied with whatever visibility I get.
But, since you got a point, maybe I can edit it now. I've got plenty of time. smiley 
What do you suggest? Using ULN on every hc595 with additional power supply? ( 5V and more current ? )
« Last Edit: December 28, 2012, 08:40:59 pm by Y2K986 » Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 249
Posts: 16566
Available for Design & Build services
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

In Eagle, use Edit:Invoke & select the Power/Gnd pins, then attach a 0.1uF cap to each shift registers Vcc pin.
Not so "understood" as hidden.

You are misunderstanding multiplexing. With your current hardware design, you would not turn on all ULN2803 pins - that would only make the 8 pins in a column with a high HC595 out try to turn on.  Your design would drive all HC595 outputs high/low, and sink current from one ULN2803 output at a time, multiplexing by rows.
Unless you are intending to have only 1 anode at a time be driven, sinking 1 cathode. Not very efficient.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17

Offline Offline
Newbie
*
Karma: 0
Posts: 40
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I absolutely agree with you sir. smiley
Figured it out after my last post, but "damage" was already done.
If you could just tell me if you "agree" with this pcb idea, even though it maybe shouldn't be put here?



Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 249
Posts: 16566
Available for Design & Build services
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Looks like a partial view of a board? Only 1 layer?
What does the cap near the 74CH595 connect to? Doesn't look like its on the correct pin for anything.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17

Offline Offline
Newbie
*
Karma: 0
Posts: 40
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, only one layer because pcb will be homemade. Only one part because I'll buy voltage regulator separately and I already have a board with leds.
Don't know what cap is ( sorry ) but if you think on this 3pin molex it's from arduino. data, latch and clock. 2pin molex is for gnd and voltage. And near every 74hc595 is 100nF capacitor connected to vcc and gnd.
Looks ok to me ( but i'm new to this ). What do you think?
EDIT: It's MIRROR image. That's why things might look weird. smiley-grin  Here is normal version:



« Last Edit: December 30, 2012, 08:20:41 pm by Y2K986 » Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 249
Posts: 16566
Available for Design & Build services
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Looks like your capacitors are on the wrong end of the chips.
Or at least the 2 caps at the left of IC4 and IC5, they should be to the right if IC2 and IC1.

Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17

Offline Offline
Newbie
*
Karma: 0
Posts: 40
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It should be near the gnd or vcc pin? What is more important? Or is it the same?
Logged

Pages: [1] 2   Go Up
Print
 
Jump to: