3 ms·
Reverse engineering my e-bike’s head unit and motor controller to build a custom head unit out of a Raspberry Pi with oled touch screen (head unit will also be
by brotchie 2y ago
Reverse engineering my e-bike’s head unit and motor controller to build a custom head unit out of a Raspberry Pi with oled touch screen (head unit will also be used to control LED patterns on the bike).
Used a logic analyzer to work out the protocol between the head unit and the motor controller (uart at 9600) and used a ESP32 to man in the middle the protocol. Currently reverse engineering the meaning of the bytes in the packets sent between the units.
First attempt was taking apart the head unit and attaching a debugger to the exposed serial debug interface (Cortex M0) chip, but looks like the manufacturer had disabled flash reading by setting the flash security bit.
- __mharrison__ 2y agoWhat kind of motor does your bike have?
- brotchie 2y agoDon't know the exact motor (Have yet to pull the back wheel off and inspect) but the motor controller is a Dongguan Jing Hui Brushless DC motor controller. The controller "head unit" is a Tian jin Yolin YL90T-H.