casainho wrote: ↑
Jun 09, 2018 7:52 pm
Can someone tell what happens when the battery voltage drops over max limit? what happens on LCD, does it blinks or stays with battery symbols empty?
What happens when the voltage approaches to the limit, does the motor starts assists less or simple it stops until next power restart of the TSDZ2?
I got the motor code done. Motor seems to run very wheel using FOC, I am being testing on a bike training roller for now.
This are the protections that are implemented:
- limit battery undervoltage:
when undervoltage is hit, motor quickly reduces the current usage and this way user will always have assistance until battery is fully discharged
- limit battery max current:
the value should be as max 18 amps as in original firmware but I also plan to test 22.5 amps (+25%)
- limit motor max phase current (25 amps for now):
this protects mosfets from burning at motor startup and running at low speed and high currents
- limit motor max ERPS to 520:
this is a limit of FOC. Motor has 8 poles and so 520ERPS = 3900RPMs. This value can be increased a bit later, but need to be tested. I think later we can improve FOC to run motor at like 4600RPMs (higher +600 RPMS than original firmware)
1. to make motor run, we just call : ebike_app_battery_set_current_max(18); (18 is the current value but can be any other value)
2. to stop the motor: ebike_app_battery_set_current_max(0);
As soon we call ebike_app_battery_set_current_max with a value > 0, motor will accelerate and maintain constant that current value. The torque sensor value will define this value: when user makes a stronger force on the pedals, we will increase the current value!