The following Arduino libraries are required:
The Pico creates a WiFi access point with these default settings in config.h
:
- SSID: “hexapod”
- Password: “hexapod_1234”
- UDP Port: 1234
- Install Arduino IDE
- Install arduino-pico
- Build and Upload the Code:
- Select “Raspberry Pi Pico W” or “Raspberry Pi Pico 2W” board in Arduino IDE
- Upload the code to Pico
- The robot will perform a boot-up motion sequence
The code supports Over-The-Air (OTA) updates:
- Power on the robot
- Connect to the hexapod’s WiFi network
- Use Arduino IDE’s network port to upload new firmware
On Arduino IDE under Tools
, make sure Flash Size ... FS: 1MB
hexapod_esp32.ino
: Main Arduino sketchconfig.h
: Configuration parameters and pin mappingsmotion.h
: Motion path lookup tables for different movementsPicoPWM.h
,PicoPWM.cpp
: Pico’s PWM class