You have reminded me of Isaac Newton's famous quote "If I have seen further it is by standing on the shoulders of Giants.”All I'm doing is borrowing someone else's work and adapting it. If I'd done this from scratch it would be impressive.
I was thinking that a devious person might do a Volkswagon on it, and make it so that it behaves one way (15mph) when tested and another way in normal use, like they did with their emissions testing? Something like the speed being limited for the first 10 seconds of demanding power on any level, then the limit disappears. That way, they wouldn't get the annoying cutting in and out.Quick update. I'm working on improving the characteristics around the legal cut off point to stop any surging. Only changing a bit at a time so slow going. Trying really hard not to do my usual and change about ten things at once so I have no idea what has caused it to stop working.
As the firmware was designed around a torque sensor I think the torque simulation probably has room for a bit of improvement. The assist kicks in far too early so next job is to work out how to put in some sort of start delay. Probably will be some sort of PAS pulse counter.
You deserve much Kudos for doing all this and documenting it so well.So as a recap my setup is:
AKM128
Lishui 12FET 25A New Generation Controller
PAS sensor V12L
KT LCD3
Throttle
Firmware link:
![]()
GitHub - SparksandBangs/SparksandBangs_EBiCS_Firmware: Free FOC firmware for Lishui E-Bike-Controllers
Free FOC firmware for Lishui E-Bike-Controllers. Contribute to SparksandBangs/SparksandBangs_EBiCS_Firmware development by creating an account on GitHub.github.com
User settings:
![]()
SparksandBangs_EBiCS_Firmware/Inc/config.h at master · SparksandBangs/SparksandBangs_EBiCS_Firmware
Free FOC firmware for Lishui E-Bike-Controllers. Contribute to SparksandBangs/SparksandBangs_EBiCS_Firmware development by creating an account on GitHub.github.com
I've commented everything that I've amended or i thought might be unclear. I did an object orientated programing course many moons ago and was threatened with being failed if i didn't start adding comments.You deserve much Kudos for doing all this and documenting it so well.
The code referenced on github looks almost understandable - even to me.... Though not sure exactly how it would be flashed onto the controller. I've dabbled a tiny bit with Arduinos, and arduino based radios and always had my buttocks clenched when re-flashing them through usb connections. I once mucked about with changing parameters with a direct board connection on a GPS with some sort of weird dongle thing converting from serial, but this isn't a process I understand well at all.