VanMoof S3 e-shifter — new board and new firmware
CompletedThe electronic gear-shift unit of the VanMoof S3 has well-known reliability problems. We reverse engineered the original — down to the bus protocol the bike uses to drive it — and then rebuilt both the board and the firmware. The replacement speaks the same protocol, but runs entirely our own software.
- › Reverse engineering of the original unit, down to the bus protocol: Modbus RTU over a 4-pin Molex PicoBlade, 9600 baud 8-N-1
- › Schematic capture and PCB layout in Altium Designer, now at revision v8
- › Custom firmware written in C on Zephyr RTOS, running on an STM32L011F4
- › Fits within 16 KB of flash and 2 KB of RAM — no heap, with link-time optimisation
- › H-bridge motor control with hall sensors for position feedback across four gears
- › Drop-in replacement: same connector and same Modbus address, so the bike cannot tell the difference