Search found 565 matches

by stancecoke
Apr 26, 2018 12:26 pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 69
Views: 1363

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

you can try it of course, but I don't know if the iteration will converge with increasing/decreasing the angel incrementally.

but with V² not sqrt (V) :wink:

regards
stancecoke
by stancecoke
Apr 26, 2018 10:44 am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 69
Views: 1363

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

Puh, this makes sense if the advance angle is already set to the right value. Says, current is in phase with the BEMF. You can't use the measured current if you don't know if you are in phase with the BEMF.... I think you have to do this approach: 1. measure the motor specific constants L (inductanc...
by stancecoke
Apr 25, 2018 9:14 am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 69
Views: 1363

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

I think you know the documentation of Shane Colton? He describes the determination of the best advance angle from the motor characteristics in detail on pages 48ff.

https://github.com/EGG-electric-unicycl ... 3phduo.pdf

regards
stancecoke
by stancecoke
Apr 25, 2018 9:09 am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 2178
Views: 66035

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

A simple LED display should work, we could even use a simple button to switch through the levels (not implemented yet, but quite easy to do...). The default settings for some parameters have to be set manually in this case. Once you rode a bike with a torquesensor, you will throw away your PAS immed...
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: 69
Views: 1363

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: 2178
Views: 66035

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: 2178
Views: 66035

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: 2178
Views: 66035

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: 2178
Views: 66035

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: 69
Views: 1363

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: 69
Views: 1363

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: 2178
Views: 66035

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: 2178
Views: 66035

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: 2178
Views: 66035

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: 69
Views: 1363

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: 2178
Views: 66035

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: 2178
Views: 66035

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: 2178
Views: 66035

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: 2178
Views: 66035

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: 2178
Views: 66035

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: 2178
Views: 66035

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: 2178
Views: 66035

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...