Search found 1120 matches

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: 1479
Views: 36266

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: 1479
Views: 36266

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: 1479
Views: 36266

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: 1479
Views: 36266

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: 1479
Views: 36266

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: 1479
Views: 36266

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: 1479
Views: 36266

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: 1479
Views: 36266

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: 1479
Views: 36266

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: 1479
Views: 36266

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: 1479
Views: 36266

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: 1479
Views: 36266

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: 1479
Views: 36266

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: 1479
Views: 36266

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...
by casainho
Jan 13, 2018 7:17 am
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1479
Views: 36266

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

original shunt resistance can be slightly different on each controller. (Its not precisely set from factory) Thats no problem, as the firmware reads in the zero current value at every start up of the system. The problem is, that the delta between setpoint and actual value of battery current has to ...
by casainho
Jan 13, 2018 6:14 am
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1479
Views: 36266

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

But the offset will come in handy for more people I believe :wink: original shunt resistance can be slightly different on each controller. (Its not precisely set from factory) So If I understand, it will not be only an offset, maube an offset + diferent ADC step... -- and If so, I think will be har...
by casainho
Jan 12, 2018 6:44 pm
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1479
Views: 36266

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

I do not understand this, I think you just need to know that there will be 4 of them. Or a mOhm value setting will be good also or just any value i can change by trial and error to get the amps I have set? Ok, how can you do it? Try to run the motor at a fixed battery current, like on a bike traini...
by casainho
Jan 12, 2018 4:03 pm
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1479
Views: 36266

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

I would say that parameter is just max regen current. Now I remember to see many times on oscilloscope the motor PWM signals for the 3 phases and I just saw always the same, no short of windings. The unicycle must brake as also quick change motor rotation direction and that is very smooth, the trans...
by casainho
Jan 12, 2018 2:23 pm
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1479
Views: 36266

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

I am not really happy with riding experience with my direct drive motor. The torque sensor outputs a value that is a peak signal every pedals rotation and I feel that peak on the motor, if I control directly the motor duty_cycle. Ideally, the torque signal would be stable continuous over a pedals ro...
by casainho
Jan 12, 2018 12:37 pm
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1479
Views: 36266

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

And a question, 6fet has 1 shunt and 12fet has 2 of them, I wonder, isnt there a need to change something in firmware so they both measure correctly? (I want to use 4 of them in 18fet) There isn't yet. On my S06S, I did measured each 8 bits ADC step (20mV) to be equal to 0.5A: 5V / 256 = 0.02V. My ...
by casainho
Jan 12, 2018 7:15 am
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1479
Views: 36266

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

Casainho: I seem to have got the problem back with flashing empty battery signal and no motor functions (LVC triggered..?) You fixed this a couple of days ago, could it have sneaked back into the github download? Yes, I see the changes on the log: https://github.com/OpenSource-EBike-firmware/BMSBat...
by casainho
Jan 12, 2018 5:20 am
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1479
Views: 36266

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

Please be more detailed in on your explanations. You mention ramp up and PAS and some value of 5, it doesn't make sense. You need to say which values for which option variable. If we don't understand, we can't help. Was referring to the 'PWM duty cycle ramp up step' as in the configurators and conf...
by casainho
Jan 12, 2018 5:11 am
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1479
Views: 36266

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

The biggest problems I saw allready on table is the pwm rampup and down set to 25 and also if set to 2 takes like 5 seconds atleast to get to full speed or down to zero. That's only a problem on the table. The current is controlled to be zero if you release the throttle. If there is no load, the cu...
by casainho
Jan 12, 2018 4:33 am
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1479
Views: 36266

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

Yes, this works better out on the road. Was going to mention pas ramp up though, I've got the ramp value set to just 5 at the moment and it's still too slow to build up, this may eventually need some adjustment in the code. Please be more detailed in on your explanations. You mention ramp up and PA...
by casainho
Jan 11, 2018 5:33 pm
Forum: Motor Technology
Topic: Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 1479
Views: 36266

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

After running it on table I will try all same components just with 10s3p 18650 battery on an old bike. If it will run and I feel confident that its usable, I want to try 18fet on the first photo bike. The first photo ebike, is a big one :-) :-) -- I would be really happy to know that you run it wit...