TongSheng TSDZ2B + VLCD5 unmodified - four magnets for speed sensoring not possible

hotsquirrel

100 µW
Joined
Feb 15, 2024
Messages
7
Location
Wald-Michelbach Deutschland
I have upgraded my good old Stephens Souvereign trekking bike with a 500W 48V TongSheng TSDZ2B and VLCD-5 Display with 8-pin connector. The electric drive and the display are still unmodified. The drive is operated in conformity to the European legal restrictions, limited speed = 25 km/h. – As long as I am using only one magnet at the back wheel, everything is OK. But...
When I am biking steep hills using maximum motor support at slow speed, the integration time of the drive is too short. This will result in an impulsive motor support every time, when the magnet passes the sensor. And before the revolution of the wheel is complete, the motor support will decrease. This is no continuously biking and it is disturbing me.

In order to avoid such a behavior of the drive, I have mounted four magnets at the spokes of the back wheel and then - of course - I have set up the VLCD-5 to four magnets. The result: The speed shows up correctly in the display. But the motor support is now cut off at a bit more than 6 km/h.

If I multiply the maximum support speed by four, I will get the original limit of 25 km/h, which is due to legal restrictions in EU. I am sure, that this result is not eventually but a logic error in the firmware. It seems, the controller gets the info, that the limit of 25 km/h is erroneously detected at about 6 km/h because of the 4 impulses per revolution. The firmware of my VLCD-5 is 5.1

My questions:
Did anybody here has experienced something similar? And could the problem be solved?
If somebody would have the original firmware of the VLCD-5, how could I flash this to the VLCD-5?
Does somebody have the same components as I and has no problems with several magnets? Then which firmware do you have in the VLCD-5?
 
I know that my bikes with the TSDZ2 / TSDZ2B mid-drive do have a slight jitter / momentary hunt at very slow speeds, it only happens as I negotiate a tight turn in a local supermarket, cannot be bother getting off the bike. Both were on the standard firmware and have now the TSDZ2(B) OSF firmware, but one has a VLCD5 display and the other has a Enerpower DZ41 Display. My thought is that this is in the controller firmware and not in the display. The only displays I know with firmware programing options are the 860C, 850C and SW102 display so the these displays for the Bafang mid-drives can be reprogrammed to suit the TSDZ2(B) drives.
 
I did not know that the CC parameter goes from 1 to 12 for pulses per revolution on the speed sensor. Have you tried raising the SD value just to see what happens?

In my early days with the TSDZ2, I did not know the recommended magnet-to-sensor spacing on the TSDZ2 speed sensor should be around 1cm. I set it too close and had intermittent operation. Sometimes it would
read 2-4X higher on speed and I only have one magnet. Maybe you can experiment with the magnet spacing,
 
@docw009 Thank you for your reply. I am sorry not to know the meaning of the abbreviation "SD". AFAIK and following the manual of the VLCD5, there is only one position to set the value for the count of magnets. And there is no choice to overcome the resulting speed limitation to around 6 km/h by setting max speed to 4 times 25 km/h to overcome the erroneous limitation, I have to deal with.

I confirm, having already tried to vary the distance between magnets and sensor and having checked the results by using an oscilloscope. The shape of the pulses are stable and the speed reading on the display is also stable.

@dgc Yes, I cannot be sure, whether the problem is located in the VLCD5 or in the motor controller. Your idea has influenced me, to request this issue at TongSheng by mail directly. If I get helpful answer from them, I will report here.

BTW: As I am satisfied with the performance of the original TongSheng Firmware / Software, I have decided, not to change to OSF and all the sophisticated set up parameters there.
But if I someone could affirm, that my problem using four magnets could be solved by using the OSF, I perhaps would give it a try.
 
I have tried tried Tongsheng for an answer to which TSDZ2(B) drives have a V1 or V2 controller. Might as well bang my head on a brick wall, gone on since last year this was the last message I got. They keep asking what make of bike I have when it, it's a TSDZ2(B) drive which can be fitted to any bike. Good luck.

Hello
Sorry for my late reply.
Could you tell me your e-bike's brand?
In addition, if you can, you can find a professional to help you take apart the motor to see the controller's parameters.
You only tell me the motor type, I can't help you to determine it, because some controllers are customized.
Thank you so much~
Have a nice day~

Best regards
Tongsheng


Address: Tongda Road 1875-8,Suzhou,215124,Jiangsu,China
Website: Suzhou Tongsheng Electric Appliances Co., Ltd. Motor Meter Controller

Original:

Hi there
Is there anyway I can check which controller is fitted to my TSDZ2B mid-drive as I need to order a replacement and have heard that there is two versions.
Best regards

Regarding the OSF
TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102. look at the videos
 
Installing the OSF firmware is when I discovered that the two firmwares must read the speed sensor differently. When I first tried the moor using throttle under OSF, I noticed the speedometer was blank, I reloaded the factory firmware and the speed was back. Then I fiddled with magnet spacing and saw the OEM firmware reading 2x-4X. Went back to OSF and did more space adjustment til the speedometer worked.

The SD parameter I mentioned is the display's speed limiter setting. Yours is locked out? By the way, the pic is from an Enerpower manual, and I understand those guys sell TSDZ2's with V2 controllers that cannot be flashed with OSF.,

Untitled-1.jpg

The most recent TSDZ2B I bought from pswpower last month has the V1 controller, as did the spare controller I bought from them last year.
 
Several years ago, the primary developer of the original OSF, casainho, looked at porting the OSF to the V2 controller, I did not finish reading the the thread to find out why they stopped, but they did start, and they posted a picture of the V2 circuit board, Casainho said to look by the yellow, blue, and green phase wires. The V2 board has three resistors marked R003.
V2 controller.jpg
I looked at a pic of a V1 board. No R003 resistors. There you go?
V1 cpntroller.jpg
 
That's interesting, what's that 3mOhm resistors along with a different processing chip, I have to look at the controller I pulled out of a drive I brought from Germany which would not program and have a look.
 
Correct me if I'm wrong, another way to tell as I recall, if the controller can be flashed or not, is the shape of the CPU above the yellow phase wire.

rectangular= not flashable
square= flashable

Here's a better pic of a square CPU when I had my TSDZ2 motor apart, to swap everything over to a new casing.

IMG_3324.jpeg
 
The V2 controller firmware is discussed in this thread. They got it to work, and you can go to the links in the thread to find out how to do your V2, but it hasn't been refined. The programming environment looks pretty daunting to me, Like any other project, everyone has things to do and the main code/hardware experts moved on.


By the way, having read thru the thread, it would seem that VLDC5's that have locked speed limits are using a V2 controller, which might ne of interest to the hotsquirrel.
 
I am riding a bike with a TSDZ2(B) 48v which I have reprogrammed to modify the pedal assist and torque assist modes to make better use of the signal from the torque sensor rather than pulling it out to adjust.
 
Back
Top