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

I want to flash the new version 0.13.1, but still have my two questions :?

1. I flashed the motor with 3 cables connected : +5V, GND, SWIM and battery disconnected following these instructions : https://github.com/hurzhurz/tsdz2/blob/master/programming.md
I did not connect the RST cable marked as otionnal, it has worked, is it OK ? What is the use of the RST plug in the middle ?
Also i di only flash the program TAB not the DATA or Option TAB, do i need to flash all tabs ? It seems to work like this.

2. If i wan't to upgrade to 0.13.1 what is the exact procedure ? Do i need to reset something ? Or simply flash program tab over current firmware for the LCD3 and motor ?
 
jbalat said:
casainho said:
On the trails, I want to quick configure power and not amps. I want to have motor assisting me at a constant energy while I give the rest with my legs.
Also, maybe I would like to have torque sensor only as input instead of human power, because cadence can change a lot.

Hard to understand what this setting is meant to do. If this allows you to quickly override the power using the off & plus keys then yes this is the most valuable feature to me. Please don’t remove it. Only I didn’t know it existed in the newer versions because the wiki wasn’t very descriptive (or I didn’t read it properly :shock:
Looking at the code I don't think this setting works that way. It basically acts as just another assist level and at the same time it also limits the power. I don't see why this would give constant power? The problem with all those features is that without correct documentation they're basically unusable for others and thus hard to maintain. I won't remove it but I want a clear method of completely turning it off and we need to clarify how it works and it's use case.

Btw very excited you are going back to assist multiplier instead of power. I remember Casainho had level 5 set to 9x woohoo!!
Whether we're going back to assist multipliers isn't decided yet. Please vote and leave your input here: https://github.com/OpenSource-EBike-firmware/TSDZ2-Smart-EBike/issues/3
 
I was testing a new version of the firmware with a fix for the power limitations to be released very soon. The firmware worked great but all of a sudden while driving and when changing assist levels my display was frozen and wasn't updated anymore but the motor was still working. I turned the display off and after turning it on again all symbols are shown and it won't work again, whatever I do :(
I've flashed older working versions, cleared the data memory, option bytes. Could be just a cable issue this time? I think my cable should be reliable because I soldered it with care...

I've noticed that both the motor controller and the display are still initializing their data memory properly when I clear the data memory, this is an indication that the firmware is running on both.

Hopefully I can fix this soon, will let you guys know.

We should definitely add a message to the display that communication with the motor has failed. This has happened to me previously and now one doesn't know which part of the system is broken. Last time it was an issue with the motor controller but at first I thought that the display didn't work. But maybe I'm wrong and is the all symbols are shown on display a clear indication of a working display (could be).

Is there a way to test the motor without using the display (no communication)?

Edit: I found the issue, it's definitely the cable. The motor mount has moved crushing the display cable in the process :shock:
The cable ended up between the motor and frame. Luckily the cable was too long and I can remove the damaged part.
Maybe this also explains why my bike made a clicking noise lately as I've reported elsewhere. I tried all suggestions there to fix that issue but no luck (thanks jbalat!!)

Is anyone else able and want to test some beta firmware? I can prepare it if you want. The firmware has almost no limitations (feature toggles are off but can be switched on easily) and has high power. As said above it was very nice until my display was frozen...
 
Now that I can switch back to my older version reliably, I'm happy to test out any new stuff. Send me a link and I can install it tonight and ride in to work tomorrow..
 
Installed front light yesterday (only 2W) and this morning I noticed strange behaviour with it.
Light works fine alone and motor wattage info jumps between 0-10w. While pedalling and with assistance light is turned on it works just fine but if I stop pedalling assistance will not kick in anymore until I turn off the light. Couldn't find maximum current for the 6v line but I assume 2W should ok?

Somehow seems that assistance initial start expects zero consumption to kick in but light consumens some and it fails?
 
jbalat said:
Now that I can switch back to my older version reliably, I'm happy to test out any new stuff. Send me a link and I can install it tonight and ride in to work tomorrow..
Thanks jbalat! Unfortunately I'm not able to make it because of our timezone differences, your tonight are my working hours :p
I will prepare a beta version for you to test, probably tonight.
 
sulx said:
Installed front light yesterday (only 2W) and this morning I noticed strange behaviour with it.
Light works fine alone and motor wattage info jumps between 0-10w. While pedalling and with assistance light is turned on it works just fine but if I stop pedalling assistance will not kick in anymore until I turn off the light. Couldn't find maximum current for the 6v line but I assume 2W should ok?

Somehow seems that assistance initial start expects zero consumption to kick in but light consumens some and it fails?
I have the same experience. The DC-DC converter of the TSDZ2 delivers 3W (6V). This is the absolute maximum rating and will probably overheat the chip already. See datasheet here: http://www.xlsemi.com/datasheet/XL7005A datasheet-English.pdf

That's why I'm adding a solid state relay and a external DC-DC converter which delivers more power. I will document the process and add it to the wiki.
 
EndlessCadence said:
That's why I'm adding a solid state relay and a external DC-DC converter which delivers more power. I will document the process and add it to the wiki.
Would be a good idea to add an entry to the FAQ about the lights. I think we do not get information from the TSDZ2 seller about the options for lights and what TSDZ2 motor controller can or can not drive.
 
I made my first ride to work with 0.12 firmware today. Overall great upgrade from original firmware, thank you very much for this amazing project.

But one question, Used Wh where about 56 on the screen at the end of the ride and when i recharged my battery i charged about 79Wh into it.
I charged it to full before the ride, and after with the same charger. So what could explain this huge difference, because this makes the Wh usage reading useless to evaluate battery usage ?

PS tomorow i'm gonna place a trusted watt-meter between the battery and the motor to check.


Thank you,
 
nbdriver said:
because this makes the Wh usage reading useless to evaluate battery usage ?
No it does not. Simple full discharge your battery and take note on the counted Wh value on LCD3, then enter that value on LCD3 configuration and you will see that SOC works very well!!
 
Thank you for your quick answer casainho ! Your are totaly right, i shouldn't have written useless :)
And yes that is was what i was going to do for the future as a workaround, but it seems that the info provided by the integrated meter is a bit off regarding the real battery capacity. Did you expereince the same thing ?

Basicly we must enter a capacity that is far beyond the real capacity of the battery. That is not a real problem, but it was just a question :)
 
nbdriver said:
Thank you for your quick answer casainho ! Your are totaly right, i shouldn't have written useless :)
And yes that is was what i was going to do for the future as a workaround, but it seems that the info provided by the integrated meter is a bit off regarding the real battery capacity. Did you expereince the same thing ?

Basicly we must enter a capacity that is far beyond the real capacity of the battery. That is not a real problem, but it was just a question :)
Would be good if you could verify and provide numbers. Then we can open an issue for future work.

I know that there is a time dependency on the calculation, as it is watts/hour. If the time is incorrect, then calcs will fail. And the time counting depends on the other code running for all the other tasks........
 
I will for sure, tomorow i will take my watt-meter between my battery and motor and will post the exact numbers.
I'm using Lipo batteries and i charge them on a RC charger without bms, so numbers will be pretty accurate. In the charging process there is a little loss with the balancing, but the watt-meter should give us a accurate result.
 
Im using this lamp on my bike, directly connected to the 6V-Output of the motor:
https://www.amazon.de/dp/B07CVWV7NB/ref=cm_sw_em_r_mt_dp_U_mRZUBbCZBCP68

Works as expected, but never measured the real consumption..
 
EndlessCadence said:
Casainho, can you disable the previous repositories? It can become confusing now there are more repositories...
Done and put a note and a link to new repo.
 
jbalat said:
Now that I can switch back to my older version reliably, I'm happy to test out any new stuff. Send me a link and I can install it tonight and ride in to work tomorrow..

JBALAT I am Happy to know you can go back to your older version. If that version is good for you, you can keep it. Good.

I am worried to know that, for you, the last version is worst then your previous version.

Casainho has being doing a good work. He was the man that first started this new firmware.

I think the good version for you, until now, is version 0.2. Right ?

I only found Version 0.12, or later in github. Did I see well?

Now, after summer holidays, and after my wife have used the TSDZ2 during 3 months, I am planing to install
the new firmware, with the temperature sensor.

But I truly don´t know what to do because of this versions issue.

Thanks

Azur
 
Casainho,

My motor is 36V version with a 6 PIN LCD plug.

As far as i understood I can´t connect the throttle. Right?

Can I connect the temperature sensor directly to the motor controller?

Thanks

Azur
 
AZUR said:
jbalat said:
Now that I can switch back to my older version reliably, I'm happy to test out any new stuff. Send me a link and I can install it tonight and ride in to work tomorrow..

JBALAT I am Happy to know you can go back to your older version. If that version is good for you, you can keep it. Good.

I am worried to know that, for you, the last version is worst then your previous version.

Casainho has being doing a good work. He was the man that first started this new firmware.

I think the good version for you, until now, is version 0.2. Right ?

I only found Version 0.12, or later in github. Did I see well?

Now, after summer holidays, and after my wife have used the TSDZ2 during 3 months, I am planing to install
the new firmware, with the temperature sensor.

But I truly don´t know what to do because of this versions issue.

Thanks

Azur
The latest release is version 0.13.1, you can find all releases through the link in my signature below. This version works well except that it has slightly limited power but I will release a new version very soon. If you want a temperature sensor you should use this version otherwise it simply isn't supported. I don't advice you to go with the very old versions.
 
AZUR said:
Casainho,

My motor is 36V version with a 6 PIN LCD plug.

As far as i understood I can´t connect the throttle. Right?

Can I connect the temperature sensor directly to the motor controller?
Right. When you found the previous shared pictures of the motor controller pins for connecting throttle, share the links and I will add to the wiki, for this case of controller with 6 pin/wires. Good if you could also provide pictures of your installation...
 
EndlessCadence said:
AZUR said:
I only found Version 0.12, or later in github. Did I see well?
The latest release is version 0.13.1, you can find all releases through the link in my signature below.
I updated the links on the wiki for the downloads of the hex files.
 
EndlessCadence said:
AZUR said:
jbalat said:
Now that I can switch back to my older version reliably, I'm happy to test out any new stuff. Send me a link and I can install it tonight and ride in to work tomorrow..

JBALAT I am Happy to know you can go back to your older version. If that version is good for you, you can keep it. Good.

I am worried to know that, for you, the last version is worst then your previous version.

Casainho has being doing a good work. He was the man that first started this new firmware.

I think the good version for you, until now, is version 0.2. Right ?

I only found Version 0.12, or later in github. Did I see well?

Now, after summer holidays, and after my wife have used the TSDZ2 during 3 months, I am planing to install
the new firmware, with the temperature sensor.

But I truly don´t know what to do because of this versions issue.

Thanks

Azur
The latest release is version 0.13.1, you can find all releases through the link in my signature below. This version works well except that it has slightly limited power but I will release a new version very soon. If you want a temperature sensor you should use this version otherwise it simply isn't supported. I don't advice you to go with the very old versions.

Thanks EndlessCadence,

The oldest release is V0.6. right?

With the information I have now I will wait until Jbalat validate the version with the temperature sensor.
Jbalat also have a 36V motor and I will also wait jbalat´s specific 36V motor/battery configurations of the firmware.

Thanks
Azur
 
casainho said:
AZUR said:
Casainho,

My motor is 36V version with a 6 PIN LCD plug.

As far as i understood I can´t connect the throttle. Right?

Can I connect the temperature sensor directly to the motor controller?
Right. When you found the previous shared pictures of the motor controller pins for connecting throttle, share the links and I will add to the wiki, for this case of controller with 6 pin/wires. Good if you could also provide pictures of your installation...

Thanks casainho,

I will give you the pictures of the installation as soon I do it.

1 - Can you give me the link where you bought the temperature sensor?
2 - When do you plan to have walk Assist?
As you saw in GR22 sometimes we need, walk assist, in the mountains.

Regards,

Azur
 
AZUR said:
1 - Can you give me the link where you bought the temperature sensor?
2 - When do you plan to have walk Assist?
As you saw in GR22 sometimes we need, walk assist, in the mountains.
1: https://www.ebay.com/itm/LM35DZ-Sensore-di-Temperatura-TO-92-Centigrade-Temperature-Sensors/141254870285?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649

2: I do not have a plan to implement it, although I need it. Maybe when EndlessCadence solve the bug on current firmware version, we can think to implement this feature.

The other feature would be to implement calculation of pedal human power to show to user as also to use for calculation of assist level.

I think that are the most important features to develop for now.
 
I have throttless version and bought temp sensor but couldn't really figure out which ones are correct wires to put it on. Or was it so that throttless version does not have wires ready? Tried to search through forums and wiki...but maybe I have missed something.
 
Back
Top