This week we took a look at shift registers. They allow you to vastly expand your inputs and outputs for the Arduino platform…
A shift register is a type of digital circuit using a cascade of flip flops where the output of one flip-flop is connected to the input of the next. They share a single clock signal, which causes the data stored in the system to shift from one location to the next. By connecting the last flip-flop back to the first, the data can cycle within the shifters for extended periods, and in this form they were used as a form of computer memory.
1.Shift Register
We have connected the circuit to tinkerCAD, and can turn on the potentiometer to light up the LEDs and the display.
This is a more complicated process of controlling LEDs and displays, but with higher granularity and smooth operation.
You can check the details of the codes:
1 | #define backLight 13 |
2.Shift & LEDs control
Through Shift, we used the control of the LED sequence and wrote a specific program to control the output device.
See how the effect in the video is achieved:
1 | int clockPin = 6; |
About this Post
This post is written by Siqi Shu, licensed under CC BY-NC 4.0.