Documentation sections
PWM Duty Cycle to Motor Voltage
POSThttps://rftools.io/ api/ py/ v1/ calculate
Slug pwm-duty-cycle-motor. Convert PWM duty cycle to effective motor voltage, calculate no-load speed and stall current for DC motor PWM control.
Inputs
Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.
| Name | Unit | Range | Default | Description |
|---|---|---|---|---|
| supplyVoltagenumber | V | at least 0.1 | 12 | Supply Voltage |
| dutyCyclenumber | % | 0 … 100 | 75 | Duty Cycle |
| motorKvnumber | RPM/V | at least 1 | 100 | Speed per volt at no load |
| motorResistancenumber | Ω | at least 0.01 | 1.5 | Winding Resistance |
Outputs
Returned in values, by key. A value that is unbounded or undefined is null.
| Field | Unit | Description |
|---|---|---|
| effectiveVoltageheadline | V | Effective Voltage |
| noLoadSpeed | RPM | No-Load Speed |
| stallCurrent | A | Stall Current |
| peakPower | W | Peak Power (stall) |
| rippleVoltageFactor | V | Voltage ripple factor — V_s × D × (1−D); indicates PWM voltage variation, not current |
Calling it
- Calculate: one call, the request and response in full, and its errors.
- Batch: this calculator with others, or a sweep, in one request.
- Solve for a target: the value of one input that brings an output to a target.