Ainekio V1: Eight-Servo Quadruped Systems Guide
Canonical technical guide to Ainekio V1: the active 8-servo ESP32-S3 physical robot, its modernized ESP32-P4 clock-spring leg revision, power isolation, GPIO pinout, 59 OLED faces, and 38 motions.
Ainekio V1 is our compact, sub-$100 eight-servo quadruped—combining onboard vision, full-duplex room audio, expressive OLED eyes, and deterministic safety firmware in a 3D-printed spider-stance body.
This guide documents both V1’s functioning ESP32-S3 physical floor build and its modernized ESP32-P4 revision with enclosed under-arm clock-springs, stationary knee servos, and direct 8-channel servo position feedback. (Pre-hardware drafts from July 2026 live in July 2026 Early Planning Notes.)
1. System architecture
V1 splits work across three layers so servo pulse generation and emergency stops on the microcontroller never block on Wi-Fi or language-model latency:
| Layer | V1 Hardware / Runtime | Core Responsibilities |
|---|---|---|
| 1. Onboard Body | Floor build: Freenove ESP32-S3-WROOM CAM (N16R8) on ESP-IDF v5.5.4 + C11 ainekio_core. P4 revision: Waveshare ESP32-P4-WIFI6 + PCA9685 + 8 direct ADC channels + GY-LSM6DS3 IMU + Arducam B0066. | Drives 8× MG90S servos, renders 59 OLED expressions, captures correlated stills, streams 16 kHz audio with on-chip VAD, runs neural walking on P4, and enforces leases/watchdogs. |
| 2. Host Gateway | Node.js protocol-v1 server (Master/gateway) | Authenticates the robot over one WebSocket (JSON commands + binary PCM audio and JPEG stills), tracks sequence IDs/receipts, and serves telemetry. |
| 3. Companion Mind | Ainekio OS | Transcribes speech, inspects returned camera frames, keeps long-term memory, and sends bounded motion, face, and speech commands. |
2. Mechanical design & clock-spring leg upgrade
V1 is an eight-degree-of-freedom (4 legs × 2 DOF) spider-stance quadruped (174.8 × 155.5 × 84.1 mm neutral CAD envelope):
- Physical
ESP32-S3floor build: Uses directMCPWMservo wiring, anOV3660front camera, serrated lower legs, dual5 Vbuck rails, and a0.96"SSD1306OLED running all 59 expressions. - Stationary knee servos (
4.5 gswinging blade): The modernized upper arms (R2V10) mount all four kneeMG90Sservos stationarily inside the upper arm so only the lightweight4.5 gcobalt-blue lower blade swings—cutting distal leg inertia and leaving just one pivot per leg (Hip-Z) that flexes the servo cable. All four hip axes use683ZZcounter-bearings. - Enclosed under-arm 4-wire clock-springs: Replaces exposed jumper loops across the hip joints with a 3-part rotary clock-spring coaxial with each Hip-Z axis (rotor cup on the arm, stationary snout stator on the hip servo, and an internal 4-conductor spiral for
PWM + 5V + GND + 4th-wire ADC). Frame7/Frame8enclosure: Deepened chassis tub and lowered top cap with corner clock-spring bays enclosing theESP32-P4,PCA9685, IMU, camera, speaker cradle, dual2S 14500flank battery bays, master rocker switch, and5 V / 5 Aservo buck.

wave on carpet with animated 0.96” OLED eyes.
dance on carpet showing V1’s physical ESP32-S3 build and 2-DOF MG90S legs.
Interactive 1:1 CAD studio for Ainekio V1. Orbit around the clock-spring arms, preview 38 built-in motions, or toggle Explode and X-Ray to inspect the internal electronics.
How V1’s 2-DOF legs move
Each corner leg uses two MG90S servos without lateral hip roll:
- Hip sweep (
R1,R2,L1,L2): Sweeps the upper arm forward and backward horizontally while winding the coaxial under-arm clock-spring internally. - Knee lift (
R4,R3,L3,L4): Mounted vertically inside the upper arm, lifting or planting the lower blade cleanly.


ESP32-S3 build prior to the Frame8 cap and ESP32-P4 deck.3. Electrical architecture & 2S power isolation
Micro servos pull sharp current spikes whenever four legs reverse at once. Sharing an unisolated 5 V rail with Wi-Fi and camera DMA browns out the microcontroller, so V1 isolates servo power from logic on a common ground:
| Element | V1 Specification | Engineering Role |
|---|---|---|
| Battery pack | 2S (7.4 V nom / 8.4 V max) 1000 mAh 10C Li-ion (2× 14500; dual flank bays in P4 CAD) | Compact footprint replacing an early 18650 draft that didn’t fit the frame |
| USB-C charging & switch | HiLetgo 2S USB-C boost charger + inline master rocker switch | Charges from standard 5 V USB-C while the switch isolates load rails during flashing |
| Servo buck rail | MINI560 PRO 5 V / 5 A buck + 1000 µF bulk capacitor | Dedicated high-current 5 V rail for all 8× MG90S servos, keeping logic brownout-free |
| Logic & audio rail (S3) | Second MINI560 PRO 5 V / 5 A buck | Clean 5 V feed to the ESP32-S3 and MAX98357A speaker amp |
Battery telemetry (GPIO3) | 100 kΩ / 47 kΩ divider into ADC1 (GPIO3 on S3) | Pack voltage warnings: 7.2 V low, 7.0 V motion refusal, 6.8 V critical alert |
4. Firmware, GPIO pinout, 38 motions & 59 OLED faces
On the physical ESP32-S3 robot (Slave/firmware/esp32s3, ESP-IDF v5.5.4), 16 MiB flash is split into dual 3 MiB OTA rollback slots, a 9.375 MiB LittleFS partition for motions and OLED faces, and a 512 KiB SPIFFS partition for on-chip voice-activity detection (vadnet1_medium).
ESP32-S3 N16R8 GPIO & bus map
Because the N16R8 module reserves GPIO33–37 for octal PSRAM, knee servos R4/R3 map to GPIO47/48:
| Peripheral / Bus | ESP32-S3 GPIOs | Notes |
|---|---|---|
Hip servos (R1, R2, L1, L2) | GPIO1, GPIO2, GPIO14, GPIO21 | Hardware MCPWM (50 Hz, 732–2500 µs, staggered 20 ms attach) |
Knee servos (R4, R3, L3, L4) | GPIO47, GPIO48, GPIO45, GPIO46 | Hardware MCPWM, keeping timers clear of camera LEDC XCLK |
0.96" SSD1306 OLED (I2C) | SDA = GPIO0, SCL = GPIO43 (0x3C) | Reassigns GPIO43 from UART0 TX to 400 kHz I2C after boot |
OV3660 DVP camera | XCLK 15, SIOD 4, SIOC 5, D0–D7: 11,9,8,10,12,18,17,16, VSYNC 6, HREF 7, PCLK 13 | Captures 1024×768 JPEG stills with manual ~1/60 s indoor exposure |
16 kHz I2S audio | BCLK 41, WS 42, INMP441 DIN 19, MAX98357A DOUT 20 | Full-duplex mic + speaker while keeping the CH343 USB-C flashing port active |
microSD logs (SD_MMC) | CMD 38, CLK 39, DAT0 40 | 1-bit rolling diagnostic logs (optional) |
| Battery ADC & PSRAM | ADC = GPIO3 · PSRAM = GPIO33–37 | 8 MiB PSRAM buffers camera frames, PCM audio, and motion queues |
38 motions, custom keyframes & 59 OLED faces
- 38 built-in
.amotclips: 3 stances (stand,rest,sit), 5 continuous gaits, 8 timed open-loop turns (45°/90°/180°), and 22 emotes and dances (wave,bow,stretch,pushup,swim,worm,dance,moonwalk,salsa, etc.). - Custom choreography (
motion_plan_v1): Ainekio OS can also send 1-to-32 keyframe sequences (≤ 20 s) that pass through per-servo trims (±30°), travel clamps, and instantstoppreemption. - 59 OLED expressions (
303frames): Derived deterministically from V2’s procedural face renderer viaderive_v1_oled.pyso V1 shares full 59-expression parity with V2, layered with automatic blinks and TTS-synced mouth motion.

128 × 64 OLED expressions (303 frames) derived from V2’s face renderer.Unified ESP32-P4 revision & direct 8-channel ADC
In the unified multi-model ESP32-P4 firmware (sdkconfig.v1-8servo, body_v1.c), V1 gains closed-loop joint sensing and neural locomotion without needing an external multiplexer:
- 8 direct ADC channels (no analog mux): Because V1 has only 8 joints (
J0–J7), every 4th-wire potentiometer connects straight to nativeESP32-P4ADC pins (ADC1 CH4–7onGPIO20–23andADC2 CH0–3onGPIO49–52), with the OLED moved toSCL = GPIO26,SDA = GPIO27. - Trained V1 neural policies (live in simulator):
v1-microduck-p4(53.7 KBint8policy,0.144 m/swalk,±1.21 rad/syaw) andneural_pose_v1postures pass all evaluation scenarios in simulator.ainek.io.
5. Runtime loop & what came next
After Wi-Fi setup via its SoftAP portal (Ainekio-Setup), V1 holds a single authenticated protocol-v1 WebSocket to the gateway:
- Voice up: On-chip VAD segments
16 kHzPCM microphone audio and streams speech frames to the gateway. - Intent & speech down: Ainekio OS transcribes the turn, streams spoken replies back to the speaker (with OLED mouth overlay), and dispatches checked motion/face commands.
- Correlated post-action snapshot: After a move settles, V1 captures a sharp
1/60 sJPEG still and sends it before the finaldonereceipt so Ainekio OS can verify the result.
How V1 led to V2 and V3
V1 proved the full body ↔ gateway ↔ Ainekio OS loop on real floors and defined the next two generations:
- Ainekio V2 “Kanzagroth” added lateral hip roll (12 servos), four-bar legs, closed-loop 4th-wire feedback, a color visor LCD, and on-chip neural walking to handle carpet and dynamic balance.
- Ainekio V3 “Killdozer” scaled up to high-torque coreless servos, self-leveling crawler feet, a panoramic Cyclops display, and an onboard Linux computer inside the chassis.
Related V1 references
- V1 Body & Hardware Reference — Bill of materials, frame details, and power wiring.
- V1 Controller Firmware —
ainekio_corelifecycle,MCPWMtiming, OTA rollback, andESP32-P4target details. - V1 vs. V2 Comparison — Side-by-side joint ranges, compute, and mechanical comparison.
- July 2026 Early Planning Notes — Preserved pre-hardware Google Docs drafts.