Welcome to MicroROS Self-balancing Robot Car repository
3.ESP32 communication board configuration parameters
ESP32 communication board configuration parameters
The ESP32 communication board and STM32 driver board have factory firmware burned in the factory. If other routine firmware has been burned, please re-burn the factory firmware, then power on the board and turn on the power switch.
Copy the configuration script (config_Balance_Car.py) file included in the product information to the virtual machine/computer.
The configuration file is stored in the [Program Source Code Summary] -> [Factory-Firmware] directory in the information.
If the virtual machine/computer has an external USB serial port device, please temporarily remove the USB external serial port device of the virtual machine/computer, and then use a type-C data cable to connect the serial port of the virtual machine/computer and the ESP32 communication board. At this time, the system pops up a window and asks you to select the connection to the virtual machine.
Edit the config_Balance_Car.py file, pull to the bottom of the file, update the parameters of the set_wifi_config function according to your own WiFi network name and password, and update the parameters of the set_udp_config function according to the IP address of the virtual machine/computer. Keep other parameters as default or modify them as needed. Save the configuration file. At the same time, the proxy for connecting to wifi and ip of the ROS-WIFI image transmission module is also directly configured through this setting.

Then run the following command to configure the robot. At this time, check whether the returned data is consistent with your settings. If it is consistent, it means that the setting is successful.
xxxxxxxxxxpython3 config_Balance_Car.py

Press the robot's reset button to reload the configuration, or you can turn the robot power on and off again. At this point, you can remove the type-C data cable that connects the robot to the virtual machine/computer.