# M0117-1 ESC Reports too high voltage

Source: https://forum.modalai.com/topic/5562/m0117-1-esc-reports-too-high-voltage
Category: ESCs, Sensors and Accessories (https://forum.modalai.com/category/15/escs-sensors-and-accessories)
Posted: 2026-11-25 16:03:12 UTC by K.Stute
Replies: 1 · Views: 15

## K.Stute · 2026-11-25 16:03:12 UTC

# M0117-1 ESC reports about 20% too high battery voltage, and the voltage used for control differs from the reported one

## Summary

On a VOXL 2 with the VOXL 4-in-1 ESC (M0117-1, firmware 39.26), all four ESCs report a battery
voltage of about 19.65 V while the pack measures 16.28 V with a multimeter. After calibrating with
`voxl-esc-calibrate.py`, the RPM tracking test overshoots the commanded RPM by 8-12 %. The duty cycle
the firmware applies at runtime implies it uses a bus voltage of about 17.5 V, which is neither the
reported 19.65 V nor the measured 16.28 V.

We would like to know which voltage the firmware really uses for control, whether the reported value
is scaled incorrectly on this board or firmware, and how to calibrate so that calibration and runtime
agree.

## Setup

| Item | Value |
|---|---|
| Flight computer | VOXL 2 (QRB5165) |
| VOXL SDK | 1.8.0 |
| ESC | `version 34: ModalAi 4-in-1 ESC (M0117-1)`, IDs 0 to 3 |
| ESC firmware | version 39.26, hash `dbd00c41`; bootloader version 183, hash `25317f42` |
| voxl-esc tools | "tools bin version: 1.10", Python 3.6.9 |
| UART | `/dev/slpi-uart-2`, 2000000 baud |
| Battery | Tattu R-Line V3 2000 mAh 4S1P 120C |
| Motor | T-Motor F1408 KV2800 (version I), 12N14P (7 pole pairs) |
| Propeller | Gemfan Hurricane 4023, 3-blade |
| Params file | `esc_params_generic_m0134.xml` (voxl-esc 1.6.5 package) with `num_cycles_per_rev` = 7, `vbat_nominal_mv` = 15200, `motor_kv` = 2800, `spinup_type` = 1, `spinup_bemf_comp` = 1, `baud_rate` = 2000000, `kp` = `ki` = 0, `max_rpm_delta` = 2000 |

Only the motor on ESC ID 2 is connected. Props are on, the drone is clamped, PX4 is stopped
(`voxl-esc enable_bridge`).

## 1. Reported voltage does not match the measured voltage

- Multimeter at the battery input of the ESC (and at the power module input): **16.28 V**.
- Cell checker: about 4.10 V per cell (about 16.4 V).
- `./voxl-esc-spin.py --id 255 --power 0` (no motor spinning, current about 0 A), all four ESCs:

  | ESC ID | Reported voltage |
  |---|---|
  | 0 | 19.63 to 19.66 V |
  | 1 | 19.62 to 19.66 V |
  | 2 | 19.62 to 19.66 V |
  | 3 | 19.60 to 19.64 V |

- During the motor tests below the reported voltage stays at 19.62 to 19.66 V from 0.05 A up to
  about 18 A. The pack sags little at this current (120C), so we cannot tell from this alone whether
  the reading follows the real voltage.

Reported / measured = 19.65 / 16.28 = 1.207 (difference 3.37 V). All readings so far were taken at
this one pack voltage, so we cannot yet say whether the error is a constant offset or a scale
(gain) error. We can measure at other supply voltages if that helps (see the end of this report).

Cross-check with PX4 running (`voxl-px4` 1.18.0-1.0.9, ModalAI power module, `POWER_MANAGER=VOXLPM`,
`BAT1_SOURCE` = 0, motors idle): `battery_status.voltage_v` from the power module reads 16.39 to
16.59 V, in line with the multimeter, while `esc_status` reports 19.63 to 19.65 V on all four ESCs at
the same time. So the power module and the multimeter agree, and only the ESC reading is off.

## 2. Calibration (reported voltage used by the script)

`./voxl-esc-calibrate.py --id 2 --pwm-min 10 --pwm-max 95` (no errors, no RPM jumps in the
console). The plotting step was skipped because the `plotly` module is missing on the VOXL. Result:

```
pwm_vs_rpm_curve_a0 = 407.807609363
pwm_vs_rpm_curve_a1 = 0.391442489571
pwm_vs_rpm_curve_a2 = 1.0869043016e-05
```

Selected points from the calibration log (reported voltage about 19.65 V):

| POW (%) | RPM | Current (A) |
|---|---|---|
| 10 | 3838 | 0.06 |
| 31 | 10910 | 1.08 |
| 52 | 16900 | 3.75 |
| 70 | 21620 | 8.05 |
| 94 | 26320 | 15.05 |

`voxl-esc-spin.py --id 2 --power 100 --ramp-time 3.0 --timeout 3.5` reaches about 27700 RPM at
about 18 A. ESC temperature stays between 36 and 40 C in all runs.

## 3. RPM tracking with these coefficients overshoots

The coefficients above were uploaded (`min_rpm` = 3800, `max_rpm` = 25000). Then
`./voxl-esc-spin.py --id 2 --rpm <rpm> --ramp-time 2.0`:

| Commanded RPM | Settled RPM | Error | Applied PWR (%) | PWR expected from the curve at 19.65 V (%) |
|---|---|---|---|---|
| 5000 | about 5590 | +12 % | 15 | 13.4 |
| 10000 | about 10830 | +8 % | 31 | 27.5 |
| 15000 | about 16200 | +8 % | 50 | 44.4 |
| 20000 | about 21800 to 22000 | +9 to 10 % | 72 | 64.0 |

The RPM is steady (no oscillation, no stutter). The applied power is consistently about 12.5 %
higher than the curve predicts at 19.65 V. Dividing the curve voltage by the applied duty gives
about 17.5 V at all four points, so the firmware seems to use an effective voltage of about 17.5 V
for the duty calculation, while the calibration script used the reported 19.65 V.

Three numbers therefore disagree: 19.65 V (reported), about 17.5 V (implied by the runtime duty)
and 16.28 V (measured).

## 4. Workaround: scaling the coefficients by 1/1.125

We multiplied `a0`, `a1`, `a2` by 1/1.125 (a0 = 362.4956527671, a1 = 0.3479488796187,
a2 = 9.661371569777e-06), uploaded, and repeated the tracking test (`kp` = `ki` = 0):

| Commanded RPM | Settled RPM | Error | Applied PWR (%) |
|---|---|---|---|
| 5000 | about 5070 | +1.4 % | 13 |
| 10000 | about 9875 | -1.2 % | 27 |
| 15000 | about 14800 | -1.3 % | 44 |
| 20000 | about 19930 | -0.3 % | 64 |

Tracking is now within about 1.5 % over the whole range with no oscillation. This hides the problem
but does not explain it, and the reported voltage is still about 19.65 V.

## Questions

1. Which voltage does the firmware use to convert the commanded motor voltage to duty cycle, and is
   it the same value that is reported in the telemetry (`VOLTAGE` in `voxl-esc-spin.py`)?
2. Is the voltage scaling for the M0117-1 with firmware 39.26 known to be wrong, or does it depend
   on a hardware revision? Is there a parameter or a recalibration step to fix the voltage
   measurement?
3. Is `voxl-esc-calibrate.py` expected to use the ESC-reported voltage to compute the motor voltage?
   If the reported voltage is wrong by a factor, how should the calibration be done so that
   calibration and runtime agree?
4. Is a scaling factor on the three coefficients an acceptable workaround until this is fixed? We
   currently multiply `a0`, `a1` and `a2` by 1/1.125.
5. Should we use a different firmware version for this board?

## What we can provide, if needed

- Full console logs of the calibration and of the four tracking runs.
- Output of `./voxl-esc-verify-params.py --save-params 1` (`esc0_params.xml` to `esc3_params.xml`).
- The params XML used.
- Measurements with a multimeter during a spin under load, if you need them.
- Reported vs. measured voltage at several supply voltages (for example 12, 14 and 16 V from a bench
  supply, motors not spinning), to tell an offset from a gain error, if you need it.

## Reply by Alex Kushleyev (ModalAI staff) · 2026-11-26 04:27:42 UTC

Hello @k.stute ,

This is odd, however this suggests a HW issue either in 
- the resistor divider used to scale the battery voltage to measurable range
- or the 3.3V regulator used to feed the MCUs
- ground decoupling path

Was the ESC always reading incorrect voltage or something changed? This should not have been caused by a firmware update.

The way the Voltage measurement works on our 4-in-1 ESCs, there is a single resistor divider and the resulting voltage is fed to all 4 MCUs. So the fact that all 4 channels are reporting higher voltage means it's not a single MCU issue, but it does not pin-point the actual problem. 

Regarding your question related to which voltage is used for control.. The measured voltage is, in fact, used for control, but it is capped for safety, in order to avoid really large deviations due to incorrect voltage (or incorrect battery plugged in). The esc parameters specify the nominal voltage, which, in your case is probably 15.5V or so and there is a safety cap around the nominal voltage (about +/- 15% around nominal votlage) that caps the measured voltage, so that the capped voltage is used for any voltage-based compensation in the RPM controller.

There is a VDD test point (labeled) in the bottom left corner of the ESC, right next to the mounting hole, you can check to make sure that voltage is close to 3.3V (within a few %). Also, the resistor divider location is marked below, you can visually check to make sure it's ok (15K and 3K).

If you are able, please double check both. Also, one more check, please make sure the voltage between GND (at the battery input pad) and the GND_FILT pad is minimal (otherwise this could mean the ground de-coupling resistor is bad).

![eda2f2cb-b1ac-4f24-a8af-3f9ce9f0a85a-image.jpeg](https://forum.modalai.com/assets/uploads/files/1795666536278-eda2f2cb-b1ac-4f24-a8af-3f9ce9f0a85a-image.jpeg) 

![20033e92-cca2-4fb4-856f-5a17c7dd6afc-image.jpeg](https://forum.modalai.com/assets/uploads/files/1795666749147-20033e92-cca2-4fb4-856f-5a17c7dd6afc-image.jpeg) 

Alex
