What the course teaches
Brushless motors and ESCs is seven lessons on the Uno, in four chapters:
- Inside a brushless motor: commutation, Kv times volts, packs and motors, and a sketch whose motor model has to match the hardware.
- Talking to an ESC: the servo-style 1000 to 2000 us pulse at 50 Hz, a software arm on top of the ESC's own, signal loss and endpoint calibration.
- Control and safety: a throttle ramp, an expo curve, a kill button, a low-voltage cutoff, and what a LiPo's cell voltage means.
- Boss build: a thrust stand, tared and calibrated, that finds the hover point and sweeps the throttle.
Each chapter ends in a short quiz. Open it from /learn.
The circuits
The first lesson opens the gallery's Brushless motor on an ESC: an A2212
1000KV on a 30 A ESC, a 3S LiPo and a thumb stick. The rest run the
bldcstand sketch on a thrust stand: the ESC on pin 9, an INA219 in the
battery line, an HX711 with a 2 kg cell on pins 3 and 2, and a kill button on
pin 7. Type arm, t 50, stop, float, tare, cal 500, sweep or
pack into the Serial Monitor.
What is simulated and what you set
The motor follows Kv x volts x throttle with a lag, and the ESC arms, times out and ignores pulses outside its range like SimonK and BLHeli firmware. The motor has no propeller and the ESC draws no battery current, so the stand's thrust and current come from a load you set: grams on the load cell, and a power resistor on the battery line beside the ESC. The lessons give the numbers from a real A2212 with a 1045 prop.
Safety
Low voltage only: a 3S LiPo is 12.6 V full, but it can deliver tens of amps into a short. Props off for every code or wiring test, one kill switch within reach, charge LiPos on a balance charger in a fire-safe bag, store them at about 3.85 V a cell, and never use a puffed or damaged pack.
Troubleshooting
- The motor will not start. The ESC needs half a second of 1000 us after
its start-up tones, and the sketch needs
arm. - refused: not armed. Type
arm. A kill or a cutoff disarms on purpose. - The top of the stick does nothing. The ESC's endpoints are narrower than the sketch's. Calibrate one to the other.
- The current reads 3.2 A and stops. That is the INA219 board's limit with its 0.1 ohm shunt.