Skip to main content
V1 · 8 servos Build reference

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.

On this page (5 sections)
  1. 1. System architecture
  2. 2. Mechanical design & clock-spring leg upgrade
  3. 3. Electrical architecture & 2S power isolation
  4. 4. Firmware, GPIO pinout, 38 motions & 59 OLED faces
  5. 5. Runtime loop & what came next

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:

LayerV1 Hardware / RuntimeCore Responsibilities
1. Onboard BodyFloor 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 GatewayNode.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 MindAinekio OSTranscribes 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-S3 floor build: Uses direct MCPWM servo wiring, an OV3660 front camera, serrated lower legs, dual 5 V buck rails, and a 0.96" SSD1306 OLED running all 59 expressions.
  • Stationary knee servos (4.5 g swinging blade): The modernized upper arms (R2V10) mount all four knee MG90S servos stationarily inside the upper arm so only the lightweight 4.5 g cobalt-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 use 683ZZ counter-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 / Frame8 enclosure: Deepened chassis tub and lowered top cap with corner clock-spring bays enclosing the ESP32-P4, PCA9685, IMU, camera, speaker cradle, dual 2S 14500 flank battery bays, master rocker switch, and 5 V / 5 A servo buck.
Physical eight-servo Ainekio V1 quadruped on carpet lifting its front-left cyan leg in a wave gesture with glowing OLED eyes.
Physical Ainekio V1 executing a front-leg wave on carpet with animated 0.96” OLED eyes.
Physical eight-servo Ainekio V1 quadruped in a wide spider-stance dance on carpet with glowing blue OLED eyes and front camera.
Wide spider-stance dance on carpet showing V1’s physical ESP32-S3 build and 2-DOF MG90S legs.
CAD cutaway of Ainekio V1 with one upper arm hidden to expose the concentric under-arm 4-wire clock-spring, vertical knee servo, spiked lower leg, and OLED face.
Under-arm clock-spring & vertical-knee cutaway (front-right upper arm hidden): rotor cup, stationary stator, coiled 4-wire harness, stationary knee servo, and lower leg blade.
3D Studio

Ainekio V1 · Active 8-Servo Quadruped

Initializing 3D studio…

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:

  1. Hip sweep (R1, R2, L1, L2): Sweeps the upper arm forward and backward horizontally while winding the coaxial under-arm clock-spring internally.
  2. Knee lift (R4, R3, L3, L4): Mounted vertically inside the upper arm, lifting or planting the lower blade cleanly.
Overhead floor view of the August 2026 Ainekio V1 prototype showing splayed legs, front OLED/camera module, and exposed jumper wires.
August 2026 V1 prototype showing the exposed top-routed servo wires that motivated the enclosed under-arm clock-springs.
Top-down workbench photo of the August 2026 Ainekio V1 chassis showing the Freenove ESP32-S3 board and direct servo wiring.
Workbench harness on the August 2026 ESP32-S3 build prior to the Frame8 cap and ESP32-P4 deck.
August 31, 2026 floor test: the physical 8-servo V1 prototype walking and adjusting stance on carpet.

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:

ElementV1 SpecificationEngineering Role
Battery pack2S (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 & switchHiLetgo 2S USB-C boost charger + inline master rocker switchCharges from standard 5 V USB-C while the switch isolates load rails during flashing
Servo buck railMINI560 PRO 5 V / 5 A buck + 1000 µF bulk capacitorDedicated 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 buckClean 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 / BusESP32-S3 GPIOsNotes
Hip servos (R1, R2, L1, L2)GPIO1, GPIO2, GPIO14, GPIO21Hardware MCPWM (50 Hz, 732–2500 µs, staggered 20 ms attach)
Knee servos (R4, R3, L3, L4)GPIO47, GPIO48, GPIO45, GPIO46Hardware 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 cameraXCLK 15, SIOD 4, SIOC 5, D0–D7: 11,9,8,10,12,18,17,16, VSYNC 6, HREF 7, PCLK 13Captures 1024×768 JPEG stills with manual ~1/60 s indoor exposure
16 kHz I2S audioBCLK 41, WS 42, INMP441 DIN 19, MAX98357A DOUT 20Full-duplex mic + speaker while keeping the CH343 USB-C flashing port active
microSD logs (SD_MMC)CMD 38, CLK 39, DAT0 401-bit rolling diagnostic logs (optional)
Battery ADC & PSRAMADC = GPIO3 · PSRAM = GPIO33–378 MiB PSRAM buffers camera frames, PCM audio, and motion queues

38 motions, custom keyframes & 59 OLED faces#

  • 38 built-in .amot clips: 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 instant stop preemption.
  • 59 OLED expressions (303 frames): Derived deterministically from V2’s procedural face renderer via derive_v1_oled.py so V1 shares full 59-expression parity with V2, layered with automatic blinks and TTS-synced mouth motion.
Contact sheet of all 59 monochrome 128x64 OLED facial expressions for Ainekio V1.
All 59 monochrome 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 native ESP32-P4 ADC pins (ADC1 CH4–7 on GPIO20–23 and ADC2 CH0–3 on GPIO49–52), with the OLED moved to SCL = GPIO26, SDA = GPIO27.
  • Trained V1 neural policies (live in simulator): v1-microduck-p4 (53.7 KB int8 policy, 0.144 m/s walk, ±1.21 rad/s yaw) and neural_pose_v1 postures 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:

  1. Voice up: On-chip VAD segments 16 kHz PCM microphone audio and streams speech frames to the gateway.
  2. 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.
  3. Correlated post-action snapshot: After a move settles, V1 captures a sharp 1/60 s JPEG still and sends it before the final done receipt 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.
Ainekio V1: Eight-Servo Quadruped Systems Guide
https://ainek.io/posts/ainekio-v1/
Author
Ainekio
Published at
2026-08-31
License
CC BY-NC-SA 4.0