Search found 151 matches

by geofft
Apr 24, 2018 3:12 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: 65455

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

Can you please verify the working of the current code on ebike_app.c?? You need a variable power supply or discharging a battery and look at display voltage and compare with main.h battery voltages table: No problem, I'll do this during the next battery charge cycle. I can add back the filter, and ...
by geofft
Apr 24, 2018 2:21 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: 65455

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

Current master, I think works very well except for: - direct drive motors: it works but regen is not perfect - PAS has that issue we had being talking about Can I add a couple of 'detail' items to that:- 1)Battery bars no longer quite correct. Current battery SOC is 45% but battery indicator only s...
by geofft
Apr 23, 2018 11: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: 65455

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 geofft
Apr 23, 2018 9:34 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: 65455

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 m...
by geofft
Apr 23, 2018 4:12 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: 65455

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 geofft
Apr 23, 2018 3:57 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: 65455

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....
by geofft
Apr 18, 2018 8:15 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: 65455

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

Ok, TSDZ2 is out off topic but I would like to say that the firmware development started the best way possible!!! :-) and thanks to all the knowledge earned on this project for Kunteng motor controllers. VICTORY!! The connection for firmware programming and debug are available on the connector for ...
by geofft
Apr 17, 2018 10:20 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: 65455

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. Finally got this installed and working today, some early observations:- 1) The modified PAS detection works well once PAS ratio is set. On my installation ...
by geofft
Apr 17, 2018 4:52 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: 65455

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

I'm struggling to make any sense of the .tar.xz files in that SDCC 3.7.0 download link, getting nowhere trying to unpack them with peazip. I think I'll have to wait for a simpler Windows installer version to become available before I can go any further with this. To extract, use 7Zip for Windows th...
by geofft
Apr 17, 2018 4:23 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: 65455

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.bitbucket.io/windows_instructions/index3.html regards stancecoke I'm struggling to make any sense of the .tar.xz files in that SDCC 3.7.0 download link, getting nowhere trying to unpack them wit...
by geofft
Apr 16, 2018 3:30 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: 65455

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

Torque sensor is really "magic"!!
Yes, I'm looking forward to trying one, but can see another steep learning curve looming to get it all up and running... :shock:
by geofft
Apr 16, 2018 11:18 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: 65455

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

hmm, I darkly remember that you are using a 32 bit PC?! Sadly, this isn't supported any longer :(
Your dark memory is telling you lies.... :twisted:

Will update SDCC and try again, probably tomorrow.

Thanks guys.
by geofft
Apr 16, 2018 10:42 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: 65455

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

stancecoke wrote:
Apr 16, 2018 10:22 am
I tried to compile with your config.h and it worked without errors. Can you post the output of the cmd window again?
Done
Have you already updated to SDCC 3.7.0?
Err......no. So I guess this is my problem?
by geofft
Apr 16, 2018 9: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: 65455

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 geofft
Apr 16, 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: 2163
Views: 65455

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

To recap, the issue I had with the master branch (casainho pas) was that it had a tendency to trigger pas on slow reverse pedalling. On casainho's advice I played around with the 'ticks' count in this line (main.h):- #define PAS_ABSOLUTE_MIN_CADENCE_PWM_CYCLE_TICKS (156250 / PAS_NUMBER_MAGNETS) // m...
by geofft
Apr 15, 2018 10:53 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: 65455

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

stancecoke wrote:
Apr 15, 2018 9:39 am
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
I normally do the user setup directly in config.h. Do I need add the #define in config.h to set PAS ratio at this time?
by geofft
Apr 15, 2018 7:07 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: 65455

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 geofft
Apr 14, 2018 12:14 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: 65455

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

Just noticed one small 'glitch' though, often when under full power (800w on my setup, usually using throttle but I think has also happened under pas only) the LCD3 wattmeter reading will suddenly decay down to zero, although the motor is still at full drive. If at this point you release throttle/s...
by geofft
Apr 14, 2018 8: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: 65455

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

Should I create a new thread for TSDZ2 motor firmware or use this one?? I think we should start a new one. ....I think so too, this thread is already so long that earlier info can be hard to find and I can foresee information getting confused between the two types. On a different subject I recently...
by geofft
Apr 08, 2018 12:40 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: 65455

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

Will you be making this latest version be available on github sometime? I just wondered if it may have any effect on the (windows users) compiling issue? The version I am using is on master branch of github. I just updated the compiler version to 3.7.0 and I found that the compiled firmware was abo...
by geofft
Apr 08, 2018 9:13 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: 65455

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

casainho wrote:
Apr 08, 2018 8:47 am
Between sun and rain, today I did a good ride of 1h30 betweem home and near beachs.
The firmware was built with SDCC 3.7.0.
Will you be making this latest version be available on github sometime? I just wondered if it may have any effect on the (windows users) compiling issue?
by geofft
Apr 06, 2018 1:37 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: 65455

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

Please update your master branch as I just update it with my most recent code. The recent master branch throws an error while compiling with windows. :( ebike_app.asm:366: Error: <a> machine specific addressing or addressing mode error ebike_app.asm:403: Error: <a> machine specific addressing or ad...
by geofft
Apr 06, 2018 12:04 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: 65455

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

The Eclipse version I use do show me as I expect... Obviously there are more differences between the toolchain in linux and the toolchain in windows. Perhaps geofft or honya96 can crosscheck my findings in a windows system, for me the errors were reproducable on two different laptops... ....hopeful...
by geofft
Apr 03, 2018 7: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: 65455

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

do you have to drill a hole in the bottom bracket tube to bring this out - or am I missing something here..? Yes, you have to drill a hole with a diameter of 12mm, see the Installation Manual . Thanks Stancecoke, that's useful info. I've no objection to drilling the frame, just wondered how the cab...
by geofft
Apr 03, 2018 6: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: 65455

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

Thought I might try one of these (T2 version):- https://www.aliexpress.com/item/torque-sensor-transducer-standard-buttom-bracket-parts-for-electric-scooter-e-bike-motor-assisted-bicycle/32793693999.html ...anybody have any thoughts/comments/experiences with these? Yes, I've tested the first and the...