User Manual
Table Of Contents
- 1. Premise
- 2. Raspberry Pi System Installation and Developmen
- 3 Log In to The Raspberry Pi and Install The App
- 4 Raspberry Pi Structure Assembly and Precautions
- 5 Controlling A Robot via WEB App
- 6 Common Problems and Solutions(Q&A)
- 7 Set The Program to Start Automatically
- 8 Remote Operation of Raspberry Pi Via MobaXterm
- 9 How to Control WS2812 RGB LED
- 10 How to Control The Servo
- 11 Calling the API to Control the Robot
- 12 Automatic Stabilization Function
- 13 Gait Generation Method of A Hexapod Robot
- 14 Make A Police Light or Breathing Light
- 15 Real-Time Video Transmission
- 16 Why OpenCV Uses Multi-threading to Process Vide
- 17 OpenCV Learn to Use OpenCV
- 18 Using OpenCV to Realize Color Recognition and T
- 19 Machine Line Tracking Based on OpenCV
- 20 Create A WiFi Hotspot on The Raspberry Pi
- 21 Install GUI Dependent Item under Window
- 22 How to Use GUI
- 23 Enable UART
- 24 Control Your Adeept_RaspClaws with An Android D
- Conclusion
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_RaspClaws/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 (Google Chrome for example), in the address bar type in the IP address of the
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/