change log:
V0.008:
add current decay after PAS timeout
throttle priority over backpedaling
V0.007:
add "Extended Boost" feature
add power ramp down on low battery
add power ramp down on high motor temperture
Bugfix in battery current limiting
add motor stop when pedaling backwards
V0.006:
add battery indicator based on pack voltage
add trip indicator
adjust cadence calculation
bugfix for power drops
bugfix for PWM on at startup
increased frequency for cadence frame to display
V0.005:
reset to default values by "Torquesensor Calibration" button
added push assistance (with hardcoded strength)
V0.004:
add position sensor calibration
V0.003:
bugfix in break switch and head light switch
add off-road mode
V0.002:
added user settable torque filtering
added user settable torque override feature
lights always on
What is working:
FOC motor control
Display communication for showing speed, power, changing assist levels and some more features, but not all display functions are supported yet.
Throttle operation, depending on the "legel flag" setting up to 6kph without pedaling, or unlimited support according to the max current settings
Torquesensor operation, the assist behaviour can be tuned in the "Assist (full)" tab of the Bafang Canable Tool, see the ReadMe
limiting of the maximum motor current
limiting of the maximum battery current
limiting of the speed, if the legal flag is set
throttle override, throttle will dominate the torquesensor, if its signal is higher
External speed sensor support
Light switching
Brake sensor support
Off road mode by user settable display button code
Position sensor calibration
reset to default settings by "Torquesensor Calibration" button
push assist (up to 6kph, if legal flag is set)
Battery indicator
Trip indicator
low voltage switch off
What is not working yet:
Simple PAS mode
idle switch off, system has to be switched off manually
Everything you do with this firmware is at your own risk. The authors accept no liability for damage to property or personal injury! It is strongly recommended that you use a fuse between the battery and the controller to prevent damage to the controller or motor in the event of a malfunction.