Search found 1131 matches

by casainho
Jan 20, 2018 3:00 pm
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

@Casainho, just seen your last post. I allready tried changing "#define DEFAULT_VALUE_MAX_SPEED" to 72 but looks like lcd overrides it with "its own" 72 which means 42 or 37 on the two lcds :roll: To make sure it is the LCD: do the same test but never connect the LCD and please tell us of the resul...
by casainho
Jan 20, 2018 2:35 pm
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

When first run of firmware and without an LCD connected, the default values are this, defined 9n main.h. This values are after saved on persistent memory of STM8, everytime the LCD change their correspondonding values. So, If you think your LCD can be source of problems, don't use it amd instead cha...
by casainho
Jan 20, 2018 1:38 pm
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

tried the other display, and throttle is 100% at pas 0! (?), blown mosfets again when turning off the lcd. weird. First blown was mosfet 1 and 4 now its 1 and 2 counting from shunt side. You can try without LCD and define your own default variabke valies that LCD define, they are on main.h. They ar...
by casainho
Jan 20, 2018 10:31 am
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

@Casainho - edited config.h does not change it. I am far from hiting max erps, as I explained, I get 37km on display while set 72. Motor rpm is changing by P1 but still limits to about 37 on display @Geofft - can you try the 100% throttle? Always 100% throttle works ok for me, after I requested it ...
by casainho
Jan 20, 2018 9:26 am
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

24" x 3.0" tire so almost like 26". 46 magnets, no reduction. Firmware has some bugs for sure, I left my bike running on stand to drain battery and after about 2 minutes running with fixed throttle possition it started to accelerate to 78km/h on display and back to 35 and again. After releasing thr...
by casainho
Jan 20, 2018 7:42 am
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

@Casainho - edited config.h does not change it. I am far from hiting max erps, as I explained, I get 37km on display while set 72. Motor rpm is changing by P1 but still limits to about 37 on display Can you calc your motor ERPS for that 37km/h? Please tell us: - your wheel size - motor gear reducti...
by casainho
Jan 19, 2018 6:18 pm
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

100% throttle - spent 3 hours trying to get it (and other modifications) working, last thing to try will be compiling and flashing "manualy" by stancecoke's old pdf tomorow morning. If there us an easy way to flash modified config.h, please tell me. (Now I realize maybe by start compiling.bat in fi...
by casainho
Jan 19, 2018 4:42 pm
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

and probably just for me, :roll: would be great to have external switch for throttle limit (replacing original cruise wire for example) with configurable % power limitation. It will be needed with higher power. After thinking about it, I found would be easy to add this. You just need to edit main.h...
by casainho
Jan 19, 2018 2:05 pm
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

@Casainho P1 parameter is limiting my speed. When set 46 I get 37km/h on display and not full rpm on motor When set 92 I get 35km/h on display and twice the rpm on motor. Edit: thats with P3: 1 and lcd speed limit 72 With P3: 0 I get the bugs I reported before. P3 = 1; speed controller is set to ma...
by casainho
Jan 19, 2018 1:56 pm
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

btw, how to set to show the right speed on lcd3? P1 and wheel size works? Yes, on main branch, P1 and and wheel size works -- status project is here, you can read: https://opensourceebikefirmware.bitbucket.io/FLEXIBLE_OPENSOURCE_FIRMWARE.html#h1-3 Can you please implement an option to have 100% thr...
by casainho
Jan 18, 2018 11:48 am
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

geofft wrote:
Jan 18, 2018 11:39 am
to 60% of that displayed. To my simple mind I thought that (......_10b * 6/10) might work without overflow, so I tried it - and it does..:shock:

Not sure if that makes any sense but like I say - it works for me.
Maybe reding 50% will be ok, so would be:
Variable = variable >> 1;
by casainho
Jan 16, 2018 1:36 pm
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

Would it be possible point me (and others..) to the number(s) in the code that need to be changed so we can do our own calibrations to the wattmeter? You would have to scale the read value in the ebike_app.c i8_motor_current_filtered_10b = motor_get_current_filtered_10b (); i8_motor_current_filtere...
by casainho
Jan 14, 2018 6:14 pm
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

mtdr from the German forum has managed to flash the firmware to a KT-SVP7, but the switch to 60°interpolation doesn't work, and with 6-Step the motor (yamaha middrive) stops after a while :-( I have no idea how to help at the moment https://www.pedelecforum.de/forum/index.php?threads/kt-controller-...
by casainho
Jan 14, 2018 6:04 pm
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

3. That may happen because of output voltage of your throttle may have a gap considering the values of ADC: Go to main.h and adapt that values. But first, with throttle connected, measure the min and max voltages with a multimeter. 0 --> 0 volts 255 --> 5 volts #define ADC_THROTTLE_MIN_VALUE 51 #de...
by casainho
Jan 14, 2018 1:43 pm
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

1. Bug report: PAS at 0 runs motor when pedal rotating backwards. 2. slow reaction to throttle and PAS while running and standstill also. 3. Does not start the motor with a bit of throttle while icon is showing it should run. 1. That is no good :-( -- I guess we really need to try increasing the mi...
by casainho
Jan 14, 2018 1:38 pm
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

stancecoke wrote:
Jan 14, 2018 1:35 pm
If it's satisfying for you, we can improve the master branch with this control algorithm. I don't plan to do further development on my fork.
I agree however I am in a phase that I don't have much time to help on this task.
by casainho
Jan 14, 2018 9:28 am
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

geofft wrote:
Jan 14, 2018 9:24 am
I'm beginning to think that life would be easier for everybody if you had separate firmware branches for the geared and direct drive motors...?
The thing is that I don't if there are diferencies... What would be different??
by casainho
Jan 14, 2018 9:26 am
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

stancecoke wrote:
Jan 14, 2018 9:21 am
Hmm, I rode my direct drive with the firmware from the torque-simulation fork only, but that worked definitly better than the original firmware.
That's good to know. Any disadvantages over a geared motor??
by casainho
Jan 14, 2018 9:14 am
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

But we need to be able to block the motor by mechanical brakes right after releasing throttle with direct motor.. as it is now it still pushes half the amp limit in the air to stop the motor in 1 second from full speed. I don't like much the way direct drive motor works with our firmware, but I mus...
by casainho
Jan 14, 2018 7:38 am
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

So its much higher. Standby 6.9-7w - 20-21 on lcd. No load 46-48w - 120-138 on lcd. 400w real - 840-860lcd . Motor current 40A at tool gives 10-11 real. :shock: 15A at tool gives 3.5-3.8 real. Measured by 8$ AE wattmeter (checked to work well) That is really crazy values!! I think we should not con...
by casainho
Jan 14, 2018 6:34 am
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

honya96 wrote:
Jan 14, 2018 6:31 am
I am gonna confirm the wattage correction in few minutes, but I can say allready that it reads atleast 20% too high.
Great! And then, please tell us how did you measure.
by casainho
Jan 14, 2018 5:10 am
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

My estimate here is not scientific, the power maximum the motor draws (indicated on display) with the stock firmware is 800w, but the new firmware is showing 1150w. I can do some better tests with an ammeter in the battery supply if you prefer..? That would be great, if you can confirm with an exte...
by casainho
Jan 13, 2018 5:22 pm
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

The motor wattmeter is improved but still reads about 30% high (was 100%+ high previously). Damping is also improved, now takes maybe 5secs to reach zero after a motor cut, maybe should be slightly less, not a big deal. How did you measured to verify it is about 30% high? -- if we agree, I can just...
by casainho
Jan 13, 2018 3:08 pm
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

Guys I think my testbike motor fails to switch to FOC, when motor start interpolatiom 60 degrees set to 200 it runs up to high speed and then starts coughing when set 40 it starts sooner. Is it related with only FOC ID angle or also rotor offset? This motor needed the C2 parameter set at 5 with sto...
by casainho
Jan 13, 2018 11:06 am
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1512
Views: 37465

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

But I think both controllers can coexist, I don't see any problem of using both on current firmware. The only issue is that the sloow loop controller doesn't work so well because was bad implemented. I am busy and there are a lot of things to implement. I will not implement most of them as fast a di...