Welcome to 35KG Bus Servo repository
6.1 Raspberry Pi control bus servo
1. About wiring

2. About code
Transfer the raspberryPi_bus_servo.py file in the data to the Raspberry Pi system via winscp, then open the Raspberry Pi system terminal to enter the corresponding directory, and run the following code:
sudo python3 raspberryPi_bus_servo.py
3. Experimental phenomena
The servo will rotate to two angles and keep this state in loop.