74HC595 & 74HC165 S...
 
Notifications
Clear all

74HC595 & 74HC165 Shift Registers with Arduino

42 Posts
12 Users
4 Likes
4,334 Views
Sumanta
(@sumanta)
Member
Joined: 3 years ago
Posts: 197
 

@codecage

7 Segment LED Display

I think this might work. If not, then I have created a small datasheet for this.

Here it is. Please have a look. 🙂 


   
ReplyQuote
frogandtoad
(@frogandtoad)
Member
Joined: 5 years ago
Posts: 1458
 

@codecage

Posted by: @codecage

@frogandtoad

I think his diagram (other than labeling the commons as Vcc) better represents his device.  His decimal point is on pin 9 not 6, as 6 is not connected to anything on his device.  Pin 6 would have been for an additional decimal point in the lower left corner of the device.  His diagram definitely has the right number of pins. But it could have included the pin numbers.

Hi Steve,

I understand, but I think you may have misinterpreted my post.

I didn't provide the image for the pins and numbering to be copied directly, it was just to be used as a reference, for how such devices are drawn and depicted for clarity.

Cheers.


   
ReplyQuote
Graham410
(@graham410)
Member
Joined: 4 years ago
Posts: 22
 

Hello to all, I’ve set up the 595 as per the tutorial with a row of 8 LEDs to display the output in binary. My set up gets to 63 on the display then and returns to 1 again. I’ve tried changing the 595 for another and it made no difference..
the for loop is set at <256 and I’m baffled..can anyone help please ?

 


   
ReplyQuote
Graham410
(@graham410)
Member
Joined: 4 years ago
Posts: 22
 

Sorry guys, sorted the problem now, but can’t see a delete button to remove my post 

Also there’s an edit button and a delete button on this box but not on my original post ? Oh well, all will become clear one day. .

This post was modified 3 years ago 2 times by Graham410

   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1037
 

@graham410

There is a timeout timer so to speak on how much time can pass while you can still edit a previous post.  Once that time has passed, and I'm not sure what that time is, then you can no longer edit the post, so I would guess the delete functionality probably goes away as well. A recent post should have both edit and delete capabilities.

SteveG


   
ReplyQuote
Graham410
(@graham410)
Member
Joined: 4 years ago
Posts: 22
 

@codecage thank you for the information, much appreciated...

All’s worked out fine now...


   
ReplyQuote
Sumanta
(@sumanta)
Member
Joined: 3 years ago
Posts: 197
 

@codecage

Hi. Have you seen the diagram of the 7 segmented LED display? It's the model which I have. It's different from the conventional displays, most of the people have. 


   
ReplyQuote
(@tduncklee)
Member
Joined: 3 years ago
Posts: 9
 

I will be using this to control a bank of relays. However, when the Arduino powers up, all outputs of the 74HC595 go high for about 1 second. This means everything connected to my relay bank will activate for a second whenever the Arduino is powered on. How can I prevent this from happening?

 

New to the forum. Is this the correct place for this question?


   
ReplyQuote
(@boggiano)
Member
Joined: 3 years ago
Posts: 17
 

A question about the current on 74HC595:

I tried the first sketch, using  220 ohm resistors, one for each LED, but on Thinkercad it gives me error since the IC is driving too much current when every LED is ON.

On the datasheet I read : Io MAX 35mA.

So, how can it drives all 8 LEDs?
What am I missing ?

Thanks!


   
ReplyQuote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2507
 
Posted by: @boggiano

A question about the current on 74HC595:

I tried the first sketch, using  220 ohm resistors, one for each LED, but on Thinkercad it gives me error since the IC is driving too much current when every LED is ON.

On the datasheet I read : Io MAX 35mA.

So, how can it drives all 8 LEDs?
What am I missing ?

If you need to drive all of the LEDs at once, you'll need to use a transistor. Use the output from the 74HC595 to trigger the transistor to power the LED.

Anything seems possible when you don't know what you're talking about.


   
boggiano reacted
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6895
 

@boggiano IIRC you only have 40ma max per pin, so you will need some way to separately power the leds. I know a MOSET will work, but there may be other solutions. Of course this assumes all the LED's are supposed to turn on at once.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2507
 

@boggiano 

If you don't mind squeezing the 35 mA total throughput, you could change all of the dropper resistors on your LEDs to cut the power down to 3 or 4 mA per LED. They'd still light (although dimmer) but that would keep the total power sucked from the 74HC595 within its limit.

Anything seems possible when you don't know what you're talking about.


   
Ron reacted
ReplyQuote
Page 3 / 3