TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Electric Motors and Controllers
User avatar
jbalat   10 kW

10 kW
Posts: 588
Joined: Nov 10 2012 11:50pm
Location: Melbourne, Australia

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by jbalat » May 02 2020 3:36am

Yeh I just did the same and I have done some programming however there are lots of changes to variables too which could also be important..


eg..
was ui8_tx_buffer[5] = 58 now ui8_tx_buffer[5] = 0;
was ui8_tx_buffer[6] = 0 now ui8_tx_buffer[6] = 1
what is this all about, can I just ignore it ?

I could just do the most obvious stuff and trial and error but it would be just plain luck if it worked !! :confused:
Please subscribe to my Youtube home page for Quadcopters, FPV and Bike Rides http://www.youtube.com/jbalatutube
My build log here http://endless-sphere.com/forums/viewto ... =6&t=55352
For some cool ebike talk join us on The Best ebike https://www.facebook.com/groups/193581737807033/
Tech talk TSDZ2 Opensource firmware https://endless-sphere.com/forums/viewt ... &start=150
Opensource TSDZ2 Wiki https://github.com/OpenSource-EBike-fir ... _wiki/wiki

Elinx   100 W

100 W
Posts: 262
Joined: Aug 09 2019 6:58am

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by Elinx » May 02 2020 5:32pm

jbalat wrote:
May 02 2020 3:36am
Yeh I just did the same and I have done some programming however there are lots of changes to variables too which could also be important.. ....
I think one of the reasons the changes are so huge is that the 850C code is build based on v.0.19, like v.0.20 is too
So v.0.20 and the 850C code are parallel improvements of v.0.19 and not a follow up.
It is not difficult to read and understand small parts of the code, but to see the importance and connections between variables and files is difficult to understand without programming experience.

User avatar
jbalat   10 kW

10 kW
Posts: 588
Joined: Nov 10 2012 11:50pm
Location: Melbourne, Australia

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by jbalat » May 02 2020 8:55pm

Casainho has been updating the 850c code so it's pretty much in par with the 20b1 code in terms of functionality.

Not sure if it would just be easier to get the 850c code to talk with the ktlcd3 ?
Please subscribe to my Youtube home page for Quadcopters, FPV and Bike Rides http://www.youtube.com/jbalatutube
My build log here http://endless-sphere.com/forums/viewto ... =6&t=55352
For some cool ebike talk join us on The Best ebike https://www.facebook.com/groups/193581737807033/
Tech talk TSDZ2 Opensource firmware https://endless-sphere.com/forums/viewt ... &start=150
Opensource TSDZ2 Wiki https://github.com/OpenSource-EBike-fir ... _wiki/wiki

Elinx   100 W

100 W
Posts: 262
Joined: Aug 09 2019 6:58am

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by Elinx » May 03 2020 5:16am

jbalat wrote:
May 02 2020 8:55pm
Casainho has been updating the 850c code so it's pretty much in par with the 20b1 code in terms of functionality.

Not sure if it would just be easier to get the 850c code to talk with the ktlcd3 ?
For what I know the development for KTlcd3 and 850C was on par till v.0.19 stable.
After that Buba has updated the FW to v.020b1 for KTlcd3 and Casainho to v.0.50 for 850C.
Casainho never updated to v.020b1 for 850C.
Buba has done a lot of optimizations due to the limited memory space of the KTlcd3.
Casainho has added a lot of functionality too, based on his own ideas.
For 850C memory space is no issue, so I think it wouldn't be easy to do, if even possible.
If only the improved higher cadence option could be added to v.0.20b1. I think that would be enough.

btslo   10 W

10 W
Posts: 70
Joined: Apr 17 2019 8:55am

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by btslo » May 05 2020 4:08am

I flashed the mbrusa fix, but walk assist doesn't seem to be working. I have it enabled in settings and get the walk icon but it doesn't move. Or is there a bug somewhere?

Also, what assist mode are you using? Torque or power? I'm setting up the bike for my GF, I enabled torque assist at first but I believe it requires more input vs power mode. (but didn't adjust multipliers too much, probably why it was giving less assistance)

mbrusa   100 W

100 W
Posts: 132
Joined: Dec 11 2019 12:13am

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by mbrusa » May 05 2020 2:12pm

With the first version released, walk assist was not working, then I had made updates.
Try this which is the latest version
TSDZ2-v0.20.1-update_fix_overrun-LCD3_version.zip
(45.59 KiB) Downloaded 57 times
.
Flexible OpenSource firmware for TongSheng TSDZ2 motor and VLCD5 VLCD6 XH18 displays
https://github.com/emmebrusa/TSDZ2-Smart-EBike-1

btslo   10 W

10 W
Posts: 70
Joined: Apr 17 2019 8:55am

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by btslo » May 06 2020 12:32am

Thanks, will try. Thought I flashed the latest version. :mrgreen:

jeff.page.rides   100 W

100 W
Posts: 145
Joined: Aug 13 2019 10:16am

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by jeff.page.rides » May 06 2020 10:01am

mbrusa wrote:
May 05 2020 2:12pm
With the first version released, walk assist was not working, then I had made updates.
Try this which is the latest versionTSDZ2-v0.20.1-update_fix_overrun-LCD3_version.zip.
mbrusa,
Is this the same version you improved for me and I'm using?
I'm very happy with it!

flo   1 µW

1 µW
Posts: 4
Joined: Oct 18 2019 2:49am

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by flo » May 12 2020 9:29am

Hello ,
Sorry I quite new here.
I had a TSDZ2 36V motor with opensource firmware made. Yesterday I was very happy to see It's working after I setup following your features and configurations for version 0.18.X. I obtain 550 Watt power and for my hill was very good , but when I stop suddenly my display KT LCD3 became like in this photo Imageand stop working, after that the display start blinking . First of all I push the Power button to stop, but didn't make it, so I disconnected from the battery and I started again with the Power button, but when I push the button appear on the display again like in the photo and remains like that ,I checked the battery the wires seems to be good.
Please help me, I do not know what to do anymore !!
Thank you
Attachments
2020-05-11_16-18-14.png
2020-05-11_16-18-14.png (204.75 KiB) Viewed 949 times

casainho   10 GW

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

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by casainho » May 12 2020 9:34am

flo wrote:
May 12 2020 9:29am
Hello ,
Sorry I quite new here.
I had a TSDZ2 36V motor with opensource firmware made. Yesterday I was very happy to see It's working after I setup following your features and configurations for version 0.18.X. I obtain 550 Watt power and for my hill was very good , but when I stop suddenly my display KT LCD3 became like in this photo Imageand stop working, after that the display start blinking . First of all I push the Power button to stop, but didn't make it, so I disconnected from the battery and I started again with the Power button, but when I push the button appear on the display again like in the photo and remains like that ,I checked the battery the wires seems to be good.
Please help me, I do not know what to do anymore !!
Thank you
It is probably an issue with wires from the motor to the display. The display like that means there are no communication, so, probably the wires are damaged or the motor controller is not working.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of OpenSource knowledge and technology for ebikes: Wireless Ebike boar ANT+ and Bluetooth, 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 to help my developments: paypal.me/jorgecasa

James Broadhurst   10 W

10 W
Posts: 99
Joined: Nov 10 2016 3:29pm
Location: Oxford, England

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by James Broadhurst » May 13 2020 3:42am

flo wrote:
May 12 2020 9:29am
Please help me, I do not know what to do anymore !!
Thank you
Hi
If you have brake sensors unplug them and try again. A faulty sensor will cause that screen on power up. And if you’ve fitted a throttle take that off as well. Otherwise follow casainho’s advice.

flo   1 µW

1 µW
Posts: 4
Joined: Oct 18 2019 2:49am

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by flo » May 14 2020 9:54am

Thanks guys for your advice.

Can anybody say me there is a difference between kt lcd3 and kt lcd8 regarding to replace the kt lcd3 with a kt lcd8 ?

So something didn't work well and I thought to change the controller and the display with a Kt lcd 8.
So is the same procedure to flash the Tsdz2 with Kt lcd8 ?
Is working ?

Best regards
Flo

jeff.page.rides   100 W

100 W
Posts: 145
Joined: Aug 13 2019 10:16am

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by jeff.page.rides » May 14 2020 3:36pm

flo wrote:
May 14 2020 9:54am
Thanks guys for your advice.

Can anybody say me there is a difference between kt lcd3 and kt lcd8 regarding to replace the kt lcd3 with a kt lcd8 ?

So something didn't work well and I thought to change the controller and the display with a Kt lcd 8.
So is the same procedure to flash the Tsdz2 with Kt lcd8 ?
Is working ?

Best regards
Flo
This is the first time I've even heard of the LCD8.
Does anyone know if it's as good in direct sunlight as the LCD3?
Does it have more memory so it can handle the newest firmware updates?
Can it be flashed without taking apart?
If all the answers are yes then it could be worth the time to get it to work with the current firmware!
If not just upgrade to the 860C.

User avatar
jbalat   10 kW

10 kW
Posts: 588
Joined: Nov 10 2012 11:50pm
Location: Melbourne, Australia

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by jbalat » May 24 2020 6:50pm

without a coder I'm afraid we have no choice but to go to a supported display

I dont mind the sw102 but not sure whether it can display the same information as the kt-lcd3 and whether the code is stable to use ?

http://www.pswpower.com/ven.php?cargo.2018-cu-aacd
Please subscribe to my Youtube home page for Quadcopters, FPV and Bike Rides http://www.youtube.com/jbalatutube
My build log here http://endless-sphere.com/forums/viewto ... =6&t=55352
For some cool ebike talk join us on The Best ebike https://www.facebook.com/groups/193581737807033/
Tech talk TSDZ2 Opensource firmware https://endless-sphere.com/forums/viewt ... &start=150
Opensource TSDZ2 Wiki https://github.com/OpenSource-EBike-fir ... _wiki/wiki

HughF   100 W

100 W
Posts: 147
Joined: Jan 23 2020 6:13pm

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by HughF » May 25 2020 4:43am

jbalat wrote:
May 24 2020 6:50pm
without a coder I'm afraid we have no choice but to go to a supported display

I dont mind the sw102 but not sure whether it can display the same information as the kt-lcd3 and whether the code is stable to use ?

http://www.pswpower.com/ven.php?cargo.2018-cu-aacd
I find the sw102 stable. It is a nice display.
Genesis iOiD Alfine8 Hard tail MTB, 36v TSDZ2, 13s battery, SW102 display
Raleigh reynolds road frame from the 80's, TSDZ2, SW102 display, 1x10 drivetrain, gravel tyres

winwar84   10 µW

10 µW
Posts: 5
Joined: Sep 14 2019 4:39am

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by winwar84 » Jun 02 2020 4:13am

hello, with firmware 0.20.0 I soldered the temperature sensor to the controller. can I eliminate it and use the same cables to put the accelerator? thanks

winwar84   10 µW

10 µW
Posts: 5
Joined: Sep 14 2019 4:39am

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by winwar84 » Jun 02 2020 4:14am

hello, with firmware 0.20.0 I soldered the temperature sensor to the controller. can I eliminate it and use the same cables to put the accelerator? thanks

User avatar
jbalat   10 kW

10 kW
Posts: 588
Joined: Nov 10 2012 11:50pm
Location: Melbourne, Australia

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by jbalat » Jun 02 2020 4:47am

Of course it's the same signal wire but if you want a throttle you shpuld have bought a bafang, the beauty of this motor is it's torque sensor, enjoy ;)

If you hold the down button while moving then cruise control will kick in and give you a rest, this should be good enough. I think the temperature sensor is worth keeping
Please subscribe to my Youtube home page for Quadcopters, FPV and Bike Rides http://www.youtube.com/jbalatutube
My build log here http://endless-sphere.com/forums/viewto ... =6&t=55352
For some cool ebike talk join us on The Best ebike https://www.facebook.com/groups/193581737807033/
Tech talk TSDZ2 Opensource firmware https://endless-sphere.com/forums/viewt ... &start=150
Opensource TSDZ2 Wiki https://github.com/OpenSource-EBike-fir ... _wiki/wiki

winwar84   10 µW

10 µW
Posts: 5
Joined: Sep 14 2019 4:39am

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by winwar84 » Jun 02 2020 10:36am

http://www.jobike.it/forum/topic.asp?TOPIC_ID=78456

the sensor is managed by the bluetooth card

zappan   10 W

10 W
Posts: 71
Joined: Sep 27 2018 3:00am
Location: Sicilia

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by zappan » Jun 02 2020 2:59pm

"by winwar84 » Jun 02 2020 5:36pm

http://www.jobike.it/forum/topic.asp?TOPIC_ID=78456

the sensor is managed by the bluetooth card"

Hello, it is possible but you have to install the TSDZ2-ESP32 card of the Mspider65 project, the discussion can also be found here:
viewtopic.php?f=30&t=103318
Project on gthub:
https://github.com/TSDZ2-ESP32/TSDZ2-ESP32-Wiki/wiki

mittkonto   100 mW

100 mW
Posts: 35
Joined: Mar 02 2019 2:31am

Re: TSDZ2 open source firmware only for KT-LCD3 (v0.19.0 / v.0.20.0beta1)

Post by mittkonto » Jun 29 2020 6:12am

winwar84 wrote:
Jun 02 2020 4:14am
hello, with firmware 0.20.0 I soldered the temperature sensor to the controller. can I eliminate it and use the same cables to put the accelerator? thanks
Or, you could utilize the 'cruise'-function and keep things kosher as it should be. *cough* :wink:
By the wholesome Code Gods of Muchgivings!!? A tidy TSDZ2 spliced cable and a nice chunk of HIGO-Z812-B with a tad of temperature mods sprinkled on top, you say?

Post Reply