User Manual
98
Principle: Connect pin ST_CP of 74HC595 to Raspberry Pi B18, SH_CP to B27, DS to B17, parallel
output ports to 8 segments of the LED segment display. I nput data in DS pin to shift register
when SH_CP (the clock input of the shift register) is at the rising edge, and to the memory
register when ST_CP (the clock input of the memory) is at the rising edge. Then you can
control the states of SH_CP and ST_CP via the Raspberry Pi GPIOs to transform serial data
input into parallel data output so as to save Raspberry Pi GPIOs and drive the display.
Experimental Procedures
Step 1: Build the circuit
For C language users:
Step 2: Get into the folder of the code.
cd /home/pi/SunFounder_Super_Kit_V3.0_for_Raspberry_Pi/C
Step 3: Compile
make 14_segment
SunFounder