From the course: Learning Arduino: Interfacing with Hardware
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Understanding the shift register - Arduino Tutorial
From the course: Learning Arduino: Interfacing with Hardware
Understanding the shift register
- [Narrator] In the previous example, we used seven digital pins for the seven-segment LED. As you can imagine, this may lead to you running out of pins on your Arduino board. One of the ways you can deal with this is by using a shift register. There are many types of shift registers. Each is used for a certain application. I'm going to use a serial in - parallel out shift register. So, in this example, I'm using a 4-bit shift register. You can think about it like four drawers. Each drawer contains one bit. So, in this example, I have a binary number that's a one-zero-one-one. The shift register takes each bit, one at a time, and moves it in between the drawers. At the first clock cycle, the least significant bit enters the shift register. The second clock cycle, the bit moves into the second drawer, and the next bit enters. And then, the third, and the fourth. Note here that the order of the most significant bit and…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Understanding the shift register2m 24s
-
(Locked)
MC74HC595A shift register overview1m 5s
-
(Locked)
Wire up the input and clock signals2m 1s
-
(Locked)
Wire up the signals for VCC and GND2m 52s
-
(Locked)
Wire up the 7-segment LED2m 18s
-
(Locked)
Initializing pins for the shift register2m 56s
-
(Locked)
The shiftOut command3m 21s
-
(Locked)
-
-