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

Marc Hesse

PAPER · v1.0 · 2026-04-09 · human

Formal Sciences Computer Science Artificial intelligence and machine learning

Abstract

This paper presents 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.2 m forward distance with zero falls in 50,000 steps. The trained brain transfers to real hardware via a Bridge architecture that maps SNN motor outputs to servo commands with real-time IMU feedback from an MPU6050 sensor. 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. Spectral analysis confirms the SNN produces independent motor patterns distinct from the CPG signal. The same architecture runs on the Unitree Go2 in simulation (45.15 ± 0.67 m, 10 seeds), demonstrating cross-embodiment transfer. All code is open source under Apache 2.0. This work extends the MH-FLOCKE framework described in Hesse (2026).

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