Maybe one of my tsdz2 has a bad cadence sensor in the motorbuba wrote: ↑Nov 10 2019 11:03pmThis is a very strange bug. There are no differences between my code and the official version... Will have to look at it more closely.jeff.page.rides wrote: ↑Nov 09 2019 2:43amI used the same LCD3 display with the file from your site on two different TSDZ2 motors 1 with the file from your site that the cadence displayed correctly and 1 with the file from the official site that the cadence display did not work.
TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)
-
- Posts: 234
- Joined: Aug 13 2019 10:16am
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Did some testing today and found gatorseans information was correct for my motor however connecting red to blue will not power the motor. I tried connecting red, blue and black to the corresponding wires on the LCD and although the LCD would turn on still no power from the motor. I had to connect the RX and TX wires to the lcd brown and yellow wires before the motor would run and it seemed glitchy but have more to do another time.danielson wrote: ↑Nov 11 2019 5:27amI read the motor controller can be enabled by simple connect green wire to white wire and this way there is no need to use LCD here https://opensourceebikefirmware.bitbuck ... oller.html So joinging Green P+ battery voltage to White Vin / ground should enable the motor without the LCD, however with information that gatorsean just posted it looks like I should be joining blue to red ?danielson wrote: ↑Nov 11 2019 4:54amNeed some help.
I flashed the firmware in my new motor today and made necessary settings using marcoqs java configurator. I am waiting on my SW102 and have read that you can power the motor by joining white to green. I gave the 8 pin plug from the motor the chop and joined the white and green but no power. It is a new 48v motor from pswpower has 8 pin plug - female hole with 8 males pins in it. My battery is 52v thus the need to change the settings. Should what I have done worked ?
Am on the right track ?
Update.
I ended up installing standard 52v firmware and was able to get it to work by connecting blue to red. The power seemed around level 3 but default 25km speed limit was in place. I tried connecting the LCD again and adjusting the speed then removing the LCD but the result was the same. I ended up just putting the VLCD5 on so I can adjust settings.
Last edited by danielson on Nov 13 2019 5:46pm, edited 1 time in total.
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
I installed 0.20Beta1 Yesterday from Github
Did cadence sensor calibration / advance mode during setup,
My cadence is shown OK, a little bit flickering up and down ( +/- 2)
Was working fine on first test drive, working very smooth and nice!
Was a little confused by the changed Street mode handling.
One question:
I used standard settings for assistance. But swiched on MTB Mode.
Is the MTB Mode something on top of the other assistance modes or working only seperatly.
If on top , which kind of assistance is recomended to cooperate with this?
Oh darling, this is not a new bike.. 

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Flashed both my displays (850C) with the latest beta 3 version of the OSF. I use throttle, but when activated it gives me a temperatur warning. First the yellow one, and then the red one.
I haven't put the motor into the bicycle yet, so I just connected the battery, throttle and so on.
Whilst throttle is enabled, the temp feature is disabled.
So my question is: why does it still give me a temperatur warning?
Else everything works as expected. Hyped for my finished bike, not gonna lie
Ride on folks!
I haven't put the motor into the bicycle yet, so I just connected the battery, throttle and so on.
Whilst throttle is enabled, the temp feature is disabled.
So my question is: why does it still give me a temperatur warning?
Else everything works as expected. Hyped for my finished bike, not gonna lie

Ride on folks!
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Hi Buba,
It is good to see that all is well with you!
I can hit 40 kph with medium effort and over 45 kph with significant effort. I am using also exp cadence.
Regards!
It is good to see that all is well with you!
Can you please add some details how are you getting to this speed easy? What assistance level and what particular settings are you using?
I can hit 40 kph with medium effort and over 45 kph with significant effort. I am using also exp cadence.
Regards!
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
My guess is he uses the maximum amount of power the motor can sustain without overheating + a different chain ring (so the motor spins at higher rpm, therefore being more efficient) + a high gear on the back wheel. So motor spins at high rpm, and power goes to a high gear. He might be using 29" tires with street profile, so less rolling resistance than you might have. Also, he might have the 750w version powered by a 52v battery, giving even more power to the motor.maximusdm wrote: ↑Nov 13 2019 4:27amHi Buba,
It is good to see that all is well with you!
Can you please add some details how are you getting to this speed easy? What assistance level and what particular settings are you using?
I can hit 40 kph with medium effort and over 45 kph with significant effort. I am using also exp cadence.
Regards!
I can post my results on friday or saturday, depending on how much time I have at hand. I'm running 52v and 750w, with a standard 42T chain ring (comes with motor). Available chain rings go down to 32T.
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Installed lm35dz sensor and it's working nicely. Showing 23C on room temperature. Interesting thing is that temperature starts rising immediatelly when i engage walking mode.
While having motor open I've also installed gel pads. It's more like a thick pad of clay than gel. I have left one side of the plastic foil on so it doesn't stick to the casing. It's easily pliable so it conformed to the casing when pushed a bit harder. Not sure how efficient will it be but it's better than nothing.
I replaced the rubber sealant where the wires protrude from controller to the side where chainrinf is with high temperature silicone. Used the same silicone to seal the cover on that side as well. Since that rubber/silicone sealant is easy to remove I'm thinking about sealing the motor cover as well just to be sure.
In the mean time waiting for the sw102 to arive. It's pain in the butt to go through unmarked lcd3 menus.
While having motor open I've also installed gel pads. It's more like a thick pad of clay than gel. I have left one side of the plastic foil on so it doesn't stick to the casing. It's easily pliable so it conformed to the casing when pushed a bit harder. Not sure how efficient will it be but it's better than nothing.
I replaced the rubber sealant where the wires protrude from controller to the side where chainrinf is with high temperature silicone. Used the same silicone to seal the cover on that side as well. Since that rubber/silicone sealant is easy to remove I'm thinking about sealing the motor cover as well just to be sure.
In the mean time waiting for the sw102 to arive. It's pain in the butt to go through unmarked lcd3 menus.
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
New firmware version for 850C dispaly, download here: https://github.com/OpenSource-EBike-fir ... 5.0-beta.5
Changelog beta.5:
- graphs now correctly show history data of last 15 minutes
- all graphs are now stored on RAM, meaning you can switch between each one of the thirteen and see the last 15 minutes of history
- added battery current to customized field and graphs
- previous customized field index is now stored between power ups
- warning and error thresholds now activated on the motor temperature (see next picture: motor_temperature_min_value_to_limit = 55 and motor_temperature_max_value_to_limit = 65)

Changelog beta.5:
- graphs now correctly show history data of last 15 minutes
- all graphs are now stored on RAM, meaning you can switch between each one of the thirteen and see the last 15 minutes of history
- added battery current to customized field and graphs
- previous customized field index is now stored between power ups
- warning and error thresholds now activated on the motor temperature (see next picture: motor_temperature_min_value_to_limit = 55 and motor_temperature_max_value_to_limit = 65)

- EBike wireless standard: wireless motor, wireless cycling GPS display Garmin Edge and wireless remote with wireless brake sensor
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware
Developer of OpenSource knowledge and technology for ebikes: Wireless EBike standard ANT+ and Bluetooth, TSDZ2 OpenSource firmware, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.
Please consider a donation to help developments: paypal.me/jorgecasa
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware
Developer of OpenSource knowledge and technology for ebikes: Wireless EBike standard ANT+ and Bluetooth, TSDZ2 OpenSource firmware, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.
Please consider a donation to help developments: paypal.me/jorgecasa
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Thank you very much for the fast update! Very much appreciated!
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Loaded 850C_v0.5.0-beta.5. Imperial setting still not working. Even though main screen says MPH, the speed and trip reading are both in KM/H.
-
- Posts: 115
- Joined: Nov 10 2016 3:29pm
- Location: Oxford, England
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
I do not think there is anything wrong with your cadence sensor. I believe there is simply a difference in how the firmware is built. It seems that when using Windows and the latest SDCC it works. But when using Linux and SDCC (possibly with some space optimizations) it does not work... I am not confirming this to be the problem but it sure does seem like it. Will update soon.jeff.page.rides wrote: ↑Nov 11 2019 11:31pmMaybe one of my tsdz2 has a bad cadence sensor in the motorbuba wrote: ↑Nov 10 2019 11:03pmThis is a very strange bug. There are no differences between my code and the official version... Will have to look at it more closely.jeff.page.rides wrote: ↑Nov 09 2019 2:43amI used the same LCD3 display with the file from your site on two different TSDZ2 motors 1 with the file from your site that the cadence displayed correctly and 1 with the file from the official site that the cadence display did not work.
GitHub: https://github.com/leon927
PayPal: leonstor at bredband.net
Drive: https://drive.google.com/open?id=1CPGT- ... bYtY4_JH2R
PayPal: leonstor at bredband.net
Drive: https://drive.google.com/open?id=1CPGT- ... bYtY4_JH2R
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
So it seems that the cadence is okay for you using the official firmware version. Let me know if you get any problems!
Glad to hear! I hope you quickly got used to it!
E-MTB Mode is a standalone riding mode and is isolated from the other modes. You can use it whenever you need a very responsive mode with access to the entire power range in one single mode.
There are no recommendation per se, just try it out and configure so it suits your riding style

GitHub: https://github.com/leon927
PayPal: leonstor at bredband.net
Drive: https://drive.google.com/open?id=1CPGT- ... bYtY4_JH2R
PayPal: leonstor at bredband.net
Drive: https://drive.google.com/open?id=1CPGT- ... bYtY4_JH2R
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Thank you!maximusdm wrote: ↑Nov 13 2019 4:27amHi Buba,
It is good to see that all is well with you!
Can you please add some details how are you getting to this speed easy? What assistance level and what particular settings are you using?
I can hit 40 kph with medium effort and over 45 kph with significant effort. I am using also exp cadence.
Regards!

I have a really good 52 V battery (maintains high nominal voltage for a long time) with a 52 teeth crank on a 36 V motor. Custom made bike with minimal resistance and really good tires. Using E-MTB exclusively as it does work well with my torque sensor. Depending on gearing, battery, system and bike setup you should be able to get above 50 kph or 31 mph.
Cheers!
Last edited by buba on Nov 14 2019 9:24pm, edited 2 times in total.
GitHub: https://github.com/leon927
PayPal: leonstor at bredband.net
Drive: https://drive.google.com/open?id=1CPGT- ... bYtY4_JH2R
PayPal: leonstor at bredband.net
Drive: https://drive.google.com/open?id=1CPGT- ... bYtY4_JH2R
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
One of the perks of living where winters get really cold with an overall high air density is that the motor is kept cooler. So that helps me somewhat.Snoopz wrote: ↑Nov 13 2019 7:21amMy guess is he uses the maximum amount of power the motor can sustain without overheating + a different chain ring (so the motor spins at higher rpm, therefore being more efficient) + a high gear on the back wheel. So motor spins at high rpm, and power goes to a high gear. He might be using 29" tires with street profile, so less rolling resistance than you might have. Also, he might have the 750w version powered by a 52v battery, giving even more power to the motor.maximusdm wrote: ↑Nov 13 2019 4:27amHi Buba,
It is good to see that all is well with you!
Can you please add some details how are you getting to this speed easy? What assistance level and what particular settings are you using?
I can hit 40 kph with medium effort and over 45 kph with significant effort. I am using also exp cadence.
Regards!
I can post my results on friday or saturday, depending on how much time I have at hand. I'm running 52v and 750w, with a standard 42T chain ring (comes with motor). Available chain rings go down to 32T.
There is no difference between the 250/350/500/750 W versions of the TSDZ2. The only difference in the hardware is what type of motor you might have: 36 or 48 V. The controller is the same for all versions.
GitHub: https://github.com/leon927
PayPal: leonstor at bredband.net
Drive: https://drive.google.com/open?id=1CPGT- ... bYtY4_JH2R
PayPal: leonstor at bredband.net
Drive: https://drive.google.com/open?id=1CPGT- ... bYtY4_JH2R
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Turns out I had forgot to zap strap the crank..no wonder
I’ll do it when I get home and hopefully I’ll be able to achieve faster speeds.
Thanks

I’ll do it when I get home and hopefully I’ll be able to achieve faster speeds.
Thanks
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Glad that you sorted it out!
I do recommend to increase the gear ratio if you want a bit more assistance at higher speeds. Maybe install a 52 T crank or a cassette with an eleven teeth sprocket.
GitHub: https://github.com/leon927
PayPal: leonstor at bredband.net
Drive: https://drive.google.com/open?id=1CPGT- ... bYtY4_JH2R
PayPal: leonstor at bredband.net
Drive: https://drive.google.com/open?id=1CPGT- ... bYtY4_JH2R
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
New firmware version for 850C dispaly, download here: https://github.com/OpenSource-EBike-fir ... 5.0-beta.6
Changelog beta.6:
- corrected issue where speed were show always in kph, even with imperial units
- small arrow indicator on configurations menu now is draw correctly
Changelog beta.6:
- corrected issue where speed were show always in kph, even with imperial units
- small arrow indicator on configurations menu now is draw correctly
- EBike wireless standard: wireless motor, wireless cycling GPS display Garmin Edge and wireless remote with wireless brake sensor
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware
Developer of OpenSource knowledge and technology for ebikes: Wireless EBike standard ANT+ and Bluetooth, TSDZ2 OpenSource firmware, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.
Please consider a donation to help developments: paypal.me/jorgecasa
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware
Developer of OpenSource knowledge and technology for ebikes: Wireless EBike standard ANT+ and Bluetooth, TSDZ2 OpenSource firmware, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.
Please consider a donation to help developments: paypal.me/jorgecasa
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Sorry, then I have some questions with the modes:buba wrote: ↑Nov 14 2019 8:55pmSo it seems that the cadence is okay for you using the official firmware version. Let me know if you get any problems!
Glad to hear! I hope you quickly got used to it!
E-MTB Mode is a standalone riding mode and is isolated from the other modes. You can use it whenever you need a very responsive mode with access to the entire power range in one single mode.
There are no recommendation per se, just try it out and configure so it suits your riding style![]()
Should I only enable one mode in the configuration?
If so, what will happen if I will enable two different modes?
If not, How to change from mainscreen? I did not find the method to swich!
Regarding MTB Mode: just to ned to put on the sensitiveness. Nothing to change with the assistance butons right?
I am so curious to get it running!
Oh darling, this is not a new bike.. 

-
- Posts: 115
- Joined: Nov 10 2016 3:29pm
- Location: Oxford, England
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Just flashed beta.5 bootload. Trip and odometer both fixed at 0.0, current is working fine. Will try beta.6casainho wrote: ↑Nov 15 2019 5:38amNew firmware version for 850C dispaly, download here: https://github.com/OpenSource-EBike-fir ... 5.0-beta.6
Changelog beta.6:
- corrected issue where speed were show always in kph, even with imperial units
- small arrow indicator on configurations menu now is draw correctly
-
- Posts: 538
- Joined: Jul 09 2016 7:22am
- Location: Bucks, England
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
If you set 1 on any mode in the setup, the unit will put 0 in the other two modes ie as soon as you pick one of the modes the others are disabled.Dirkro wrote: ↑Nov 15 2019 8:46am
Sorry, then I have some questions with the modes:
Should I only enable one mode in the configuration?
If so, what will happen if I will enable two different modes?
If not, How to change from mainscreen? I did not find the method to swich!
Regarding MTB Mode: just to ned to put on the sensitiveness. Nothing to change with the assistance butons right?
Emtb is effectively a max 10th level, if you set enable ( 1) in the setup field for EMtb, you get the number of levels you have set + 1
Emtb is enable to range from 0 Watts to max Watts on the one setting. I've found best to set up by raising /lowering the sensitivity until with maximum pedal input you get maximum motor watts. If you think you are easily getting max watts ( you will have set the max amps in the setup initially amps x volts = watts ) then lower your sensitivity. Its a bit trial and error but doesn't take long. I've found Emtb best when riding on your own and you just want an easy blast. Emtb is also good if you want to limit max power, just keep lowering the sensitivity until you reach max watts with max input from yourself to a level which is comfortable to ride with.
-
- Posts: 538
- Joined: Jul 09 2016 7:22am
- Location: Bucks, England
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Buba, have you tried a 48V battery in comparison with your 52V as regards to cadence levels. My 48V set on standard numbers will peak out at about 90 - 95rpm before its starts to back the motor off. Is the 52Volt worth the extra batteries ( do you get any cadence speed gains ) or can I change the motor numbers in the advance setting to compensate.
Thanks for all your work.
-
- Posts: 115
- Joined: Nov 10 2016 3:29pm
- Location: Oxford, England
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Just flashed v0.5.0-beta.6-bootloader and still have no odometer & trip recording. Speed is ok set at mph.
Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
[/quote]
One of the perks of living where winters get really cold with an overall high air density is that the motor is kept cooler. So that helps me somewhat.
There is no difference between the 250/350/500/750 W versions of the TSDZ2. The only difference in the hardware is what type of motor you might have: 36 or 48 V. The controller is the same for all versions.
[/quote]
How can't there be a difference in 250/350/500 and 750w? That statement contradicts itself. Would be like saying there isn't a difference between a kawasaki ninja with 200ps and a Honda with 50. In terms of raw power output.
Bredband = my guess is Sweden? Since it's bredbånd in Norway. And if it's Sweden, next guess is Northern Sweden. Might aswell be northern Norway, who knows. Since you already have a "cold winter", and here in the west of Norway it's not cold at all (like what, 4 degrees or so).
Cheers
One of the perks of living where winters get really cold with an overall high air density is that the motor is kept cooler. So that helps me somewhat.
There is no difference between the 250/350/500/750 W versions of the TSDZ2. The only difference in the hardware is what type of motor you might have: 36 or 48 V. The controller is the same for all versions.
[/quote]
How can't there be a difference in 250/350/500 and 750w? That statement contradicts itself. Would be like saying there isn't a difference between a kawasaki ninja with 200ps and a Honda with 50. In terms of raw power output.
Bredband = my guess is Sweden? Since it's bredbånd in Norway. And if it's Sweden, next guess is Northern Sweden. Might aswell be northern Norway, who knows. Since you already have a "cold winter", and here in the west of Norway it's not cold at all (like what, 4 degrees or so).
Cheers