TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Electric Motors and Controllers
Tomcys   1 µW

1 µW
Posts: 1
Joined: Jan 19 2020 5:15am
Location: Vilnius

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by Tomcys » Jan 19 2020 7:24am

ezrider1199 wrote:
Oct 17 2019 4:16pm
Hi,

I received a 850c from pswpower and am trying to flash it. I noticed it doesnt fit into my 4-1 cable because it came with a female end so i attempted to put on a new male connector (luckily had a spare). Cut it up and see that the colors are off and the pin positions dont match with what tsdz2 is expecting. So I tried to figure out and match up the pins according to this Image.

Here's where I am now

Image.


Currently I am able to plug an unflashed 850c to my controller and see it start up but I can't get it to flash... is there anything i can verify? I assume that because the 850c can startup that my wiring should be ok. The APT program doesn't show much in the way of errors. Thanks

Tsdz2 display --> 850c
Gnd, Black --> black
Batt V+, Red --> purple
Rx, Yellow --> white
Tx, Green --> green
5v, Blue --> orange
izeman wrote:
Jan 02 2020 5:16am
redwater wrote:
Jan 01 2020 2:50pm
VIN - orange
Rx - white <--- Tx from UART
+26-54V - brown
Tx - green <--- Rx from UART
GND - black

Colours from 850C cable ofcourse.
Thanks. And Vin/Orange is same voltage as Brown wire? And for programming, does it need Orange or Brown wire to be powered? It's hard to see from pictures.
Hello everyone,

I too decided to embark on the trail of installing TSDZ2 on my bicycle as reading through the forum it felt like the right motor for my needs :)
Along the way I also decide to install open source firmware together with 850c display.
I'm currently in the process of trying to flash the firmware on 850C using bootloader and a DIY bootloader box as mentioned in TSDZ2_wiki. However i ran into some problems during the process and would like to ask for help :)

My situation:
I've connected the components for the DIY bootloader box using the guide provided in TSDZ2_wiki:
https://github.com/OpenSource-EBike-fir ... bootloader

After that, I've connected it to my PC and to my 850c display. All seems fine as before installing the firmware I've tried to power on the display it it starts up and shows all the data (current time, voltage (note: it displays 29.8V while being powered from my PC via bootloader box), km/h etc.).
So now I've identified my COM port (COM3), installed the required drivers, and opened the APT burn tools (v1.3) to start the flashing process.
Next up in the APT burn tools window I've selected my COM3 port, opened it, after that I've selected the firmware for 850c display and pushed he update firmware after which the program showed "waiting..." sign.
I've pushed my power button, but the display did not show anything, the flashing did not start and the message in the program kept repeating "waiting...". It seems I can not get the 850c display to flash.
What I've noticed in the program is that while it's waiting on the input from the display the numbers values near "Tx" (at the bottom of APT burn tools window) are constantly changing and increasing, while number near "Rx" stays at "0". Does this mean there is a problem with Rx connection?

I've followed the wire connection diagram in TSDZ2 wiki and the info on how to splice and connect the 5pin extension wire given by user ezrider1199 and later on user izeman in their posts. I've checked multiple times whether all the wires are connected correctly and it seems that everything is as show in the TZDZ2 wiki.

Does anyone else had the issue of display not flashing and has a solution to my situation? :)

P.S I've got my display from PSPOWER and it sayson the back of dispalay "850c tftgdv2.3clb60 xf2.0" and "V5.2 201909210119".

SOLUTION:
In my case i've tried switching Tx and Rx wires and flash again. To my surprise it worked! Yuppi! :)
This might no be the case to others, but I'll post my final wiring by colors that I have below:

My 5pin extension wires are connected as follows:
(I've identified wire labels according to this image:
http://i.imgur.com/3GaLDI1.jpg)

5pin extension cable white wire (I identified it as "RxD") -> USB to UART connection point "RxD"
black wire ("GND") -> DC booster connection point "OUT-" (GND)
green wire ("TxD") -> USB UART connection point "TxD"
red (i guess it's brown"ish") ("P+") -> DC booster connection point "OUT+" (P+)
orange wire -> left it unconnected (just dangling there on the side)

DC booster connection point "IN+" -> USB to UART connection point "5V"
DC booster connection point "IN-" -> USB to UART connection point "GND"

This solution might be specific to my situation therefore I would suggest to try it at own risk and only if all else fails (try rechecking if you identified the connection points correctly and if you connected everything correctly according to TSDZ2 wiki guide).

ezrider1199   10 W

10 W
Posts: 69
Joined: Jul 02 2019 5:42pm

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by ezrider1199 » Jan 19 2020 11:46am

@casainho Just tried the 0.52 motor firmware and 0.63 850c firmware. I became very use to the lcd3 but i'm happy with the 850c now, it has more display features and a easier menu system. I think it needs an AVG speed metric as well.

For the 0.52 motor firmware, i have to report bad news on it. The power delivery is very inconsistent. In 2.5x assist going at 20mph I observed the power delivery varying from 100watt to 600watt at a steady 80 cadence. The increase in resolution helps in the initial response ( :thumb: ) but while cruising i cant get steady power delivery. Im going to downgrade to the last version. My motor has about 1000 miles and the torque sensor was never calibrated. Torque sensor calibration is something i know i have to do, but is it possible to bring back the old settings and toggle between the 2 power delivery programs?

Also, sensor sensitivity seems like an important thing at stop/go and low cadence cases. When cruising you're not going to have much power fluctuation. Is it possible to reduce sensitivity at 60+ cadence? Not everyone who uses the firmware is going to have a perfectly calibrated torque sensor. And the torque sensor becomes uncalibrated eventually right?

ezrider1199   10 W

10 W
Posts: 69
Joined: Jul 02 2019 5:42pm

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by ezrider1199 » Jan 19 2020 12:17pm

Or before i downgrade, is it possible to mitigate an uncalibrated torque sensor in the most current firmware?

edit: just realized calibrating the torque sensor is done in the firmware (not by taking apart the motor). Will try that next...

casainho   10 GW

10 GW
Posts: 4119
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by casainho » Jan 19 2020 1:28pm

ezrider1199 wrote:
Jan 19 2020 12:17pm
Or before i downgrade, is it possible to mitigate an uncalibrated torque sensor in the most current firmware?

edit: just realized calibrating the torque sensor is done in the firmware (not by taking apart the motor). Will try that next...
If you keep torque sensor calibration disabled, then it is the same previous code. But yes, go and calibrate it!!
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of the Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

ezrider1199   10 W

10 W
Posts: 69
Joined: Jul 02 2019 5:42pm

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by ezrider1199 » Jan 19 2020 6:56pm

casainho wrote:
Jan 19 2020 1:28pm
ezrider1199 wrote:
Jan 19 2020 12:17pm
Or before i downgrade, is it possible to mitigate an uncalibrated torque sensor in the most current firmware?

edit: just realized calibrating the torque sensor is done in the firmware (not by taking apart the motor). Will try that next...
If you keep torque sensor calibration disabled, then it is the same previous code. But yes, go and calibrate it!!
But the sampling resolution still remains high even if torque sensor calibration is disabled? I think a universal fix would be to allow people to specify the resolution in the menu. I will try to calibrate the sensor now and will report back.

edit: used a luggage scale to get the measurements (https://docs.google.com/spreadsheets/d/ ... sp=sharing). Still not happy with the power delivery, i did not notice a difference. The power remains low while cruising and sometimes it goes up and jerks the bike a bit, then goes back to low power. My only reference is v0.19 that it was good at cruising speed although less responsive and not too user friendly at low speed & low cadence.

andrewgateway   1 mW

1 mW
Posts: 11
Joined: Sep 05 2019 5:11pm

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by andrewgateway » Jan 21 2020 12:22pm

dameri wrote:
casainho wrote:
Jan 09 2020 6:46am
So, I think you need to focus on the values around the knee of the graph, maybe trying to measure 5 values near around, because that zone will have a big impact on the values calculated. Also I think is important for you try to imagine a soft round curve passing on/near all the points and so you can estimate some of that values.

As we can see, your torque sensor is like mine, good sensitivity only from 0 up to 20 kgs.
dameri wrote:
Jan 09 2020 6:34am
So, I don't know what I've doing wrong. Assist was very poor with torgue sensor enabled. I just followed wiki instructions. I'll try again at weekend.
Here is my values, 25 kg and 46 kg are estimate, others real weights.
Image
Ok, thanks. I do changes at weekend.

Hi did you try any new settings, I am also having very little assistance after calibration.



Sent from my iPad using Tapatalk Pro

casainho   10 GW

10 GW
Posts: 4119
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by casainho » Jan 21 2020 12:49pm

andrewgateway wrote:
Jan 21 2020 12:22pm
dameri wrote:
casainho wrote:
Jan 09 2020 6:46am
So, I think you need to focus on the values around the knee of the graph, maybe trying to measure 5 values near around, because that zone will have a big impact on the values calculated. Also I think is important for you try to imagine a soft round curve passing on/near all the points and so you can estimate some of that values.

As we can see, your torque sensor is like mine, good sensitivity only from 0 up to 20 kgs.
dameri wrote:
Jan 09 2020 6:34am
So, I don't know what I've doing wrong. Assist was very poor with torgue sensor enabled. I just followed wiki instructions. I'll try again at weekend.
Here is my values, 25 kg and 46 kg are estimate, others real weights.
Image
Ok, thanks. I do changes at weekend.
Hi did you try any new settings, I am also having very little assistance after calibration.
Can you put on the numeric fields the human power and share here your average value as also a min value?

And then, put on numeric fields the motor power and compare motor power VS human power and see if it follows the assist level rate / factor multiplier??
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of the Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

leffex   100 W

100 W
Posts: 290
Joined: Apr 08 2012 4:39pm
Location: Sweden

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by leffex » Jan 21 2020 7:13pm

does anyone need an opened display of a normal tong sheng motor. For research or whatever
what other parts may be of interesst as I may get a hold of some that are broken in different ways, cosmetic or others like one button not working etc.
Salestech in an ebike store

dameri   100 W

100 W
Posts: 147
Joined: Sep 20 2018 10:57am

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by dameri » Jan 22 2020 2:04am

andrewgateway wrote:
Jan 21 2020 12:22pm
dameri wrote:
casainho wrote:
Jan 09 2020 6:46am
So, I think you need to focus on the values around the knee of the graph, maybe trying to measure 5 values near around, because that zone will have a big impact on the values calculated. Also I think is important for you try to imagine a soft round curve passing on/near all the points and so you can estimate some of that values.

As we can see, your torque sensor is like mine, good sensitivity only from 0 up to 20 kgs.
dameri wrote:
Jan 09 2020 6:34am
So, I don't know what I've doing wrong. Assist was very poor with torgue sensor enabled. I just followed wiki instructions. I'll try again at weekend.
Here is my values, 25 kg and 46 kg are estimate, others real weights.
Image
Ok, thanks. I do changes at weekend.

Hi did you try any new settings, I am also having very little assistance after calibration.



Sent from my iPad using Tapatalk Pro

casainho wrote:
Jan 13 2020 8:05pm
jeff.page.rides wrote:
Jan 13 2020 6:33pm
Please include the link to the wiki and will V0.51 allow you to set the sensitivity of the torque sensor?
Thanks
https://github.com/OpenSource-EBike-fir ... e-firmware

Once you calibrate the torque sensor, you use the assist level to scale up the motor power compared to pedal human power.

An example: I do comfortable 100 watts of pedal human power with my legs. If doing 100W and want motor to assist 500W, then I set assist level to factor 5.0.


You will need to test how much pedal human power you usually do and then decide for motor max power you want and then select an assist level factor.
According to casainho more factor levels must be used, when torque sensor is calibrated. I drive most of the time without torque sensor calibrated at factor level 1.0. It is enough for me on a flat road or small uphill, and I am happy when I get a little bit of exercise also when I’m driving with TSDZ2. When it gets steeper hills or am already tired I can use bigger levels of assistance.

I tried calibration with many different settings and it didn't t worked well. Nor do I understand the benefits of having to change the level of assistance all the time. As I said before, factor level 1.0 helps me well and I get enough power out of the TSDZ2. When I drive with torque sensor calibrated on factor level 1.0 assist is no good.

casainho   10 GW

10 GW
Posts: 4119
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by casainho » Jan 22 2020 3:56am

dameri wrote:
Jan 22 2020 2:04am
When I drive with torque sensor calibrated on factor level 1.0 assist is no good.
So you don't know how to change the assist factor levels or you are simple being lazy to do it?
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of the Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

obcd   100 W

100 W
Posts: 143
Joined: Jul 16 2019 3:45pm

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by obcd » Jan 22 2020 5:37am

The whole point of the calibration is to allow the assists levels to give motor power proportional to your own power.
So, after calibration, it will likely give less assistance on assist level 1 and that assistance should increase when you increase your assist level.
It will work like that till it reaches it's maximum battery current. At that moment it will give it's maximum assistance for your setup.
Other things that can limit maximum assistance are motor temperature when you have the additional temperature sensor mounted in the motor. This prevents overheating and permanent damage to it.

ezrider1199   10 W

10 W
Posts: 69
Joined: Jul 02 2019 5:42pm

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by ezrider1199 » Jan 22 2020 6:31am

At this point my bike is unrideable . I'm trying to downgrade to get the feel of my lcd3 setup back. I went back to 0.61 before the high resolution change log and the power delivery is still erratic. Will try to go back to 0.19 and 0.5 beta display firmware. I know in the future I should probably take apart my torque sensor but I'm hoping that the firmware will eventually accommodate really crappy torque sensors so I don't have to take it apart

casainho   10 GW

10 GW
Posts: 4119
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by casainho » Jan 22 2020 6:44am

ezrider1199 wrote:
Jan 22 2020 6:31am
I know in the future I should probably take apart my torque sensor but I'm hoping that the firmware will eventually accommodate really crappy torque sensors so I don't have to take it apart
Yes, the latest firmware version accommodate the "really crappy" torque sensors and I don't think there is a possible better solution.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of the Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

dameri   100 W

100 W
Posts: 147
Joined: Sep 20 2018 10:57am

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by dameri » Jan 22 2020 8:44am

casainho wrote:
Jan 22 2020 3:56am
dameri wrote:
Jan 22 2020 2:04am
When I drive with torque sensor calibrated on factor level 1.0 assist is no good.
So you don't know how to change the assist factor levels or you are simple being lazy to do it?
I wouldn't call myself lazy, I commute by bike, I do my daily shopping by the bike and I also ride for fun. I have seven assist levels the lowest factor 1.0 and the highest 4.0. Like I said, most of the time I ride at level 1.0 and then adjusting to a higher level if needed.

Torque sensor calibration just did not work for me, and the program without that calibration works wery well.

Thank you very much for developing open source software :bigthumb:

casainho   10 GW

10 GW
Posts: 4119
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by casainho » Jan 22 2020 8:48am

dameri wrote:
Jan 22 2020 8:44am
Torque sensor calibration just did not work for me, and the program without that calibration works wery well.
You do not give details other than saying "just did not work for me", which is strange since this is the first time someone says this.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of the Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

dameri   100 W

100 W
Posts: 147
Joined: Sep 20 2018 10:57am

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by dameri » Jan 22 2020 9:05am

You advised me to change the values at the knee of curve, I did it and it didn't help. I tried many options. And as I said the program works well without calibration, and I am satisfied.

By the way, maby I’m not the only one.
andrewgateway wrote:
Jan 21 2020 12:22pm


Hi did you try any new settings, I am also having very little assistance after calibration.



Sent from my iPad using Tapatalk Pro

casainho   10 GW

10 GW
Posts: 4119
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by casainho » Jan 22 2020 10:51am

dameri wrote:
Jan 22 2020 9:05am
You advised me to change the values at the knee of curve, I did it and it didn't help. I tried many options. And as I said the program works well without calibration, and I am satisfied.

By the way, maby I’m not the only one.
andrewgateway wrote:
Jan 21 2020 12:22pm
Hi did you try any new settings, I am also having very little assistance after calibration.
I don't understand, if the assistant is low, than the assist level factors need to be increased. Everyone is different, everyone has different physical capacities and so each user may need to adjust the assist level factors.

Anyway, I am ready to release a new version that changed everything about the assistance and where the assist level factor starts at 0.01 and goes to 2.55 max, so, I will try improve the instructions on wiki on how to change the assist level factors and validate looking at the pedal human power value.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of the Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

dameri   100 W

100 W
Posts: 147
Joined: Sep 20 2018 10:57am

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by dameri » Jan 22 2020 11:04am

Ok, new version factor levels sounds interesting.

casainho   10 GW

10 GW
Posts: 4119
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by casainho » Jan 22 2020 1:18pm

New TSDZ2 firmware: motor current control, much more soft and natural motor control!!

On previous firmware versions, the motor was controlled by controlling the battery current and keeping motor current always at a max fixed value, which made sensation of a strong startup. Now, the motor current is controlled instead of battery current and this makes more soft and natural felling of the motor control, mainly at startup / low cadence / low motor speed. This should had been done from the begin of this project!!
To be clear, the firmware now maps the pedal human power to motor current while previously was mapping pedal human power to motor power.

Since on recent versions the torque sensor sensitivity was increased 4 times as also implemented full linearization / full calibration, the current control resolution was increased 4 times, and now controlling the motor current, the system is very responsive and fells very natural!!

Please follow the next steps to adapt assist level factors for you:

1. calibrate the torque sensor

2. ride with assist level 0 (motor will be disabled) for some minutes on a flat road and see on the display what is the average value of pedal human power - my average value is 100 watts

3. as it is advised to not exceed 18 amps of motor current on TSDZ2, let's say I want to have a motor current of 12 amps for my average human power of 100 watts, so, the assist level factor should be 0.12 (divide motor current by human power: 12 / 100 = 0.12)

4. you can choose an assist level factor like 0.05 for assist level 1 and increase next one by multiplying 1.33 (each level have +33% motor current from previous one), resulting in the following values: 0.05, 0.07, 0.09, 0.12, etc.

Changelog:
- changed motor control to be motor current and not battery/motor power
- changed assist level factors to be between 0.01 and 2.55
- current ramp configuration is now for motor current
- min ADC current step is now for motor current

Download here: https://github.com/OpenSource-EBike-fir ... 50C_v0.6.4
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of the Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

redwater   10 mW

10 mW
Posts: 24
Joined: Oct 18 2019 12:36pm

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by redwater » Jan 22 2020 2:20pm

When I set level factor on 0.12, drive motor current will be 12A ? (576W motor vs my 100W on pedal) ? Is 0,01 factor equal 1A on motor ?

casainho   10 GW

10 GW
Posts: 4119
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by casainho » Jan 22 2020 2:37pm

redwater wrote:
Jan 22 2020 2:20pm
When I set level factor on 0.12, drive motor current will be 12A ? (576W motor vs my 100W on pedal) ? Is 0,01 factor equal 1A on motor ?
Yes, that is simple math, 100W * 0.12 = 12.

My 48V motor, 52V battery, my motor current can go up to 25 amps since I remember. The limit on the firmware for motor current is 30 although I think 15 or 20 should be a safe limit.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of the Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

Waynemarlow   1 kW

1 kW
Posts: 320
Joined: Jul 09 2016 7:22am
Location: Bucks, England

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by Waynemarlow » Jan 22 2020 4:25pm

Casainho, for us not so bright on motor technology, what is the difference between battery current and motor current ?

Thanks.

casainho   10 GW

10 GW
Posts: 4119
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by casainho » Jan 22 2020 4:39pm

Waynemarlow wrote:
Jan 22 2020 4:25pm
Casainho, for us not so bright on motor technology, what is the difference between battery current and motor current ?
Motor current is the current that flows on the motor coils and is the one that provides the motor torque.

Battery current is the one that flows on the battery wires.

Motor current = battery current / PWM duty-cycle

Voltage on motor coils = Voltage battery * PWM duty-cycle

For TSDZ2 motor of 48V, at 525 ERPS/4000 rpm speed, the BEMF generated voltage is 48V, 0V at 0 speed and half of the voltage at half of the speed. BEMF oposes to voltage on motor coils, so as the motor speed increase, higher BEMF voltage means less possible motor current flowing, as voltage on coils is motor voltage - BEMF voltage.

Configure on display to show that variables as also motor speed and see how they change in real time.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of the Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

Waynemarlow   1 kW

1 kW
Posts: 320
Joined: Jul 09 2016 7:22am
Location: Bucks, England

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by Waynemarlow » Jan 23 2020 11:03am

Ok lots of terms in there in which I need to do some more reading. I found a couple of good fundamental motor learning papers last night and if I anything good I'll post them here.

On this website is also both a primer and more detailed
viewtopic.php?f=30&t=240

Thanks.

thineight   100 W

100 W
Posts: 228
Joined: Oct 05 2018 3:53am

Re: TSDZ2 mid drive and 850C and SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by thineight » Jan 23 2020 12:16pm

Casainho, which motor controller firmware needs to be used with this display firmware?
I'm a bit lost and I do not find the latest motor firmware source code.. other than v.19 and v.20beta1(Buba?).
Thanks
MTB KTM Ultra 29" - City bike DAYTONA 28"

Post Reply