stancecoke
Minor legend
As it is quite tricky to activate a torquesensor on a workbench (turning the BB shaft and put on a torque at the same time
), I've build an emulator, that generates the needed signals. Cadence and torque can be set by two pots, a button on the PCB starts and stops the signal generation. If stopped, the idle signal is send permanently. I gave a small sneak preview on the Bafang CAN controller OSF firmware thread, now the universal model for the CAN and the analogue sensor versions is working. It's a little soldering, but really easy to build. Maybe it is worth to design an own PCB and let it build by JLCPCB or other PCB manufacturers.
If there is interest, I can provide a precompiled hex file for the Bluepill in a release.
github.com
The emulator generates the CAN message every 400ms in the format that is described at github. I have no controller for a CAN sensor, so I can't test it.

The most expensive parts are the Higo connectors for the CAN and the UART connectors. The device works stand alone, just plug it to the torquesensor connector of your processor. No laptop, smartphone or anything else is needed

If there is interest, I can provide a precompiled hex file for the Bluepill in a release.
GitHub - stancecoke/BottomBracketTorquesensorEmulator
Contribute to stancecoke/BottomBracketTorquesensorEmulator development by creating an account on GitHub.
The emulator generates the CAN message every 400ms in the format that is described at github. I have no controller for a CAN sensor, so I can't test it.

The most expensive parts are the Higo connectors for the CAN and the UART connectors. The device works stand alone, just plug it to the torquesensor connector of your processor. No laptop, smartphone or anything else is needed

Last edited:










