Install Corresponding Dependent Libraries; Run The Raspberry Pi Robot's Program - ADEEPT AWR Wheeled Robot Manual

4wd smart robot kit compatible with raspberry pi 4 3 model b+ b, opencv target tracking
Table of Contents

Advertisement

17
wait until it's done.

3.5 Install Corresponding Dependent Libraries

● Follow the steps below to install the libraries if you wrote the image file to the SD card based on 2.1.1
Write 'Raspbian' to the SD card by `Raspberry Pi Imager` and 2.1.2 Download the image file `Raspbian` and write
it to the SD card manually.
● Here a script is provided for installing all dependent libraries needed and configuration of starting the
camera and other auto start programs.
●Type in the code below in the terminal window to run the dependent libraries for the script `setup.py`:
sudo python3 Adeept_AWR/setup.py
● Press 'enter' and the script will auto run. This may take minutes or hours, depending on the network
status. Please wait until it's done.
●After installation is completed, the following prompts will appear:
The program in Raspberry Pi has been installed, disconnected and restarted.
You can now power off the Raspberry Pi to install the camera and driver board (Motor HAT). After turning on
again, the Raspberry Pi will automatically run the program to set the servos port signal to turn the servos to the
middle position, which is convenient for mechanical assembly.
● When installation is completed, the Raspberry Pi will automatically disconnect SSH and reboot. If you
used puTTy to connect the Raspberry Pi, there can be an error prompt like `Network error:Software caused
connection abort`. You can just ignore and close it.

3.6 Run the Raspberry Pi Robot's Program

● Raspberry Pi auto runs the program for the robot when rebooting every time, which is the part
`[RobotName]/server/webServer.py` (replace `[RobotName]` for the name of the folder for your robot product's
program). However, if the Raspberry Pi camera or Motor HAT is not connected, the `webServer.py` can't run well.
It makes sense because the robot's program needs the camera and the chipset PCA9685. Motor HAT controls
servo with PCA9685; the Raspberry Pi communicates with PCA9685 via I2C; so if Motor HAT is not connected to
Raspberry Pi, a program error will occur when instantiating dependent libraries for PCA9685 due to
communication failure.
●Power off the Raspberry Pi, connect camera module and Motor HAT, reboot it up and now `webServer.py`
can run.
● Generally you don't need to manually run `webServer.py` since it's auto run by Raspberry Pi at every
boot.
● Open a web browser
Raspberry Pi, add `:5000` to the end as shown below, and press 'enter' to redirect to the web page of the
Raspberry Pi:
http://192.168.3.157:5000/
(Google Chrome for
example), in the address bar type in the IP address of the

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AWR Adeept Wheeled Robot and is the answer not in the manual?

This manual is also suitable for:

Picar-b

Table of Contents

Save PDF