74HC595 & 74HC165 Shift Registers with Arduino
Expand your Arduino with shift registers! Today I will show you how to use the 74HC595 and 74HC165 to increase your Arduino’s inputs and outputs so we can flash a bunch of LEDs.
Article with all the code: https://dbot.ws/shift
More articles and tutorials: https://dronebotworkshop.com
Suggest new content and meet new people – join the forum: https://forum.dronebotworkshop.com
Get the newsletter and stay in touch: https://dbot.ws/dbnews
Shift registers are sequential logic circuits that can be used to convert between serial and parallel data. Really exciting stuff, right?
Well although these fundamental building blocks may not seem that thrilling, they can be really useful in expanding the number of digital outputs and inputs on Arduino and other microcontrollers.
Today we will work with two common 8-bit shift registers, the 74HC595 and 74HC165.
We will use the 74HC595 to drive eight LEDs with just a few connections. By cascading these chips we can drive a lot more LEDs. We will also use the 74HC595 to drive a 7-segment LED display.
After that we will hook up eight push buttons to a 74HC165, reading them all using just a few I/O lines on our Arduino.
And finally, we’ll put both chips together and build a really fun LED light sequencer with eight different flashing patterns.
Here is a breakdown of this extensive coverage of shift registers with the Arduino:
How Shift Registers Work – 3:03
More outputs with the 74HC595 – 7:32
Driving a 7-Segment Display – 15:22
Extra inputs with the 74HC165 – 21:49
74HC595 & 74HC165 Together – 29:46
Custom Light Sequencer – 34:30
If you’d like to get the code I used to make all this magic happen just visit the DroneBot Workshop website where you’ll find a full article to accompany this video at https://dbot.ws/shift.
BTW, this video was suggested to me by some great folks on the DroneBot Workshop Forums. That’s the place to go if you want to suggest new content or just interact with some amazing people who love electronics just like you do. Join us today at https://forum.dronebotworkshop.com.
source