Hi arduino forum,
I am human and I am building an electric bicycle with a Bafang BBS02 kit. This is an electric mid drive engine that can be fitted to most bikes.
The engine has a built in controller which connects to a wiring harness that than connects to a LCD display from where a short piece of wire connects to some switches. With these switches the level of assist can be changed ( a "+"for up and a "-" for down).
Installation was pretty easy and its al working as its supposed to but not the way I want. I would like to remove The LCD display from the setup and still have the option of changing assist level. But the switches that connect to the display which houses a chip/microcontroller that communicates to the engine controller over an rx and tx wire.
I only have some theoretical ideas about how to achieve this, but here is what I was thinking;
If I would open up the cable, then tap the rx and tx line and connect those to an arduino rx and tx port I could then use the switches to change level of assist and monitor what commands the display sends to the engine controller. Once I know these commands I can take a small formfactor arduino, connect it to the engine controller and connect two switches too that arduino. And then programm the arduino to send the commands to the engine-controller to switch level of assist.
Is this doable? (maybe with some help) ? Or is it a lot more complicated than I am thinking it is. What I want to do is make an complete new wiring harness with that small arduino inline. The reason I want to ditch the display is 1) Clean look 2) To make the bike less attractive to thieves.
Thanks to any body that reads this and any help is very much appreciated.