ESP8266 + Python Scripts Implement wireless crowd control
Setup environment
Please refer to the instruction of the WiFi ESP8266 and use the Arduino IDE to open the sample program (ESP8266WiFiController.ino) to upload the WiFi control firmware for the ESP8266 moudle.
Install Python3, and download the Python scripts to control the robot.
Script introduction
For Python 3.8 and above, the calling syntax is different for the definition of type. This script is compatible with this, but you need to comment and uncomment several corresponding statements in the script according to the version of Python you have installed. For example, the following script supports Python versions below 3.8:
This script can control only one robot alone, or control multiple robots at the same time, which can be realized by modifying the following statement in example.py:
How to Use
Refer to the instruction of the WiFi ESP8266 to assign the IP address to the ESP8266 module and then insert it into the main board of the robot. After the robot is powered on normally, you can use python to run the script example.py to control the robot wirelessly. You can modify the following script statements (modify the content of the list) according to your actual needs to make the robot perform various actions:
For currently supported skill action commands, please refer to the code file actions.h (in ESP8266WiFiController).
Last updated