Battery Amps, Motor Amps and Duty Cycle... Please Explain

motor_current = (pwm_effective_voltage - bemf_voltage) / winding_resistance_ohms

motor_current = A
pwm_effective_voltage = B
bemf_voltage = C
winding_resistance_ohms = D

A = (B - C) / D

can be rearranged:

B = (A * D) + C

therefore:

pwm_effective_voltage = (motor_current * winding_resistance_ohms) + bemf_voltage

&

battery_voltage * duty_cycle_%_bldc = pwm_effective_voltage

therefore:

duty_cycle_%_bldc = pwm_effective_voltage / battery_voltage

5 Likes

Currently got no working builds :sweat_smile: trying to understand this stuff so i dont fuck anything up.

My flipsky dual6.6 just shit itself and im wondering if its because i set the braking too high. Max motor amps were 35 and i set braking to -60. 10s5p 30q

2 Likes

So would it be likely that I cooked the esc by having it too high?

Motor amps

Cheers dude. I am comfortable that none of that happened so I can conclude that the flipsky dual 6.6 is a piece of shit. And ive successfully derailed my own thread :sweat_smile:

5 Likes

this chart shows 48v, 30a bat limit setting per motor, 120a motor current limit setting per motor, 190kv, 100mm, 2.5:1 gearing, 2 motors:

^you can see from the bottom left chart this board will do about 40mph on flat ground and about 35mph on a 10% slope, and about 20mph a 31.5% slope.

blue and black lines top left chart show the motor current (blue) and battery current (black)

the downward slope of the motor current (blue line top left chart) during acceleration is caused by hitting the 30a battery current limit at low rpms.

the drop in battery current at the right side of the chart is caused by hitting 95% duty cycle and then continuing to accelerate (the bemf voltage prevents drawing significant amperage)

edit: i updated the chart because i originally had the wrong vehicle mass inputted.

8 Likes

I’m glad you asked this, I have rough understandings of a lot of these values but motor current always confused me. Does that just come from the manufacturers spec?

For example, I’m running these motors and see they listed 65 and 60A ratings. If been running them up to 80A motor current and have seen no issue.

5 Likes

In the case above, the rider wouldn’t be able to draw above 60a motor while above 20mph, even if they set it higher, because of the 30a battery limit setting.

3 Likes

Is there an app or website or spreadsheet I can use to generate these graphs for my ride?

Thank you so much @glyphiks for asking this question. That said I might have to go back over this thread a few times with some beer in me for it to sink in better.

5 Likes

I haven’t made it available to download but I’ll think about it after making some adjustments for usability.

3 Likes

biggest wrong thinking is to believe that these are equal.

motors are 3 phase AC and large amounts of current can be moved from one phase to another meaning that there can be lots of current moving inside the motor without taking power from the battery. the amount of battery current needed to sustain a motor current depends on lots of factors like speed and load.

This is the best way to think about it:

At low speeds you cant pull much power out of the battery as your not doing much work. your motor current will be the important factor here.
motor current = low end torque

at high speeds you can use much more battery power as your doing lots of work. you battery current will be the limitng factor here.
battery current = High speed torque

As for duty cycle. your motors have a set kv rating. This is basically rpm/volt. so rpm/volt multiplied by voltage gives you your max speed in rpm. Duty cycle is the % of this that your currently at. eg 50% duty cycle is 50% max speed.

14 Likes

this isn’t right, the duty cycle % is the % on-time of the battery current, and it determines the effective voltage seen by the motor.

In BLDC 10% duty cycle means 10% of the time, current is being supplied by the battery. Through a quirk of physics, it also means the motor “sees” 10% of the battery voltage. It also means the battery current will be 10% of the motor current.

5 Likes

Where did you pull this value from? I mentioned no battery limit setting in my case.

1 Like

Merely to illustrate how a battery current limit affects the motor current limit.

If there was no battery current limit, the motor current will be a straight line across and the battery current will be a flat ramp that almost meets up with the motor current line at 95% duty cycle.

Another interesting part of the graph is where the red line crosses above the yellow line in the top left chart. Thats no load speed where the back emf voltage produced by the motor starts to exceed the max effective voltage at 95% duty cycle. The motor can’t go any faster than this rpm under its own power.

5 Likes

Ok thank you for clarifying. At a 10s5p 30q pack, I have my my max battery current set to 95A but have always worried about motor max constraints

2 Likes

In some versions of vesc the firmware limits you to 120a motor and 60a battery per motor, even if you input higher values.

5 Likes

Im glad there are more peeps out there who have benefited from this conversation. Its a question i’ve wanted to ask for ages.

19 Likes

@Pedrodemio Do you mind validating the definition i used on the Glossary of Terms page?I cited this thread post but want to ensure its accurate.

1 Like

Sure, The duty cycle one right?

that definition is not correct. in bldc the duty cycle is the percentage of time that current is taken from the battery

5 Likes