Circuit Wizardry Part U10 · Rev 2026.11

350W Hybrid Square-Wave / Sinusoidal Motor Controller

Render of the 4-layer motor controller

Overview

Hub motors on a skateboard have two jobs that want different drive schemes. Getting a rider moving from a dead stop wants six-step square-wave commutation with Hall sensors, which has torque at zero speed. Cruising wants sinusoidal drive, which is smoother and more efficient once the motor is turning. So this board does both and switches at an RPM threshold. The three-phase stage is run by a dsPIC33CK32MP105 motor-control DSC with Hall feedback, from a 36V pack, with 12V, 5V and 3.3V rails from three switching regulators because the parts I chose don't all want the same voltage. It's 350W per board, two boards for 700W on the skateboard, and it was my first 4-layer board. I designed it in August 2024 after an MIT power electronics course that summer. The hard cutover between modes works and you can feel it. Blending the two is the next revision.

What I learned

  1. Sensorless isn't the better choice at zero RPM. I assumed back-EMF sensing would save me the Hall sensors and three wires. Back-EMF is too weak to read at exactly the speeds where a skateboard needs the most torque, so the sensors stayed and the wiring got longer. The cheap option has to work at the hardest operating point, not the easy one.
  2. One commutation scheme can't cover the whole speed range. Square-wave at speed is choppy; sinusoidal at zero speed has no torque. Switching at a threshold works, and the hard cutover is a jolt you can feel through the deck. A blended handover is what the next board gets.
  3. Parts research was most of the work, not the layout. Every part had to be in stock and new enough not to be phased out in a year, and the ones I landed on wanted three different supply voltages. Three regulators on a small board was the price of not designing around parts that would vanish.
  4. Four layers for a three-phase stage. On two layers the power stage fought the logic for every crossing; dedicated planes made routing it much easier. The cost is trust: an inner-layer fault isn't something I can see or probe, and inner copper is thinner, so those traces run wider.

Technical materials

Project related blog posts