Parent speed limiter · interactive demo
E-bike speed limiter for parents
A small box that sits in the throttle wire. Below the speed limit, the throttle passes through as normal. Near the limit, it eases the throttle off so the bike holds the set speed and does not cut out hard. Speed comes from a magnet on the wheel.
The prototype runs on a Waveshare ESP32-S3 1.47″ touchscreen (172×320) with Wi-Fi, Bluetooth and a microSD card for ride logs. It sits upright in a 3D-printed pocket that clamps to the handlebar. The screen below runs in your browser on a simulated bike. It is not for sale yet.
Tap the screen to change page: Ride · Throttle · Limit · Options · Stats. On the Limit and Options pages, tap − or +.
Ride the simulator
Watch the signal go through the box.
Twist the throttle above. The wires pulse faster and turn red as the voltage rises, and the wheel speeds up.
Swipe sideways to see the whole diagram →
Options
The same settings are on the screen's Options page. They are set once when the box is installed.
The box reads your throttle between these two voltages and never sends the controller anything above the end voltage.
Many controllers have their own soft-start or throttle ramp setting. It adds on top of Throttle feel, so turn one of them down or the bike will feel slower to respond than you expect.
Full or Quick
Both use the same screen and the same wheel magnet. They differ in how they stop the motor. Switch between them in the simulator above.
Throttle + pedal sensor
- Plugs in between the throttle and the controller, and between the pedal sensor and the controller
- Eases the throttle off near the limit, so the bike settles at the set speed with no jerk
- Pedal assist is cut with a small MOSFET on the pedal sensor wire
- The brake cut-off wire is still there as a backstop
- Hard to bypass: the throttle signal runs through the box, so unplugging the box means no throttle
Two ways to limit the throttle: the MCP4725 output (smoothest, see below), or a MOSFET that pulls the throttle wire down to the released voltage. The MOSFET version is simpler and cheaper; switched fast and smoothed with a capacitor, it can ease the throttle off too.
Brake cut-off + wheel magnet
- One adapter on a brake lever plug, one wheel magnet sensor, and power. That's the whole install
- Over the limit, the box "squeezes the brake" electronically. The controller cuts all motor power: throttle and pedal assist, on any kind of bike
- Works the same whether pedal assist is on or off
- On/off rather than smooth: the bike surges gently around the limit
- Easier to bypass: unplugging the brake adapter leaves the bike unlimited, so it needs the tamper steps below
The brake lever is just a switch that joins two wires. The box copies it with a solid-state relay (PhotoMOS, about $1–2), so it works whether the bike's brake wire is pulled to ground or to 5/12 V. Some controllers want the throttle released after a brake signal before power comes back; that needs checking on each bike.

A small upright screen on the bar
- Waveshare ESP32-S3 1.47″ touchscreen, 172×320, about $20
- Slides into a 3D-printed pocket that clamps around the bar with one bolt (sized for 28 mm, 1-1/8″ bars)
- The screen faces the rider, upright
- Small and low-power, so it runs from the throttle's 5 V on most bikes
- microSD card logs every ride: top speed, distance, and how often the limit kicked in
- Wi-Fi and Bluetooth for changing settings from a phone later
Board details: Waveshare ESP32-S3-Touch-LCD-1.47
A magnet on a spoke and a pickup on the frame
- The same kind of sensor many e-bikes and bike computers already use: a small hall pickup clamped to the fork or chainstay, and a magnet clamped onto a spoke
- Each time a magnet passes, the pickup sends one pulse. The ESP32 times the gap between pulses and works out the speed from the wheel size
- One magnet works. Two or four magnets give faster, smoother readings, mostly at low speed, and magnets are cheap. Set the number in Options
- Keep the gap between magnet and pickup small (a few mm)
- Many pickups run on 5 V. If the signal comes out at 5 V, it goes through a divider like the throttle; an open-collector pickup just needs a pull-up to 3.3 V
- Tamper check: if the motor is pushing but no pulses arrive for a few seconds, the sensor is assumed unplugged and the bike drops to walking pace. Try it in the demo
Why the throttle can't go straight into the chip
The ESP32-S3 runs on 3.3 V. Its pins are rated to about 3.6 V at most, and a higher voltage can damage the pin or the whole chip. A hall throttle sends 0.8 V when released and 4.2 V at full throttle, so wiring it straight in would kill the chip the first time someone twists it all the way.
Two resistors fix that. They form a voltage divider that scales the throttle signal to two-thirds before it reaches the chip:
Vchip = Vthrottle × 20k ÷ (10k + 20k) = Vthrottle × 0.667
The firmware multiplies the reading by 1.5 to get the real throttle voltage back. The two resistors also pass almost no current (about 0.14 mA), so the throttle reading isn't affected.
| Throttle sends | Chip sees |
|---|---|
| 0.80 V (released) | 0.53 V |
| 2.50 V (half) | 1.67 V |
| 4.20 V (full) | 2.80 V |
| 5.00 V (shorted to 5 V, a fault) | 3.33 V, still safe |
The ratio is chosen so that even a fault that puts the full 5 V on the signal wire stays under 3.3 V. A 100 nF capacitor from the pin to ground smooths out electrical noise from the motor.
A safe start: why it uses an MCP4725
The ESP32 can't output more than 3.3 V, so a small DAC (digital-to-analog converter) powered from the 5 V wire makes the throttle voltage for the controller. It can send anything from 0 to 5 V, and the firmware only ever sends between your start and end voltage.
The problem at power-on. Hall throttles never send 0 V; at rest they send about 0.8 V. Many controllers treat 0 V on the throttle wire as a broken throttle and throw a fault when the bike is switched on. The ESP32 takes a moment to boot, so whatever drives the throttle wire during that moment matters.
The MCP4725 fixes it. It has a small built-in memory (EEPROM). The start voltage (0.8 V) is written to it once, so it outputs 0.8 V the instant power comes on, before the ESP32 has even started. The controller only ever sees a normal released throttle.
| MCP4725 DAC | PWM + op-amp | |
|---|---|---|
| At power-on | 0.8 V at once | 0 V until the ESP32 boots |
| Controller fault on start | No | Possible on some controllers |
| Accuracy | 12-bit, about 1 mV steps | Depends on the filter; some ripple |
| Extra cost | About $5 | Under $1 |
The MCP4725 runs on 5 V to reach 4.2 V, so its I²C wires go through a small level shifter to the 3.3 V ESP32. Board: Adafruit MCP4725.
If anything fails, the throttle goes off
A DAC keeps sending its last voltage until it is told otherwise, so the design does not rely on the code alone:
- The ESP32 powers the DAC through a small transistor. If the code hangs, the watchdog restarts the board within a fraction of a second and the DAC loses power, so the output drops to 0 V (no throttle).
- A resistor pulls the output to 0 V whenever the DAC is off or a wire comes loose.
- On every start, the firmware writes the start voltage first, before anything else.
- A throttle reading well outside the start and end voltages (a broken wire) means no throttle.
Cutting pedal assist too
Many e-bikes also push the motor when you pedal. If only the throttle is limited, a child can pedal past the limit. The box handles that too.
Gate the pedal sensor pulses
Most pedal sensors send a stream of pulses while the cranks turn. The controller only gives assist while those pulses keep coming. So an adapter plugs in between the pedal sensor and the controller (the bike's 3-pin plug), and the box can hold the signal wire at ground. No pulses means no assist, usually within half a second.
- MOSFET, not a relay. A small MOSFET switches silently, uses almost no power and costs about 10 cents. A relay would work too, but it clicks, draws around 70 mA and wears out with vibration.
- Grounding the signal is the trick. The 1k resistor protects sensors that drive their output hard, so shorting it to ground never hurts the sensor.
- Fail-safe: the pull-up turns the MOSFET on by default. If the ESP32 crashes or restarts, pedal assist is cut until it is running again.
- No chatter: assist is cut at the limit and comes back 1 mph below it.
Backstop: the brake cut-off wire
Nearly every e-bike controller has brake lever inputs that cut all motor power when a brake is pulled. The box can add a second MOSFET on that wire and act as an electronic brake lever. That works with every pedal sensor type, including torque sensors, and with throttle and pedal assist at the same time.
It is on/off rather than smooth, so it is the backstop: if the bike gets 2 mph over the limit with the motor still pushing, the box "pulls the brake" until it slows down. Most bikes short the brake wire to ground; a few use a 5 V or 12 V signal instead and need a different switch. Some controllers also add gentle regen braking when the brake input is on.
| Pedal sensor type | How the box limits it |
|---|---|
| Cadence sensor, magnet ring on the crank (most hub-motor bikes, 3 wires) | Gate the pulses |
| Dual-signal cadence sensor (knows pedal direction) | Gate the pulse wire(s) |
| Torque sensor in the bottom bracket (4–6 wires) | Gate its cadence pulses, or the brake wire |
| Mid-drive motor with the sensor built in | Brake wire, or set top speed in the motor's own settings |
Keeping kids from bypassing it
Kids are clever. The aim is that bypassing it is hard, and that a parent can tell if anyone tried.
Make it hard
- Unplugging stops the bike (Full version). The throttle signal runs through the box, so pulling the box out means no throttle.
- Plugs that don't fit back together. The controller side gets a different connector, so the throttle can't be plugged straight into the controller.
- Glue-lined heat shrink over every connector. It seals the plugs (good for rain too) and has to be cut off to unplug anything.
- Security screws on the case and the magnet clamps (pin-in-Torx), so they can't be opened or moved with normal tools.
- Parent PIN for the limit, wheel size and magnet count. A smaller wheel size or a removed magnet would make the box read too slow, so those are locked too.
Make it obvious
- The screen is the check. It shows the lock and the limit whenever the bike is on. A dark screen on a moving bike means something was unplugged.
- Sensor checks: throttle or pedaling with no wheel pulses means the magnet or pickup was moved or unplugged, so the bike drops to walking pace.
- Brake adapter check (Quick version): the box measures the brake wire, so it knows if its adapter was unplugged.
- Ride log: every ride and every tamper event is saved to the microSD card and sent to the parent's phone over Bluetooth or Wi-Fi when the bike gets home.
- Odometer check: the box counts its own miles. If the bike's display shows more miles than the box, it was ridden with the box off.
Questions
Will it work on any e-bike?
It is meant for e-bikes with a standard 3-wire hall throttle (5 V, ground, signal). Twist and thumb throttles both work. Set the start and end voltage to match your throttle. Pedal assist is limited through a second adapter on the pedal sensor plug, or through the brake cut-off wire (see Pedal assist above).
Why a wheel magnet and not GPS?
A wheel magnet reads speed several times a second and works anywhere, including in cities, under trees and in garages. GPS updates about once a second and loses its signal near buildings, so the limit would wobble.
Can the child turn it off?
The limit and options sit behind a parent PIN. The throttle signal runs through the box, so unplugging it stops the throttle instead of removing the limit.
Can I buy one?
Not yet. This is a Labs concept. Tell us if you would want one.