The controller is the box that turns a battery into motion, and it is the component converters understand least. It is also the one most likely to surprise you, because a controller that is set up wrong does not just perform badly. It can decide the car should accelerate when you did not ask it to.
I run a permanent magnet motor on my coupe, and I spent more evenings with a laptop plugged into the controller than I did fabricating the adapter plate. This is what I wish someone had told me before the first power up.
What the controller actually does
A brushless DC motor has permanent magnets on the rotor and three sets of windings on the stator. There are no brushes and no commutator, so something has to switch current through the windings in the right sequence as the rotor turns. That something is the controller. It takes DC from the pack and, using banks of transistors switching thousands of times a second, builds three phase currents whose timing follows the rotor position.
To do that it has to know where the rotor is. Most hobby grade motors use three hall effect sensors in the motor housing. Larger motors often use an encoder or a resolver, which gives a finer reading. Some controllers can run sensorless by reading the back voltage of the windings, but that tends to be rough at very low speed, which is exactly where a car needs smooth torque to pull away.
There are two broad ways of driving the windings. Trapezoidal or six step control switches the phases in blocks, which is simple and cheap but produces noticeable torque ripple and a characteristic whine. Sinusoidal control, and its more sophisticated form called field oriented control, shapes the currents smoothly according to rotor angle. The vector control article explains the maths if you want it. In the car, field oriented control means smoother take off, quieter running, and usually better efficiency. You will see the motors themselves sold as BLDC or as PMSM. They are close relatives, and what matters for you is that the controller supports the sensor type and control method your motor was designed for.
Reading a controller specification
The voltage rating comes first and it is not negotiable. The controller’s absolute maximum input must be above your pack voltage at full charge plus whatever regen adds on top. Controllers built with MOSFETs are common up to around the 150 V class. Higher voltage units usually use IGBTs or silicon carbide devices and cost considerably more.
The current rating is where people get confused, because there are two currents. Battery current is what flows from the pack. Phase current is what flows in the motor windings. At low speed the motor’s back voltage is small, so the controller chops the pack voltage down to a fraction of itself and, because power in roughly equals power out, phase current can be several times higher than battery current. Torque follows phase current. A controller with a 500 A phase rating on a 100 V pack might only be drawing 150 A from the battery while pulling hard away from a junction.
Check the duration attached to every peak figure. A rating quoted for ten seconds is not a continuous rating, and the continuous figure is often much lower. Check the cooling, too. Many controllers rated for serious power need a liquid cooled plate or a substantial heatsink with forced air, and they will derate themselves, or shut down, when they get hot.
Inputs, wiring and setup
A controller in a car needs more than power cables. Typical connections include:
- A throttle input, usually a hall effect pedal giving something like 0.8 to 4.2 V across its travel.
- A key switch or enable signal, often via the 12 V system.
- Direction selection, forward, neutral and reverse.
- A brake or regen input.
- Motor temperature, from a sensor embedded in the windings.
- CAN bus, so the BMS can reduce current limits when cells are cold, hot, full or nearly empty.
Use a throttle with two independent tracks if you can, and enable the controller’s plausibility check so that if the two signals disagree or one goes out of range, torque drops to zero. A single track pedal with a broken ground wire can read as full throttle on some setups. Think about that for a moment.
Keep the signal wiring away from the phase cables. The phase leads carry fast switching edges at hundreds of amps and will induce noise into anything running alongside them. Twisted pairs for hall sensor and throttle wiring, shielded where the manufacturer asks for it, and separate routing paths make a real difference to how smoothly the car drives.
Setup is mostly done in software. You enter the motor’s pole pairs and sensor type, run the auto detection routine for hall angle or resolver offset, set battery and phase current limits, ramp rates and regen strength. Start with conservative limits, perhaps half of what you eventually want, and raise them in steps while watching temperatures. Do the first runs with the motor disconnected from the gearbox, bolted firmly to a bench or in the car with the coupler removed. Driven wheels spinning on axle stands in gear are a hazard I would rather you did not test.
Failure modes and the stop button
Every controller can fail, and the failure modes are what should shape your wiring. A shorted output transistor can short a motor phase, which on a permanent magnet motor produces heavy drag torque and can lock the driven wheels at speed. A software or sensor fault can produce unwanted torque. You need a way to remove traction power that does not depend on the controller behaving itself.
In practice that means the main contactor is driven through a circuit that the driver can break directly, with an emergency stop switch within easy reach that cuts the contactor coil, not just the controller’s enable input. The BMS should be able to open the same contactor. Test it at low speed in an empty space before you ever take the car on the road, so you know exactly what the car does when it suddenly loses drive.
Respect the capacitors. Controllers have large DC link capacitors that hold charge after the pack is disconnected. Even after the contactor opens, those terminals can sit at full pack voltage for some time. Before opening a controller or touching its terminals, isolate the pack, wait for the time the manufacturer specifies, and then measure across the DC terminals with a rated meter to confirm they are discharged. Above 60 V this is a lethal hazard, and the work belongs to someone with high voltage training and the right protective equipment.
Last of all, do not open the controller to repair it unless you are qualified to. A controller is a sealed high power electronic unit, and its warranty and its safety both assume it stays sealed. If it fails, send it back or replace it. The motor will still be there when the new one arrives.