EasyManua.ls Logo

Freenove 4WD Smart Car Board for Raspberry Pi - Page 59

Default Icon
132 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Need support? support.freenove.com
55
Chapter 2 Assemble Smart Car
www.freenove.com
Pan Tilt
Finally, install two 18650 batteries. Please refer to About_Battery.pdf in the unzipped folder.
Please push the battery to + ends of battery holder to make the connection good enough.
Run program
In the first chapter, we did not install the Pan-Tilt. Because we need to run programs for the installation of the
servos to ensure that the servos rotate to the correct angle.
Next let us install the Pan-Tilt.
Connect two servos to port Servo0 and port Servo1 on the smart car board. And please remember the
numbers of the servos.
Enter the following command in the terminal:
If the terminal displays the directory as below (where test.py is located). You can directly execute the servo.py
command.
1.If not, execute the cd command:
cd ~/Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/Code/Server
2.Execute Servo.py command:
sudo python servo.py
Then servos rotate to a proper angle. Please keep the connection between the servos and the smart car board.
Servo0
Servo1