The Micro Wheeled-Leg Robot firmware is written in Arduino/C++ and runs on an ESP32 microcontroller. Before you can compile and flash the firmware, you need to install the Arduino IDE, add ESP32 board support at the specific version 2.0.3, and install several bundled libraries. Version 2.0.3 of the ESP32 Arduino core is the recommended release for this project — newer board package versions may introduce breaking API changes or incompatibilities with the bundled WebSockets library, so it is important to install exactly this version rather than the latest available.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/MuShibo/Micro-Wheeled_leg-Robot/llms.txt
Use this file to discover all available pages before exploring further.
Download and install Arduino IDE
Go to https://www.arduino.cc/ and download the latest Arduino IDE for your operating system (Windows, macOS, or Linux). Run the installer and follow the on-screen instructions. Launch the IDE once the installation completes.
Add the ESP32 board package at version 2.0.3
- Open File → Preferences (macOS: Arduino IDE → Preferences).
- In the Additional Boards Manager URLs field, paste the following URL:
- Click OK to save.
- Open Tools → Board → Boards Manager.
- Search for
esp32in the search box. - Find the esp32 by Espressif Systems entry, open the version dropdown, select 2.0.3, and click Install.
Install bundled libraries from ZIP files
The project ships all required libraries as ZIP archives inside
3.Software/libraries/. Install them one at a time using Sketch → Include Library → Add .ZIP Library…, selecting each file in the following order:ArduinoJson.zip— JSON serialisation/deserialisation for WebSocket control messagesMPU6050_tockn.zip— MPU6050 IMU driver used to read pitch, roll, and gyro dataSimple_FOC.zip— SimpleFOC BLDC motor control for the two wheel motorsWebSockets.zip— WebSocket server running on port 81 (must use this bundled version)
ArduinoJson, MPU6050_tockn, and SimpleFOC are standard libraries available through the official Arduino Library Manager. If you have already installed compatible versions of those three from the Library Manager, you may skip adding their ZIPs. However, always use the bundled
WebSockets.zip — never substitute the Library Manager version for that one.Open the firmware sketch
In Arduino IDE, go to File → Open and navigate to the firmware folder:Arduino IDE will open the sketch along with all associated tabs (
robot.h, wifi.cpp, wifi.h, Servo_STS3032.h, etc.).Select the correct board
Go to Tools → Board → ESP32 Arduino and select ESP32 Dev Module (also listed as ESP32-WROOM-32 depending on your board package version). The Controller PCB is based on an ESP32-WROOM-32 module.