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

Understanding the shift register - Arduino Tutorial

From the course: Learning Arduino: Interfacing with Hardware

Start my 1-month free trial

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…

Contents