Search found 1475 matches

by casainho
Apr 24, 2018 1:02 am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 52
Views: 826

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

New findings: 1. the original firmware runs with throttle if you connect it 2. Original firmware: PWM scheme seems to be the same as on Kunteng: PWM center aligned and SVM. The motor runs much silent with original firmware than with the block commutation I implemented. 3. Although uses the STM8S105C...
by casainho
Apr 23, 2018 3:14 pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 52
Views: 826

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

One of the biggest disappointments of the standard motor is not being able to handle 14S batteries ( the difference between 13S and 14S is night and day on my Bafung which just seems to put the motor into a real sweet spot of power to efficency ) , I would accept a lower current max in lieu quite h...
by casainho
Apr 23, 2018 11:40 am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2160
Views: 65331

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

I've just opened a pull request at github... (I never worked with pull requests before :shock: ) Accept the pull request. Must say I didn't looked at it much, but I did that some days ago. I must say I am not very used to them but my experience is very positive!! It is very clear to see the changes...
by casainho
Apr 23, 2018 11:35 am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2160
Views: 65331

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

"Exotic" features can be included of course, but they have to be well documented as well, to avoid frustrating the user with unexpected behaviour. ...this has definitely been an issue for me, often I've tried the latest version of a branch and found that features that were previously working well a...
by casainho
Apr 23, 2018 11:05 am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2160
Views: 65331

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

The most common setup will be a geared hubmotor with freewheel in PAS ("torque-simulation") mode, I guess. Hopefully the torquesensor will become more popular, if it's easy to install and to configure. "Exotic" features can be included of course, but they have to be well documented as well, to avoi...
by casainho
Apr 23, 2018 9:46 am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2160
Views: 65331

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Guys, can I make a small suggestion here? It's clear that you both have differing ideas about the way some things should be done - that's completely normal with intelligent minds of course. Would it not be best to develop this as two separate 'master' branches (maybe stancecoke master and casainho ...
by casainho
Apr 23, 2018 8:48 am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 52
Views: 826

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

Measuring battery current STM8 pin PB5/AIN5 measures the analog signal for the battery current and for each 1 amp, the signal increases 0.275 volts. The max current measured is: 5V / 0.275V = 18.18 amps. Assuming the signal can be linear and I did my measurements correct, maybe the measured current...
by casainho
Apr 23, 2018 8:45 am
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 1851
Views: 136820

Re: New "TSDZ2 Torque Sensor Central Motor"

I found the limitation of measured current on this controller: 18 amps. STM8 pin PB5/AIN5 measures the analog signal for the battery current and for each 1 amp, the signal increases 0.275 volts. The max current measured is: 5V / 0.275V = 18.18 amps. Assuming the signal can be linear and I did my me...
by casainho
Apr 23, 2018 8:12 am
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 1851
Views: 136820

Re: New "TSDZ2 Torque Sensor Central Motor"

fixvid wrote:
Apr 23, 2018 7:55 am
Very good job Casainho.

Just a question, the firmware is uploaded on the tsdz2 controller right ? It seemed to be a different controller on the bench
Thanks.

It is the same controller, you can even see the metal part attached (the controller is not only an electronic board).
by casainho
Apr 23, 2018 7:37 am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 52
Views: 826

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

Guys, this is your motor running with our OpenSource firmware! I was using a throttle on that test. So, since the other last video, seems that what is missing right now is "connecting" the torque sensor signal to the motor "throttle" signal, right?? Not yet, first I need to be able to read motor cur...
by casainho
Apr 23, 2018 7:36 am
Forum: E-Bike Non-hub Motor Drives
Topic: New "TSDZ2 Torque Sensor Central Motor"
Replies: 1851
Views: 136820

Re: New "TSDZ2 Torque Sensor Central Motor"

Guys, this is your motor running with our OpenSource firmware (at max of 3866 RPM with the 36V from lab power supply)! I was using a throttle on that test. So, since the other last video, seems that what is missing right now is "connecting" the torque sensor signal to the motor "throttle" signal, ri...
by casainho
Apr 23, 2018 7:10 am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2160
Views: 65331

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

try to not remove my implementation for my mod Will you ever use your mod of the BMS-Sensor again, after breaking two bottom bracket axles??? To be honest, I'm not motivated to put any further work on this branch. I am waiting an answer from BMSBattery, they told me they would contact their enginee...
by casainho
Apr 23, 2018 6:35 am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2160
Views: 65331

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

stancecoke wrote:
Apr 23, 2018 5:43 am
casainho wrote:
Apr 23, 2018 4:02 am
Stancecoke needs to clean up his branch before the merge to master.
What are your concerns?
Please look at the list I wrote before. At top of my head, try to not remove my implementation for my mod and also remove the printfs even if they are commented, to keep the code clean and easy to read.
by casainho
Apr 23, 2018 4:02 am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2160
Views: 65331

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Thought I'd better just mention that the current github master branch seems to give no to response to PAS input - this is with throttle/pas mode selected. Have double-checked my config.h settings, all seems ok.... Stancecoke needs to clean up his branch before the merge to master. Geofft, thank you...
by casainho
Apr 23, 2018 3:33 am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2160
Views: 65331

Re: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)

If we push the first magnet to right to move the second one, max torque will be at 90 degrees and after being moving, to brake, max torque will be at -90 degrees (now on the left side). Have you ever tried to shift the correction angle by 127 (=180°) for doing regen? In the german forum there was a...
by casainho
Apr 22, 2018 2:08 pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 52
Views: 826

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

Anyway, I am very pleased to see the progress on the firmware, I didn't think I'd be able to contribute to the project as I don't currently have a TSDZ2, nor great programming skills, but hopefully this could help identify where the current sensing goes. Thanks for sharing. I hope later to try remo...
by casainho
Apr 21, 2018 8:35 pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 52
Views: 826

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

Thanks!!! Next I need to put motor working and then I will try to see if the shunt voltage is received by the STM8. I see the shunt on the board but I don't see any opamp... Or can it be on the back side of the board?? I wounder if is possible to measure the battery current and motor phase current a...
by casainho
Apr 21, 2018 7:57 pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 52
Views: 826

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

For the record- 8 pin Controller: black: | GND | ground blue: | P+ | battery voltage red: | Vin | ground when LCD disabled and P+ (battery voltage) when LCD is enabled green: | brake | wired with black ground for 2 pin e-brake/switch purple: | UART TX motor controller | yellow: | UART RX motor cont...
by casainho
Apr 21, 2018 1:27 pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 52
Views: 826

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

My controller don't have throttle connection. Do you know if the cable is different for the throttle version?? Were is connected throttle?? for the 8 pin controller (note colors are different from 6 pin controller) : Throttle: ORANGE (THR) BLACK (GND) WHITE (5V) E-brake: GREEN (BRK) BLACK (GND) Tha...
by casainho
Apr 21, 2018 12:19 pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 52
Views: 826

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

Anyone know what the potting compound is in the controllers? Silicone? Just trying to get an idea of what I'm up against in my modding ventures... Seems a kind of silicone, it is very soft and easy to remove at small parts... The only thing I couldn't do was to remove the board from his place. I ca...
by casainho
Apr 21, 2018 4:22 am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 52
Views: 826

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

Hey, that‘s a really great and fast progress! Seems, that you can take the first ride with the custom firmware tomorrow :D Not yet because I will be away from home. But thanks to all the technology, like good mobile PCs, mobile 4G and traveling by train, I am preparing the PWM signals today. Maybe ...
by casainho
Apr 20, 2018 8:32 pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 52
Views: 826

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

My controller don't have throttle connection. Do you know if the cable is different for the throttle version?? Were is connected throttle??
by casainho
Apr 20, 2018 8:14 pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 52
Views: 826

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

I saw that the microcontroller works well at least 18V and the mosfet driver should also work. Maybe this motor controller can also work at 24V batteries...
by casainho
Apr 20, 2018 7:17 pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 52
Views: 826

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

eyebyesickle wrote:
Apr 20, 2018 7:01 pm
green is 5-6v power for light cable
Thanks.

▪ green wire | 6V for lights | 6V only when display back light is enabled

And found that is STM8S105 PE2 pin that enables/disables that 6V.