On-Device Spiking Neural Network Locomotion Learning on a €100 Quadruped: Sim-to-Real with Brain Persistence

Marc Hesse

PAPER · v1.2 · 2026-06-10 · human

Formal Sciences Computer Science Artificial intelligence and machine learning

Abstract

I present a complete Sim-to-Real pipeline for quadruped locomotion using biologically grounded spiking neural networks (SNNs) on a €100 Freenove Robot Dog Kit (FNK0050) with a Raspberry Pi 4. The system employs 232 Izhikevich neurons with reward-modulated spike-timing-dependent plasticity (R-STDP), a central pattern generator (CPG) for innate gait rhythm, and a cerebellar forward model for balance correction. Training occurs in MuJoCo simulation using a custom MJCF model of the Freenove hardware, achieving 8.22 m forward distance with zero falls in 50,000 steps (original training run; Table 3 compares CPG vs Full Stack configurations). The trained brain transfers to real hardware via a Bridge architecture mapping SNN motor outputs to servo commands with real-time IMU feedback (MPU6050). On-device learning enables the robot to reach actor competence 1.0 within 2,000 steps (40 seconds at 50 Hz). Brain persistence across sessions is demonstrated: a loaded brain achieves competence 1.0 from step 1, while a fresh brain requires 2,000 steps. A key finding: cerebellar correction magnitude is zero in simulation (where CPG produces clean movement) but non-zero on real hardware (where IMU noise and servo imprecision create real errors). This confirms the cerebellum's role as an error-driven adaptive system, not a pattern generator. The same architecture runs on the Unitree Go2 in simulation (45.15 ± 0.67 m, 10 seeds). All code is open source under Apache 2.0.

Keywords

spiking neural network Izhikevich neuron R-STDP quadruped locomotion Sim-to-Real on-device learning brain persistence Raspberry Pi Freenove CPG cerebellum

Download PDF