Search found 375 matches

by geofft
Aug 19 2018 3:01am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

I'm just coming back from a longer test ride and I'm really satisfied with the setup. Everything is working properly and reliably for me. So I'll stop further development at the moment. It's very difficult to solve other people's problems that doesn't appear at my setup... Thank you, geofft, for yo...
by geofft
Aug 18 2018 10:19am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

Maybe you can try my branch and see if it works, if works, than that hardware is ok and we will know it works with my code and will be an option. I just say this because you told before that you get not problem with my code. Casainho, your branch (with my gear motor setup) works pretty much faultle...
by geofft
Aug 18 2018 9:02am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

Tried disconnecting the HC-05 5v line (from spare brake connector) but still the same. I'll try re-downloading and starting again as you suggest. Please don't spend any more time on this, it all started from from chasing the speedometer error which isn't a great problem in reality. If I discover any...
by geofft
Aug 18 2018 4:51am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

I did manage to take a datalog from a short ride today with some 'interesting' results. I'll post the details of this tomorrow The printf line that produced this log was:- printf("%d, %d, %d, %d, %d\r\n", ui16_setpoint, ui16_motor_speed_erps, ui16_BatteryCurrent,ui8_cheat_state, ui16_SPEE...
by geofft
Aug 17 2018 12:53pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

Good to hear, that the controller is working again and the throttle behaviour is OK with the new gain settings :D In the config.h there are still 0.5 and 0.2, I think this is an old one? Yes, I stored that config.h copy just before I made the Gain I/P changes. You have defined 500 for max battery c...
by geofft
Aug 17 2018 10:17am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

stancecoke wrote:
Aug 17 2018 9:33am
Nothing attached?
I have to check the phase current limiting algorithm I think...
regards
stancecoke
Sorry, brain fade... :shock: Now attached.
I've tried reducing Gain P to 0.3 and Gain I to 0.1 and the throttle now works smoothly from rest, so I think that problem is now ok.
by geofft
Aug 17 2018 9:03am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

I now have a further problem. The throttle response in the recent downloads (I was using torque sim/throttle, offroad mode) has been very sharp when used from a standstill with little progression. This, unfortunately, has just damaged the controller. Hmm, strange. The only thing I changed in the la...
by geofft
Aug 17 2018 7:33am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

On TSDZ2 firmware (like on KT firmware), when motor is stopped the wheel/motor is engaged because the motor coils are powered on. If I force to rotate backwards the wheel, I see the torque sensor signal of TSDZ2 to get active while to should not!! I never had that issue with my BionX DD and the BMS...
by geofft
Aug 17 2018 6:58am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

stancecoke, ignore this message for now, I've just noticed some strange behaviour during the build and flash of that latest github download and I'm not sure it's actually being flashed. I'll do this again tomorrow with a fresh mind... :? Problem was that the fw filename (after being unzipped) conta...
by geofft
Aug 16 2018 2:37pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

I've added debounce now at github. Please try again. If it still doesn't work, please log ui16_SPEED and post the result. regards stancecoke Still the same I'm afraid, no difference in the speed readout behaviour... :( I'll do the logging you asked for tomorrow. stancecoke, ignore this message for ...
by geofft
Aug 16 2018 2:02pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

stancecoke wrote:
Aug 16 2018 12:10pm
I've added debounce now at github. Please try again. If it still doesn't work, please log ui16_SPEED and post the result.

regards
stancecoke
Still the same I'm afraid, no difference in the speed readout behaviour... :(

I'll do the logging you asked for tomorrow.
by geofft
Aug 16 2018 12:06pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

It's not a problem of interrupt handling but of noise on the signal. Are you guys using an input that is originally used for the speed sensor? Because using the BMSBattery speed sensors (cheap ones) and also TSDZ2 speed sensors, I never got such issue. The hardware has a low pass filter to filter n...
by geofft
Aug 16 2018 11:07am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

Have you tried the latest commit? I've added some Software filtering some days ago.... regards stancecoke I've just tried the current commit, but it seems just the same.. :( Edit: This issue also means that without cheat mode enabled the pas is constantly cutting in and out - I guess this is becaus...
by geofft
Aug 16 2018 6:40am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

I'm probably doing something dumb but I've run out of things to try, any ideas? I fear there is too much noise on the signal when the motor is running. You can try to fit a split ferrite to the wire next to the controller. I could filter the signal by software, but to be honest, I have no desire to...
by geofft
Aug 15 2018 5:23am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

stancecoke wrote:
Aug 15 2018 3:40am

Using BT and Display just in parallel can't work, as the controller would receive a mess of bytes from both devices at the same time...
I did try this when I made up the HC-05 cable. Wasn't expecting it to work, and, unsurprisingly, it didn't... :D
by geofft
Aug 14 2018 3:59am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

I've built a very basic android app, that sets the speed limit via bluetooth. It's not looking very professional, but it works :| . Nice work! Just a couple of questions:- I presume you intend to add more adjustable parameters eventually? Will it ever be possible to use this system and still retain...
by geofft
Aug 12 2018 2:27pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

I've now upgraded to SDCC 3.7.2 but unfortunately the compiler's dislike of 'uint32_current_target' did not go away. I've now removed this parameter from the diagnostics 'printf' command (main.c) and it compiles and flashes ok. please make sure, that the line extern uint32_t uint32_current_target; ...
by geofft
Aug 12 2018 5:12am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

Please update to SDCC3.7.1: https://sourceforge.net/projects/sdcc/files/snapshot_builds/x86_64-w64-mingw32-setup/sdcc-20180802-10495-x64-setup.exe/download There were some strange errors reported in the german forum with the 3.7.0 revision, too. regards stancecoke I've now upgraded to SDCC 3.7.2 bu...
by geofft
Aug 11 2018 3:58am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

Working with one central tool (the java-tool) may be more comfortable for unexperienced users. You don't have to mess around with BT-Module, installing und using additional tools on the smartphone. I had no strong feelings for (or against) the BT-smartphone idea, but if forced to express an opinion...
by geofft
Aug 10 2018 3:07am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

I look forward to using my new gadget for real sometime.. :wink: you can print out ui16_current_cal_b in column 1 instead of dutycycle for example and compare it with the recent current in column three, to see why the motor pushed at standstill... Stancecoke, I've been trying this using the printf ...
by geofft
Aug 08 2018 5:47am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

I've added some more descriptions in the tutorial, I think the syntax of the printf command should be self explaining with the example. https://opensourceebikefirmware.bitbucket.io/windows_instructions/index6.html regards stancecoke Thanks for that, I'm ok with this now. The parameter descriptions ...
by geofft
Aug 07 2018 4:27am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

I look forward to using my new gadget for real sometime.. :wink: you can print out ui16_current_cal_b in column 1 instead of dutycycle for example and compare it with the recent current in column three, to see why the motor pushed at standstill... regards stancecoke I confess I don't completely und...
by geofft
Aug 06 2018 10:13am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

stancecoke wrote:
Aug 06 2018 9:41am
Normally I log a complete testride and do the analysis in Excel afterwards.
I see, using Excel as a datalog viewer. I wondered how you were producing those wonderful graphs.

I look forward to using my new gadget for real sometime.. :wink:
by geofft
Aug 06 2018 9:24am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4374
Views: 428058

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

stancecoke wrote:
Aug 06 2018 8:54am
geofft wrote:
Aug 06 2018 8:22am
Any suggestions gratefully received.. :?
Try to swap rx and tx!
Thanks, now working just fine.... :)

I can see that this pumps out a LOT of data very fast, how do you target the area where you had any particular problem..?