
+
VCC
-
GND
The schematic diagram:
In this experiment, by programming the Raspberry Pi, we change a value by reading the
status of the Rotary Encoder. When we turn the knob of the Rotary Encoder clockwise,
the value on the terminal will increase; when we turn the knob counterclockwise, the
value will decrease. When we press down the switch, the value will be zeroed out.
Experimental Procedures
Step 1: Build the circuit
1
2
3
4
5
P
1
A
1
B
2
C
3
SW+
4
SW-
5
E
1
Rotary Encoder
1
0
K
R
1
1
0
K
R
2
2
2
0
Ω
R
3
D
1
L
E
D
+
A
B
S
-
V
C
C
V
C
C
V
C
C
V
C
C
V
C
C
1
0
K
R
4
G
N
D
G
N
D
G
N
D
G
N
D
Summary of Contents for Ultimate Sensor Kit for Raspberry Pi
Page 1: ......
Page 12: ......
Page 21: ......
Page 42: ......
Page 58: ......
Page 66: ......
Page 70: ......
Page 81: ...Now you can see the current temperature is printed on the terminal ...
Page 90: ......
Page 93: ......
Page 99: ......
Page 105: ......
Page 107: ......
Page 114: ......
Page 117: ......
Page 120: ......
Page 141: ... sudo python main py Now you can see the temperature shown on the LCD1602 ...
Page 147: ...Now you can see the voltage value shown on the segment display ...
Page 150: ...Step 3 Run sudo python main py Now you can see the voltage value shown on the LCD1602 ...
Page 151: ......