Tutorial
Table Of Contents
- 1. Premise
- 2. Raspberry Pi System Installation and Developmen
- 3 Log In to The Raspberry Pi and Install The App
- 4 Assembly and Precautions
- 5 Controlling 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 How to Control DC Motor
- 12 Ultrasonic Module
- 13 Line Tracking
- 14 Make A Police Light or Breathing Light
- 15 Real-Time Video Transmission
- 16 Automatic Obstacle Avoidance
- 17 Why OpenCV Uses Multi-threading to Process Vide
- 18 OpenCV Learn to Use OpenCV
- 19 Using OpenCV to Realize Color Recognition and T
- 20 Machine Line Tracking Based on OpenCV
- 21 Create A WiFi Hotspot on The Raspberry Pi
- 22 Install GUI Dependent Item under Window
- 23 How to Use GUI
- 24 Control The WS2812 LED via GUI
- 25 Real-time Video Transmission Based on OpenCV
- 26 Use OpenCV to Process Video Frames on The PC
- 27 Enable UART
- 28 Control Your AWR with An Android Device
- Conclusion
56
●Motor movement direction is incorrect
Due to the different batches of motors, when the same signal is given, the direction of rotation of the motor may
be different. We have set an interface to adjust the direction of rotation of the motor in the program. You need to open
move.py. In the program part, you can see To the following variable definitions:
Dir_forward = 0
Dir_backward = 1
left_forward = 0
left_backward = 1
right_forward = 0
right_backward = 0
If all your motor actions are reversed, just change Dir_forward = 0 to Dir_forward = 1,Just change Dir_backward
= 1 to Dir_backward = 0.
If you only have one motor reversed, you only need to change the corresponding set of variables.
●After running the server, I get an error and can't find config.txt
This is because the installation script did not copy con fi g.txt to the specified location due to permissions
problems during installation. The new version of webServer will not use this file, only the old version of the server will use
it. Copy the server folder of the Raspberry Pi to / etc / of the Raspberry Pi, use the following command
sudo cp -f //home/pi/adeept_PiCar-B/server/config.txt //etc/config.txt
Just replace adeept_PiCar-B above with your product name, we will take PiCar-B as an example here.
●Running GUI.py reports ip.txt NotFound error
The correct mode of operation is to execute GUI.py directly in the GUI directory. If you execute GUI.py in another
directory, it will look for ip.txt in your current directory.