Tiny 32-Neuron Network Balances an ESP32 Robot, Making a Decision 500 Times a Second
Overview
A maker demonstrates a TinyML experiment where a 32-neuron network on an ESP32 balances a two-wheeled robot by imitating a Linear Quadratic Regulator teacher. The system makes decisions at 500 Hz, completing inference in roughly 33 microseconds while handling sensor filtering and motor limits. This approach avoids reward-based training and simulated environments, using instead behavior cloning to copy an existing controller's outputs. The network successfully completes ten out of ten freestanding starts and travels about 40 meters when driven from a keyboard.
Generated from attributed reports · Updated
Event evidence and corrections
0 attributed source owners. Ownership does not establish independent confirmation. Quantities are reported separately and are never added together.
Reported quantity · decision frequency: 500 other · Basis not reported
“How small can a neural network be and still do a real job? The maker behind the Build Mode channel answered that with his ESP32 self-balancing robot: a network of just 32 neurons now keeps it upright , making a decision 500 times a second. It is a clean, measurable TinyML experiment on hardware many makers already own, and it shows a smarter way to train a controller than trial and error. Three brains, one robot The”
Exact source · revision 2Source owner not reported
Reported quantity · robot height: 16 other · Basis not reported
“robot is a 16 cm, roughly 1 kg two-wheeler with brushed DC gear motors , two motor drivers, an MPU-6500 gyro and accelerometer , and an ESP32 with a small display. In the first episode it balanced on three cascaded PID loops for angle, speed and position. In the second, those loops were replaced by LQR, a linear quadratic regulator: one equation that watches five states at once (angle, tipping rate, position, speed a”
Exact source · revision 2Source owner not reported
Reported quantity · robot mass: 1 other · Basis not reported
“robot is a 16 cm, roughly 1 kg two-wheeler with brushed DC gear motors , two motor drivers, an MPU-6500 gyro and accelerometer , and an ESP32 with a small display. In the first episode it balanced on three cascaded PID loops for angle, speed and position. In the second, those loops were replaced by LQR, a linear quadratic regulator: one equation that watches five states at once (angle, tipping rate, position, speed a”
Exact source · revision 2Source owner not reported
Reported quantity · training duration: 40 other · Basis not reported
“troller what it would do in each one and trained the network to copy those answers. There were no rewards and no simulated robot, and one training run takes about 40 seconds on a PC. This approach is often called imitation learning or behaviour cloning. The result is two hidden layers of 16 neurons, 385 learned numbers in total, taking five inputs and producing one base motor command. An inference takes about 33 micr”
Exact source · revision 2Source owner not reported
Reported quantity · inference time: 33 other · Basis not reported
“troller what it would do in each one and trained the network to copy those answers. There were no rewards and no simulated robot, and one training run takes about 40 seconds on a PC. This approach is often called imitation learning or behaviour cloning. The result is two hidden layers of 16 neurons, 385 learned numbers in total, taking five inputs and producing one base motor command. An inference takes about 33 micr”
Exact source · revision 2Source owner not reported
Report timeline
Follow attributed reports and material updates.
- Robotics — Robot learning news discoverySignalTiny 32-Neuron Network Balances an ESP32 Robot, Making a Decision 500 Times a Second
A maker demonstrates a TinyML experiment where a 32-neuron network on an ESP32 balances a two-wheeled robot by imitating a Linear Quadratic Regulator teacher. The system makes decisions at 500 Hz, completing inference in roughly 33 microseconds while handling sensor filtering and motor limits. This approach avoids reward-based training and simulated environments, using instead behavior cloning to copy an existing controller's outputs. The network successfully completes ten out of ten freestanding starts and travels about 40 meters when driven from a keyboard.
Event coverage history
There is not enough continuous observation data to show a trend.
Timezone · UTC
Article dates follow your selected timezone. Briefing editions use Hong Kong time (UTC+8).