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
106
22 Install GUI Dependent Item under Window
● Our old version of robot programs all provide a desktop GUI program to control the robot. The GUI
program is written in Python language, but this method uses a higher threshold and difficulty, and is not
recommended for novices.
●This GUI program is only suitable for the Windows system for the time being. It is included in the client
directory of the robot software package and is generally called GUI.py.
22.1 Install GUI Dependencies
●Install Python3:
· We need to install Python in the computer to run our PC-side program. The code of this product is
developed and tested using Python3, so we need to download Python3.7 or above to prevent possible
compatibility errors.
·Python3 download address
·After downloading Python, double-click the installation package to install it.
·When installing Python, be sure to select Add Python to PATH.
●Install Numpy:
· NumPy is a basic software package for scientific computing in Python, and OpenCV needs to use its
related functions.
·Press the win+R key, enter cmd, and click OK to open the CMD.
·Enter the following to install numpy:
pip3 install numpy
·After input, Entry press to Start downloading and installing numpy.
●Install OpenCV:
·The method of installing numpy is the same.
·After opening CMD, enter the following:
pip3 install opencv-contrib-python
·After input,Entry Start downloading and installing opencv.
●Press to install zmq and pybase64:
·zmq and pybase64 are libraries for real-time video
·After opening CMD, enter the following:
pip3 install zmq pybase64
·After entering, press Entry. Start downloading and installing zmq and pybase64.