Data Sheet
UCTRONICS Ultimate Starter Leaning Kit for Raspberry Pi #K0064
117 www.uctronics.com
GND: The cathode of the power supply (Ground).
IA, IB: The input terminal of drive signal.
8.22.4 Procedures
1. Build the circuit
2. Program
Python user
2.1 Edit and save the code with vim or nano.
(https://github.com/UCTRONICS/Arducam_Starter_Kit_Python_Code_for_RPi.git)
2.2 Run the program
$ sudo python 22_motor.py
Press the button 1 to stop or run the DC motor; press the button 2 to forward or reverse the
DC motor; Press the button 3 to accelerate the DC motor; Press the button 4 to decelerate
the DC motor. When the motor is running, the LED will be lit up. Otherwise, the LED will be
extinguished.