BLDC motors and ESCs
UAT 203 Electrical and Electronic Systems for UAS
Lesson
By the end of this module you will be able to
- Explain how a BLDC motor works and the six-step commutation of a sensorless ESC
- Convert KV to a torque constant and calculate speed, torque and efficiency with a simple model
- Explain PWM and DShot protocols and the benefits of ESC telemetry
- Choose an ESC and firmware to suit the motor and flight controller
- Wire UART, I2C and CAN devices with the right voltage levels and cable lengths, and check CAN termination with a multimeter
Why this matters
Almost every drone motor is a brushless DC (BLDC) motor, which cannot turn by itself: an ESC (electronic speed controller) must switch current into the windings at exactly the right moments thousands of times a second. Choose too small an ESC and it overheats and cuts out in flight; choose a motor KV that does not suit the voltage and propeller and the motor draws too much current or gives too little thrust.
BLDC motors and ESCs
A BLDC motor has permanent magnets on the rotating part and three-phase windings on the stationary part. The ESC energises the windings one pair at a time in six steps per electrical revolution, so the magnetic field rotates and pulls the magnets along.
The ESC must know where the magnets are to switch at the right moments. Most drone ESCs have no position sensor; instead they use the floating phase in each step to measure the back-EMF the spinning motor generates, as described in Microchip application note AN1175. The catch is that there is almost no back-EMF at start-up, so the ESC needs a special start routine.
KV and the torque constant
KV is the no-load speed per volt (rpm/V): a 400 KV motor at 22.2 V spins at about 8,880 rpm without load. KV relates to the torque constant (torque per amp); following maxon’s documentation, with KV in rpm/V and in N·m/A. A low-KV motor therefore gives more torque per amp, suiting large propellers.
KV alone does not tell you thrust, which depends on the propeller, speed and current at that voltage (module 4).
Example 1 A 400 KV motor at 22.2 V
A simple model: winding resistance 0.08 Ω, no-load current 0.8 A (assumed values; real values come from the manufacturer’s datasheet).
import math
kv, volts, r_winding, i_noload = 400, 22.2, 0.08, 0.8
kt = 60 / (2 * math.pi * kv)
print(f"Kt = {kt * 1000:.2f} mN·m/A; no-load speed ≈ {kv * volts:.0f} rpm")
for amps in (10, 20, 30):
rpm = kv * (volts - amps * r_winding)
torque = kt * (amps - i_noload)
p_mech = torque * rpm * 2 * math.pi / 60
p_elec = volts * amps
print(f"{amps:>2} A: {rpm:.0f} rpm, {torque:.3f} N·m, {p_mech:.0f} W out of {p_elec:.0f} W in, "
f"efficiency {p_mech / p_elec:.0%}")
Kt = 23.87 mN·m/A; no-load speed ≈ 8880 rpm
10 A: 8560 rpm, 0.220 N·m, 197 W out of 222 W in, efficiency 89%
20 A: 8240 rpm, 0.458 N·m, 396 W out of 444 W in, efficiency 89%
30 A: 7920 rpm, 0.697 N·m, 578 W out of 666 W in, efficiency 87%
The higher the current, the larger the voltage drop in the windings, so speed falls, and heating lowers efficiency at high current. The model omits iron and ESC losses, so real values are lower.
Commands and feedback
- Classic PWM commands with pulse width and requires range calibration
- DShot sends digital commands with no calibration, at DShot150, 300, 600 and 1200. ArduPilot recommends DShot600 for most vehicles, and DShot150 for large aircraft with long signal leads
- Bidirectional DShot returns motor speed on the same wire, usable for rpm-based noise filtering
- Separate-wire ESC telemetry reports speed, voltage, current and temperature, useful for spotting a misbehaving motor (used for diagnosis in UAT 303 module 3)
Widely used open ESC firmware includes AM32 (GPL-3.0, for STM32 and other chips) and Bluejay (derived from BLHeli_S); both support bidirectional DShot, although ArduPilot’s DShot page lists bidirectional DShot only for BLHeli32 and AM32 ESCs, so confirm that a Bluejay ESC works with your ArduPilot version before relying on it. BLHeli_32 was reported discontinued in 2024.
Other signal interfaces: UART, I2C and CAN
ESC commands are only one of the flight controller’s links. The GNSS receiver and compass, the telemetry radio, the RC receiver, a companion computer and, on larger drones, CAN ESCs and power monitors all connect through a few serial interfaces. This course looks at them from the electrical side: which wires they use, what voltage levels they expect, how long the cable may be and how to check the wiring. The protocols themselves (frames, baud rate, addresses, checksums) are taught in UAT 204 module 4.
On Pixhawk-type flight controllers each port is a small 6-pin connector. ArduPilot’s Pixhawk overview lists pin 1 of the TELEM and GPS ports as a +5 V supply for the device and the signal pins (TX, RX, CTS, RTS, and the CAN2 pins on the GPS port) at +3.3 V logic. Two things follow: devices powered from these pins belong in the 5 V power budget of module 1, and a device whose signals swing to 5 V, or an RS-232 device with even higher voltages, must not be wired straight to a 3.3 V input.
| Interface | Wires (besides ground) | Electrical character | Typical drone use |
|---|---|---|---|
| UART | TX, RX (optional RTS, CTS) | one device per port, single-ended 3.3 V signals, TX of one side to RX of the other | GNSS, telemetry radio, companion computer |
| I2C | SDA, SCL | shared bus, open-drain lines pulled up by resistors, meant for short runs | external compass, some barometers and LEDs |
| CAN | CANH, CANL | shared differential bus on a twisted pair, terminated at both ends | DroneCAN GNSS, ESCs, power monitors |
- UART: each direction has its own wire and there is no clock wire, so both ends must use the same speed, and the ground must be common. It is point to point: one port, one device
- I2C: the NXP specification (UM10204) uses two lines that devices can only pull low; pull-up resistors bring them back high. Every metre of cable adds capacitance, and the specification limits the total bus capacitance to 400 pF, so a long I2C lead up a GNSS mast slows the signal edges until the bus fails. Keep I2C leads short and away from motor wires
- CAN: the signal is the difference between CANH and CANL, so noise induced equally on both wires cancels. TI’s introduction to CAN (SLOA101B), summarising ISO 11898, gives a maximum of 1 Mbit/s over 40 m, a 120 Ω twisted-pair cable, a 120 Ω terminating resistor at each end of the line, and unterminated branches (stubs) no longer than 0.3 m. ArduPilot’s CAN page also describes 120 Ω twisted pair and notes that most autopilots have one or two CAN ports
Example 2 Checking CAN termination with a multimeter
With the battery disconnected, measure the resistance between CANH and CANL at any connector on the bus. The two terminators appear in parallel, so each wiring fault gives its own reading.
def parallel(*r):
return 1 / sum(1 / x for x in r)
cases = {
"both ends terminated": [120, 120],
"one terminator missing": [120],
"extra terminator on a middle node": [120, 120, 120],
}
for label, resistors in cases.items():
print(f"{label:<34} CANH-CANL reads {parallel(*resistors):5.1f} Ω")
both ends terminated CANH-CANL reads 60.0 Ω
one terminator missing CANH-CANL reads 120.0 Ω
extra terminator on a middle node CANH-CANL reads 40.0 Ω
A reading near 60 Ω is correct. About 120 Ω means one end is not terminated, so signals reflect from the open end and communication errors come and go, and can get worse in flight when vibration and motor noise are added. About 40 Ω means a device in the middle of the bus also has a terminator. TI’s note adds that ISO 11898 advises against building the terminator into a node, because unplugging that node would leave the bus unterminated, so read each device’s manual to find out whether it has one. This two-minute check belongs in the electrical inspection of module 5.
Module lab
Lab: testing motors and ESCs on a test stand
- Read the training motor’s datasheet, noting KV, winding resistance, no-load current and maximum current, and calculate .
- With the propeller removed, clamp the motor to the test stand and, using a current-limited supply and tachometer, measure no-load speed at two voltages, comparing with KV.
- Set the ESC to DShot600 in ArduPilot, enable bidirectional DShot (if supported) and view rpm in telemetry.
- Under the instructor’s supervision, fit a propeller on a caged thrust stand and measure thrust, current and speed at several throttle settings.
- Use the code in Example 1 with the training motor’s real values, comparing calculated and measured efficiency.
Common mistakes
Watch out
- Using KV to predict thrust without looking at the propeller and test data
- Choosing an ESC rated exactly at maximum current without margin and cooling
- Using DShot with an unsupported ESC, or signal leads too long for high speeds
- Bench-testing motors with propellers fitted outside a caged stand
- Forgetting that a simple model omits many losses
- Wiring a 5 V or RS-232 device straight to a 3.3 V port, running I2C up a long mast lead, or leaving a CAN bus with one terminator or three
Summary
- A BLDC motor needs an ESC switching its windings in six steps; sensorless ESCs find position from back-EMF
- KV is no-load rpm per volt, and
- Speed falls and heating rises at high current
- ArduPilot recommends DShot600, telemetry helps monitor motors, and open firmware includes AM32 and Bluejay
- Flight-controller ports supply 5 V but signal at 3.3 V; UART is point to point, I2C is for short runs, and CAN is a terminated twisted pair that should read about 60 Ω between CANH and CANL
Check your understanding
- With the battery disconnected you measure 120 Ω between CANH and CANL. What is wrong?
- What is the torque constant of a 500 KV motor (mN·m/A)?
- With N·m/A, 15 A and 1 A no-load current, what is the torque?
- How does a sensorless ESC know where the magnets are?
- Which DShot speed does ArduPilot recommend for most vehicles?
Answers
- Only one terminator is present; a correctly terminated bus reads about , so fit or enable the terminator at the other end of the bus
- N·m/A, or 19.1 mN·m/A
- N·m
- By measuring back-EMF on the floating phase in each step
- DShot600
Key formulas
| Torque constant from KV | |
| Speed from remaining voltage | |
| Torque and mechanical power | |
| CAN bus with two terminators |
Key references
- maxon. Key information on maxon DC motor and maxon EC motor (speed constant and torque constant). link
- Microchip Technology. Sensorless brushless DC motor control with PIC16 (AN1175, DS00001175B). link
- ArduPilot Dev Team. DShot and bi-directional DShot. ArduPilot Copter documentation. link
- ArduPilot Dev Team. ESC telemetry. ArduPilot Copter documentation. link
- AM32 contributors. AM32 ESC firmware. link
- Bluejay contributors. Bluejay ESC firmware. link
- Quan, Q. (2017). Introduction to multicopter design and control. Springer Singapore. link
- ArduPilot Dev Team. Pixhawk overview (connector pin assignments). ArduPilot Copter documentation. link
- NXP Semiconductors. (2021). I2C-bus specification and user manual (UM10204, Rev. 7.0). link
- Corrigan, S. (2016). Introduction to the controller area network (CAN) (Application Report SLOA101B). Texas Instruments. link
- ArduPilot Dev Team. CAN bus setup. ArduPilot Copter documentation. link
Further reading
Study the assigned knowledge units in advance, review media and take the module quiz
In class / field
Lab or field practice from worksheets with a safety checklist
Learning evidence: Checked worksheets and quiz results