User Manual

Table Of Contents
117
22 How to Use GUI
Because the web and the GUI are not connected, if you want to use the GUI to control the robot product,
you need to manually run server.py. (The method is the same as manually running webserver.py, except that
the object is changed to server.py).
When the server.py in the Raspberry Pi runs successfully, enter the IP address of the Raspberry Pi on
the GUI control terminal on the PC, and then click Connect to control the robot.
Python running window: This window will accompany each GUI when it is opened. Any runtime
exceptions will be displayed here. If this window is closed, the GUI will be exited.
Camera video streaming window: Display the picture captured by the camera. Depending on the
product type, the window rendering method may be different, and some products can also interact with this
window.
IP address input box: Enter the IP address of the Raspberry Pi here. Clicking Connect will allow the GUI
to connect to the Raspberry Pi. Raspberry Pi status and connection status display bar: Shows some hardware
information of the Raspberry Pi and the current connection status.
Mobile control:
·Forward: Control the robot to move forward; the shortcut key is W.
·Backward: Control the robot to move backwards; the shortcut key is S.
·Left: Control the robot to turn left; the shortcut key is A.
·Right: Control the robot to turn right; the shortcut key is D.
camera control (due to different layouts, the shortcut keys here are different from WEB applications):
·Up: Control the camera to move upwards; the shortcut key is I.
·Down: Control the camera to move downwards; the shortcut key is K.
·<--: Control the mechanical arm forward; the shortcut key is Q.
·-->: Control the mechanical arm backward; the shortcut key is E.
·Home: Control all servos to return to the neutral position; the shortcut key is H.
Action starting:
·Steady: For maintaining self-balance of robot.
·FindColor: For selecting the color to be found.
When this function is started, the robot will automatically lock a certain color object in the camera
screen. The default is bright yellow. You can choose the color that needs to be locked. When the object is
locked, the LED on the robot body will turn orange.
·WatchDog: Based on the motion detection function of OpencCV's, when an object moves in the camera
screen, the program will circle the moving part in the `Video` window, and the LED on the robot will also change
accordingly.
·CV FL:Based on the visual line patrol function of openCV , the default is to patrol black lines on white
backgrounds.(white background is a plane that reflects infrared light, and the black line is a line that does not
reflect infrared light. The width is about 1cm).
·Render:Open the binary interface.