emmebrusa / TSDZ2-Smart-EBike-1

TSDZ2 Open Source Firmware adapted to VLCD5-VLCD6-XH18 displays
GNU General Public License v3.0
133 stars 35 forks source link

Read-only controller option #39

Open votive opened 1 year ago

votive commented 1 year ago

I've been looking into the legality of using the OSF on UK roads. One of the current legal requirements is that during a ride, there isn't an "off road" button or option on the controller, and no way of changing the 25 kmh cut-off of the motor using the controller (for example). Can I completely disable/turn-off the controller settings menu by using an option in the Java Configuration tool, and then flash this firmware to the motor?

This would allow me to change the settings on my PC and experiment, but then I can "lock in" settings I like, and can write them to the motor so that they can't be changed on the controller on the handlebars.

If this isn't a feature currently, do you accept PRs? (I'm a software engineer so could have a go at implementing this).

emmebrusa commented 1 year ago

Just set the maximum speed to 25 km / h, both in street mode and off-road mode. It will no longer be possible to change it on the display. Obviously "Set max speed from display" must be disabled. Important to be legal, install 36V 250W motor with 36V battery, a 48V 750W motor even if you limit the power in the firmware, it can be cause for dispute.