Skip to main content
V1 · V2 · V3 Build reference

Three-System Neural Motion: MicroDuck, NeuralPose & Living Presence

Architecture and benchmarks for Ainekio's three-tier 50 Hz neural controllers—on-chip MicroDuck walking, NeuralPose carpet-safe choreography, and motor-silent Living Presence—plus ESP32-P4 RISC-V PIE fixes.

On this page (4 sections)
  1. 1. System 1: On-chip 50 Hz MicroDuck walking
  2. 2. Fixing three ESP-IDF RISC-V PIE vector bugs
  3. 3. System 2: 50 Hz NeuralPose v8 & Freestyle choreography
  4. 4. System 3: 50 Hz NeuralPosePresence

Rather than forcing one monolithic network to walk over cables, perform seated gestures, and nod subtly during conversation, Ainekio splits learned motor control into three specialized 50 Hz neural systems across ESP32-P4 Core 1 and the Body Control runtime:

TierRate & FootprintActive PolicyRole
System 1 · Locomotion50 Hz · 107.8 KB int8 on V2 (53.7 KB V1 · 66.9 KB V3, in L2 cache)MicroDuck v20 (+ V1 & V3 policies)Omnidirectional walking, wood-to-carpet seams, weak-servo compensation, and swing-foot snag recovery
System 2 · Pose & Choreography50 Hz · ONNX (0.4 ms CPU) + Freestyle library (939 rows)NeuralPose v8 (+ V1 & V3 policies)Carpet-safe posture recovery, tripod weight shift, and plain-English Freestyle choreography
System 3 · Living Presence50 Hz · Shared NeuralPose manifoldNeuralPosePresenceMotor-silent listening, subtle speaking nods with zero lateral carpet scrub, and automatic idle rest

1. System 1: On-chip 50 Hz MicroDuck walking#

System 1 runs a quantized 107.8 KB int8 PPO walking actor natively on ESP32-P4 Core 1 inside the 128 KB L2 cache (< 0.1 mm foot-offset error vs. FP32 ONNX). Each 50 Hz step consumes a short rolling window of 4th-wire joint angles, velocities, IMU orientation, velocity commands [vx, vy, wz], and prior actions.

Real-hardware System-ID (v17 → v18)#

Three untethered floor trials revealed two physical asymmetries missing from nominal CAD simulation: -19.1° compliance sag on the front-right shoulder and 41–45% lower effective gain on the rear-left (RL) leg under load.

Injecting per-leg gain/effort randomization, diagonal shoulder compliance, a ground-drag penalty, and 18 mm cable ledges into training produced microduck-v18-p4:

  • 10-Scenario Composite Benchmark: Jumped from -1.29 (1 fall in v17) to +1.32 with 0 falls.
  • Weak-RL Suite: Forward speed rose +69.5% while holding pelvis height at 52.5 mm instead of sagging to 22.4 mm.
  • Cable Ledges & Carpet: Speed across 14–17 mm cables improved +79.7% (3.2× straighter heading), and plush carpet speed rose +28.6%.
Three-system 50 Hz neural motion stack diagram showing System 1 MicroDuck, System 2 NeuralPose tripod weight shift, and System 3 NeuralPosePresence audio/motion timeline.
Three-system 50 Hz coordination: on-chip MicroDuck walking (top), NeuralPose tripod weight shift and vertical carpet unload (bottom-left), and motor-silent Presence listening/speaking timeline (bottom-right).
microduck-v18-p4 maintaining level pelvis clearance across weak-leg, slick hardwood, carpet seam, and cable-ledge tests.

Active production actor (MicroDuck v20) + V1 & V3 policies#

Building on v19’s 25 mm swing-foot snag training and firmware’s 1.8 s automatic carpet-unsnag reverse reflex, microduck-v20-studya-p4 is trained specifically for V2 “Kanzagroth“‘s Study A (28/16/31/37 mm) legs:

  • Zero-command stability: Holds rock-still at 0 m/s without leg chatter.
  • 2.61× faster walking (0 falls): Reaches +0.094 m/s nominal forward (+0.128 m/s fast-forward, -0.120 m/s reverse, ±0.8–1.0 rad/s yaw turns) on physical V2 and in simulator.ainek.io.
  • V1 & V3 “Killdozer” policies: The same pipeline trains v1-microduck-p4 (53.7 KB, 0.144 m/s) for 8-servo V1 and v3-microduck-p4 (66.9 KB, 0.31 m/s, 40 mm lift, ≤ 0.27° self-leveling ankle error) for V3 “Killdozer”—both live in the browser simulator.

2. Fixing three ESP-IDF RISC-V PIE vector bugs#

Running ESP32-P4 RISC-V PIE SIMD acceleration under multi-task FreeRTOS uncovered three upstream bugs in ESP-IDF v5.5.4 and esp-nn (including an interrupt crash inside pxPortGetCoprocArea). Our build applies three local patches inside the build directory without modifying the global SDK:

  1. Hardware-loop interrupt PC corruption: Replaces short or vector-terminated esp.lp.setup hardware loops in esp-nn with scalar addi + bnez loops that dual-issue safely across interrupts.
  2. Lazy FreeRTOS PIE ownership: Removes direct CSR_PIE_STATE_REG writes from esp-nn kernels so FreeRTOS’s lazy coprocessor trap properly claims and saves vector state across task switches.
  3. Context-frame register repair: Saves and restores omitted vector register q3 and PIE CFG, fixes swapped SAR/FFT_BIT_WIDTH restores, and widens RV_PIE_XACC from 4 to 8 bytes.

3. System 2: 50 Hz NeuralPose v8 & Freestyle choreography#

When Ainekio stops walking to bow, wave, sit, recover from a splay, or perform a Freestyle move, control hands off to System 2 (neural-pose-v8-calibrated):

  • Re-locking carpet friction: Training models how carpet pile grips 3D-printed feet whenever lateral motion pauses (mu = 0.10..2.05), forcing the policy to unload weight vertically before sliding a paw.
  • Stand-before-step & Schmitt-trigger single-leg stepping: Requires upright carrier convergence (|ca_err| ≤ 14°) before lifting a foot, then steps one leg at a time—triggering strictly above 6.5° shoulder splay and latching until ≤ 3.0°, eliminating continuous “drunk wobble” hunting.
  • Tripod weight shift: Shifts torso mass onto the three planted legs (±14 mm lateral, ±9 mm fore-aft) before lifting the fourth paw—passing 12/12 3D MuJoCo qualification suites with 0 falls.
  • Single posture owner & clean 939-row library: Firmware yields posture holding (stand_enabled: false) while host NeuralPose runs, keeping 4th-wire telemetry and the per-joint thermal fuse active (jam protection & thermal safety guide). Outdated LLM stall-recovery workarounds were retired, leaving 939 clean choreography rows driven by Ainekio OS’s local Freestyle specialist (Ainekio OS guide).

4. System 3: 50 Hz NeuralPosePresence#

Between commands, NeuralPosePresence runs on the same 50 Hz posture manifold to keep the robot lifelike without burning servos or polluting the microphone:

  • Motor-silent listening: Holds completely still during wake-word and voice capture without sending a disruptive stop, keeping servo gear noise off the microphone while displaying the listening face.
  • Zero-scrub speaking nods: During TTS playback, drives subtle conversational nods strictly in the sagittal plane (±2.5 mm vertical, ±4.5° pitch) with 0.0° shoulder roll—eliminating sideways carpet scrubbing and shoulder heat.
  • Person-aware idle rest: After 3 minutes of room quiet (deferred while a person is visible), the body settles into rest and disables servo PWM until the next command or wake event.
Three-System Neural Motion: MicroDuck, NeuralPose & Living Presence
https://ainek.io/posts/three-system-neural-architecture/
Author
Ainekio
Published at
2026-11-16
License
CC BY-NC-SA 4.0