
WHIP
Walking Hexapod Intelligence Platform
A DREAM Robotics Agent
WHIP: his character, and the machine
Walking (his Tripod Forward macro in Servo Studio's 3D view) and body IK (his body over planted feet)
Software
Windows controller: builds/WHIP-Controller.exe shows WHIP's own web page in a window, so it always matches the page. Source: scripts/web_controller.
Servo Studio: builds/WHIP-Servo-Studio.exe is Servo Studio with no Python to install. Keep it in builds/: it runs scripts/servo_studio.py from the repo, so it can't fall behind it. Rebuild with scripts/build_servo_studio.bat.
STAY CLOSE: press STAY on RITA, or STAY CLOSE on his page, and he keeps near RITA in your hand, stopping about a metre away. RITA's signal shows how far, not which way, so he tries a direction, keeps going if the signal gets stronger and turns if it doesn't. His sensor still turns him away from walls. He stops if RITA goes quiet. Tested in simulation only so far. scripts/gait_test/stay_test.cpp is its test.
Other languages: scripts/controllers has this robot's controller in C#, F#, Rust, Go and Julia, all reading one robot.json: W A S D to drive, the mode buttons and the sensors. See its README for how to run each.
Related Projects
Overview
Website: https://cursedprograms.github.io/WHIP-Robot-v00/
Overview
WHIP is an 18-servo hexapod. An ESP32 runs the behaviour, WiFi and a browser control page, and works out every joint by inverse kinematics, sending the angles to an RTrobot 32-channel servo controller that moves all the joints together. An MPU6050 watches for tipping and an HC-SR04 watches the way ahead.
Core Features
- Your own macros: record what you do, name it and play it back, like ARM's. On his web page they're under MACROS, saved in that browser. In the Python controller F5 records and saves, F6 plays, F7 picks the next, saved in
scripts/macros/. Driving him or STOP ends one. They need the gaits firmware flashed for the web page.
- 18-DOF walking by inverse kinematics: six gaits (tripod, ripple, wave, quad, amble, metachronal), each checked to keep his centre inside his feet; forward, back, turning, crabbing sideways and analog stick driving, plus stand, rest and shut-down poses.
- Play WHIP in your browser (play.html): his own gait engine and IK ported to JavaScript, drawn in CSS 3D. Walk, turn and crab him round an arena collecting orbs, all six gaits, hello, dance and rest, with the keyboard, a touch pad or a gamepad; it shows the joint pulses his servos would get. OBSTACLE (key
O) walks him by himself and turns him away from anything within 35 cm, as on the real WHIP, and it has his sonar reading; drive at any time to take over.
- Body IK: his body slides (x / y / z) and tilts (roll / pitch / yaw) over planted feet, fitted so every foot reaches:
/body, the controller's BODY mode, the PS2 pad's BODY mode (R3), Servo Studio's 3D BODY.
- A PS2 pad on WHIP himself: its 9-pin receiver straight on four pins (
ps2.h), the sticks steering his gaits.
- WHIP in 3D on his own web page (plain JavaScript, live from
/pose), and in Servo Studio.
- His voice through the controller outside MIND too (David: theatrical, scared of his own feet).
- Servo types in
servo_config.json (MG995 / MG996R / SG90 / DS3218 or your own), written into the firmware by APPLY TO FIRMWARE.
- Follow-me, wave hello, dance, lying down after a minute standing still, and a picked-up stop.
- 4x4 RGB LED grid and a buzzer that show what he's doing.
- Calibration page (
/calib): channel, direction and trim for all 18 servos, kept in flash.
- Three control modes: Obstacle Avoidance (the boot default), IR Remote, and Web (the browser page or the Python controller).
- Tilt safety: past 20° of pitch or roll for 500 ms he stops and stands, and resumes once he is back under 12°.
- Obstacle avoidance: walks until something is closer than 35 cm, then stands, turns (left and right by turns) and walks on once the way is clear past 50 cm.
- Fleet: joins NORA's network when it's in range and registers with the fleet, or hosts his own
WHIP access point.
- Starts walking in obstacle avoidance 5 s after power-on (WiFi joins in the background).
- MIND mode: the LLM on his PC controller drives him, one short move at a time, and talks in his own voice (a theatrical show-off, David). M / Start on the Python controller, or MIND on his page while it's connected.
- Wall stop when driven by hand: from the remote or the web he won't walk forward into something within 20 cm, and a step already under way stops (
/status says blocked).
- Gamepad rumble: the pad buzzes harder as he walks towards a wall (from 40 cm, full at 15 cm), and shakes when he tips past 10°.
Hardware
Prerequisites
Software
- Arduino IDE with the ESP32 board package
- Library:
IRremote 4.x (WiFi, WebServer, HTTPClient and Wire come with the ESP32 core)
- Python 3 with
pygame and requests for the desktop controller (pip install -r requirements.txt)
Hardware
| Component |
Details |
| Microcontroller |
ESP32 (ACEBOTT QA007 ESP32 Max, the same board as NORA) |
| Servo controller |
RTrobot 32-channel servo controller (UART, 115200 baud) |
| Chassis |
18-DOF hexapod chassis |
| Servos |
18 × MG995 180° |
| Battery |
3S LiPo |
| Regulator |
UBEC set to 6 V |
| Distance |
HC-SR04 ultrasonic sensor |
| Balance |
MPU6050 gyro + accelerometer |
| Remote |
NEC IR receiver + remote (the same remote as MILA and IDA) |
| Lights |
4x4 WS2812 RGB LED grid |
| Sound |
Passive buzzer |
| Handheld pad |
PS2 pad + its 9-pin receiver (the Arduino kind), read by ps2.h |
| Controllers |
Browser, PS2-style USB gamepad (Python controller), IR remote |
📂 Documentation & Assets