Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

860C_850C_SW102_v1.0.0

Compare
Choose a tag to compare
@casainho casainho released this 26 May 15:49
· 25 commits to master since this release

The release of version as 1.0.0 represents a milestone because all major features about TSDZ2 motor control are now implemented like FOC and Field Weakening. Also on the display side, I don't plan any new big changes. Note that this does not means it is clear of issues (remember that this is a hobby project developed by professionals on their free time) and there are certainly features that can be added in future versions like 1.1.0 and polish the current ones, and I plan to do that.

The big new feature on this version 1.0.0 is the "amplification" of cadence and motor power in the range from 80 to 120RPM!! previous, the motor power would start to decrease at around cadence 80 and be zero at 90, meaning no motor assistance at all over cadence 90RPM. Now, you will get assistance all way up to cadence 120RPM.
Note that this considers a battery with the same voltage as the motor, like a 36V battery with a 36V motor or 48V battery with 48V motor. Even in the cases of using a 48V battery with 36V motor, the cadence is still increased up to 120RPM with most possible optimized efficiency.

This version was developed for displays 860C, 850C and SW102 and for the TSDZ2 motor controller running the firmware v1.0.0 (TSDZ2-v1.0.0.hex) -- see below attached files.

THIS IS AN HOBBY PROJECT -- WARNING: due to any possible existing bug on the firmware or user incorrect configuration, the motor controller may burn and/or the motor and bicycle wheel may start to run very fast at max power - please be very careful when installing the firmware and keep the bicycle back wheel on the air, have brake sensors installed and the possibility with easy access to quick cut the battery power like removing the battery connector to the TSDZ2.

After installing this firmware you MUST follow the next page to configure and learn how to navigate: https://github.com/OpenSource-EBike-firmware/TSDZ2_wiki/wiki/Features-and-configurations-on-display

Changelog from previous stable release v0.8.0:

  • increase motor assistance as also pedal cadence up to 120RPM (previous limit was around 85RPM) and for this was need to:
    -- UART communications frequency is increased twice to save the processing time needed to implement following points
    -- increased PWM frequency from 15.6kHz to 19 kHz
    -- implement Field Weakening
    -- configuration to enable/disable Field Weakening as it brings a loss of efficiency at high cadence value over 90RPM, possible a loss of 25%
  • added virtual throttle: user can use UP and DOWN buttons to increase throttle value (from 0 to 100%). User must keep pressed UP or DOWN buttons, otherwise, after one second the throttle value goes to 0 (this works as a security measure)
  • Added configuration for virtual throttle increase/decrease steps in %
  • added coast brake ADC sensitivity configuration: the TSDZ2 coast brake version should now fully work on this firmware version
  • added configuration to enable/disable coast brake as it was giving issues when using throttle on a TSDZ2 no coast brake version
  • changed battery max current limit to 20 amps
  • added torque sensor startup threshold
  • added configuration for cadence fast stop mode, which is disabled by default. Enable for regular bicycles and disable for some full suspension bicycles
  • ebike control loop now runs at twice the frequency in the hope to make system a bit more responsive (tested by vshitikov)
  • added Wh/km variable to be shown on custom fields and also on the graph
  • corrected issue on build script of SW102
  • added configuration for lights ADC current step
  • added battery ADC steps to configurations technical menu (to help user find the amount of battery current ADC steps that his lights pull)
  • added torque sensor filter with configuration
  • SW102: added Bluetooth UART with pairing and currently sends some variables only to help debug
  • corrected ADC frequency
  • added configuration for motor current control as torque mode as also keeping the previous power mode
  • changed Walk assist max speed to 6 km/h while previously was 8 km/h
  • added a few configuration to clock field: disable, clock, battery SOC % and battery volts
  • changed battery max current limit to 20 amps