Search found 560 matches

by stancecoke
Apr 25, 2018 2:28 am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 61
Views: 974

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

casainho wrote:
Apr 24, 2018 12:19 pm
I have app notes that shows that vectors and I need to understand the math operations...
Can you post the link to that app notes?

regards
stancecoke
by stancecoke
Apr 23, 2018 10:31 am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2163
Views: 65595

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

I would prefer one master, that offers a stable implementation of the most common features and an up to date documentation. 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 ...
by stancecoke
Apr 23, 2018 7: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: 2163
Views: 65595

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

casainho wrote:
Apr 23, 2018 6:35 am
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.

regards
stancecoke
by stancecoke
Apr 23, 2018 5:43 am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2163
Views: 65595

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

casainho wrote:
Apr 23, 2018 4:02 am
Stancecoke needs to clean up his branch before the merge to master.
What are your concerns?

regards
stancecoke
by stancecoke
Apr 23, 2018 2:41 am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2163
Views: 65595

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 stancecoke
Apr 21, 2018 3:32 am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 61
Views: 974

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

Regards
stancecoke
by stancecoke
Apr 20, 2018 3:46 pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 61
Views: 974

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

As far as I remember, the PAS magnets are in the outer ring of the secondary coil.

Regards
stancecoke
by stancecoke
Apr 19, 2018 2:48 am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2163
Views: 65595

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

So, on motor regen duty-cycle is not always zero but will be a value in a way that regen current is not more the value we define/control, I don't know if it's a matter of the BionX. As I wrote, the max regen current I get at 20 km/h is about 1.5Amps only. If I ask for e.g. 5A regen current, the cur...
by stancecoke
Apr 18, 2018 2:41 pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2163
Views: 65595

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

After thinking a little: The current controller pulls the dutycycle to zero, if high regen current is wanted. In this case the correction angle can't have any effect, as the PWM puts no sinewave to phase lines. Can we achieve higher regen current, if we set a higher dutycyle and a "misstuned" correc...
by stancecoke
Apr 18, 2018 1:11 pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2163
Views: 65595

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

stancecoke wrote:
Apr 17, 2018 2:33 pm
I've implemented it in the latest commit, but I have not tried it on the road,
I've tested it on the road now, but I was not successful. It seems, that the zero crossing of the phase current is not influenced by the correction angle at all... :(

regards
stancecoke
by stancecoke
Apr 17, 2018 3:08 pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 61
Views: 974

Re: Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

you can find details on the torquesensor here: https://www.pedelecforum.de/forum/index.php?threads/funktionsprinzip-drehmomentsensor-im-mittelmotor-sfm-du-250-p-tsdz2.45029/ I wonder, how the working frequency for the sensor will be generated and the signal processing will be done in the firmware :?...
by stancecoke
Apr 17, 2018 2:33 pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2163
Views: 65595

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

@geofft: Thank you for testing and the feedback! regen vibrates the motor and I know FOC is not working while regen. All this needs work. I don't have much time... It will take time. I've logged the phase current while riding and while regeneration with FOC disabled (correction angle always 127). Th...
by stancecoke
Apr 17, 2018 5:37 am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2163
Views: 65595

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

Winrar works for extracting the files from the archive also, as suggested in the instructions. I'll add the links to the tutorial.

regards
stancecoke
by stancecoke
Apr 16, 2018 3:47 pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2163
Views: 65595

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

I really need to improve for direct drive motor. What's the problem with the direct drive? I never got your master branch running satisfying with the torque sensor due to the PAS issue, but with the code from my fork, my BionX direct drive runs really good now, including regen by "thumb-brake" 8) r...
by stancecoke
Apr 16, 2018 11:04 am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2163
Views: 65595

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

Yes, that's the fault.

Please see the updated installation instructions:

https://opensourceebikefirmware.bitbuck ... ndex3.html

regards
stancecoke

hmm, I darkly remember that you are using a 32 bit PC?! Sadly, this isn't supported any longer :(
by stancecoke
Apr 16, 2018 10:22 am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2163
Views: 65595

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

I tried to compile with your config.h and it worked without errors. Can you post the output of the cmd window again?
Have you already updated to SDCC 3.7.0?

regards
stancecoke
by stancecoke
Apr 16, 2018 8: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: 2163
Views: 65595

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

I've tried to install your modified branch with the new pas code but it fails to build and flash I think you have a typo in the config.h. Please make sure, that you have the right entry for PAS/Throttle mode: #define EBIKE_THROTTLE_TYPE EBIKE_THROTTLE_TYPE_THROTTLE_PAS I've changed the code a littl...
by stancecoke
Apr 15, 2018 2:36 pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2163
Views: 65595

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

I think the additional parameter PAS_ratio will be OK with 1.7 in most cases, I've tested it with a cheap normal PAS and the modded BMS-Torquesensor, for both it was OK. As geofft already mentioned, the very simple implementation in the recent master branch causes hickups sometimes, that's my experi...
by stancecoke
Apr 15, 2018 11:58 am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2163
Views: 65595

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

No, the config.h in the branch works, but if you use the Java Tool, this config.h will be overwritten. If you want to use a display, you have to comment the line

Code: Select all

#define DEBUG_UART

regards
stancecoke.
by stancecoke
Apr 15, 2018 9:39 am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2163
Views: 65595

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

Are you planning to use the java tool? Then I have to update it, too, as there is an additional #define necessary in the config.h for the PAS ratio.

regards
stancecoke
by stancecoke
Apr 15, 2018 6: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: 2163
Views: 65595

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

I've just uploaded a new branch with improved direction detection on PAS and made Regen like coast brakes availabe in normal PAS/Throttle mode. No wire at X4 is necessary, just a normal PAS at the origin PAS connector. @casainho: you are right, with your code for handling the PAS signal, the mod of ...
by stancecoke
Apr 14, 2018 5:54 am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2163
Views: 65595

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

casainho wrote:
Apr 12, 2018 3:42 pm
Should I create a new thread for TSDZ2 motor firmware or use this one??
I think we should start a new one. What will be the advatange of a custom firmware for the TSDZ2? The implementation of the torquesensor is already done in the original firmware...

regards
stancecoke
by stancecoke
Apr 13, 2018 8:04 am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2163
Views: 65595

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

OK, then I will try to port EBrake like Coast Brake to the normal PAS mode. I hope you will accept it and merge it to master if it works.... Perhaps you should switch the wiring in your personal setup to use the additional PAS at the normal PAS connector and put the origin PAS signal of the BMS-Sens...