Driver 8 LEDs with 74HC595 shift register
#1
Posted 02 October 2011 - 01:04 PM
Paolo Patierno
Microsoft MVP on Windows Embedded & IoT
Azure Advisor
Twitter : @ppatierno
Linkedin : paolopatierno
Blog : DevExperience
Blog : Embedded101
?
#2
Posted 02 October 2011 - 03:08 PM
The Netduino should be alright if wired correctly. You can connect the SPI bus the the shift register directly.Now I want to drive 8 led using the 74HC595 shift register.
I connect a Netduino output pin to serial input of shift register.
To connect the LEDs to the 8 output pin of shift register, I need to use some precautions to avoid burn Netduino ??
The LEDs can then be connected to the shift register withount endangering the Netduino - assuming that you are powering the shift register with a suitable supply. I used an independent supply for this. If you are using the output from the Netduino then you need to ensure that the power drawn by the Netduino, Shift Register and the LEDs. For 8 LEDs I'd expect you to be alright as the total current drawn for the LEDs would only be 160mA will all of them on (working on 20mA each).
You may need to put a current limiting resistor between the output pin of the shift register and the LED.
Regards,
Mark
To be or not to be = 0xFF
Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life
Follow @nevynuk on Twitter
#3
Posted 02 October 2011 - 03:31 PM
The Netduino should be alright if wired correctly. You can connect the SPI bus the the shift register directly.
The LEDs can then be connected to the shift register withount endangering the Netduino - assuming that you are powering the shift register with a suitable supply. I used an independent supply for this. If you are using the output from the Netduino then you need to ensure that the power drawn by the Netduino, Shift Register and the LEDs. For 8 LEDs I'd expect you to be alright as the total current drawn for the LEDs would only be 160mA will all of them on (working on 20mA each).
You may need to put a current limiting resistor between the output pin of the shift register and the LED.
Regards,
Mark
Careful, 74HC595s have low current ratings - http://www.nxp.com/d...74HC_HCT595.pdf says 35ma per pin, but only 70ma total sunk/sourced, so you'd need low-current LEDs (or have them at 8mA each), or add a driver stage after the shift register.
-- H.L. Mencken, "What I Believe"
#4
Posted 02 October 2011 - 04:18 PM
Alternatively, you may consider TI's power registers TPIC6A/B/C595 or xxx596.or add a driver stage after the shift register.
- Mario Vernari likes this
#5
Posted 02 October 2011 - 04:49 PM
WOW!...Very nice indeed!Alternatively, you may consider TI's power registers TPIC6A/B/C595 or xxx596.
Is it relatively easy to find? Any idea about the cost?
It seems designed also for inductive loads (coils, motors), and the G input may be connected to a PWM output so that the output power adjusted!
Much better than the classic 595...
#6
Posted 02 October 2011 - 04:58 PM
You can get it in the UK from Proto-Pic - the component page is here. This means it's also probably on SparkFun as well as Proto-Pic look to carry a large amount of SparkFun stock. In terms of cost, the 595's are £0.45 each if bought in 10's, £0.55 each when purchased as singles. The high power version are £1.87 each.WOW!...Very nice indeed!
Is it relatively easy to find? Any idea about the cost?
It seems designed also for inductive loads (coils, motors), and the G input may be connected to a PWM output so that the output power adjusted!
Cheers,
Mark
To be or not to be = 0xFF
Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life
Follow @nevynuk on Twitter
#7
Posted 26 April 2012 - 05:06 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users