The robots firmware is built using platform io using the arduino framework over ESP-IDF.
To prepare the frontend code for the ESP32, a specific build chain is required. Start by installing these essential tools:
Install the following software to ensure all functionalities:
- VSCode - Preferred IDE for development
- Node.js - Needed for app building
- A package manager of your choice (npm, pnpm, yarn)
- Python 3.8 or higher - Used for firmware build scripts
- ClangFormat - Used for formatting
Understand the project organization through these key directories:
Modify the platformio.ini
file at platformio.ini to match your board specifications. Adapt or remove environment settings as necessary based on your board.
[platformio]
...
default_envs = esp32dev
...
[env:esp32cam]
board = esp32cam
board_build.mcu = esp32c3
For additional boards, refer to the official board list.
Update the esp32/factory_setting.ini
with new wifi settings, app name and other device information.
Update the platformio.ini
file for your board, then navigate to the PlatformIO tab, select your environment, click Upload Filesystem Image
and after uploading finish, click Upload and Monitor
. The filesystem image only has to be uploaded the first time and will override config files on the microcontroller.
When uploading new firmware the app is evaluated and if necessary will be rebuild.