The controller is the brain of your e-bike. It's also the most-ignored component. Here's everything you need to know.

Every e-bike conversion kit includes a controller, but most riders never think about it. The controller is the brain of your e-bike — it sits between the battery, motor, and your input (throttle, pedals, brakes), and decides how much power to deliver to the motor at any moment. A quality controller makes your e-bike smooth and efficient; a poor controller makes it jerky, inefficient, and prone to failure.

This guide explains what controllers do, the different types, what makes one controller better than another, and how to choose the right one for your build.

What a Controller Does

The controller performs four critical functions:

  1. Power management. The controller takes raw DC power from the battery and converts it into the three-phase AC power that the brushless motor needs. It does this by rapidly switching MOSFETs (transistors) on and off, hundreds of times per second.
  1. Sensor interpretation. The controller reads inputs from your throttle, pedal assist sensor (cadence or torque), brake cutoff sensors, and speed sensor. Based on these inputs, it determines how much power the motor should deliver.
  1. Motor commutation. The controller reads the motor's rotor position (via Hall sensors) and switches the motor phases in the correct sequence to keep the motor turning smoothly. Without proper commutation, the motor would stutter and stall.
  1. Protection. The controller enforces safety limits: low-voltage cutoff (prevents battery over-discharge), over-current protection (prevents motor damage), thermal cutoff (prevents overheating), and speed limiting (legal compliance).

Modern controllers also handle advanced features like regenerative braking (on direct-drive hub motors), cruise control, walk assist, and customizable assist curves.

Controller Types: Sine Wave vs Square Wave

Controllers come in two wave types, which significantly affects ride quality:

Square wave controllers (older, cheaper): Switch the motor phases abruptly on and off. Simpler electronics, lower cost. Downside: noticeable torque ripple (motor vibration), more noise, less efficient. Most budget hub kits use square wave controllers.

Sine wave controllers (modern, premium): Switch the motor phases in a smooth sinusoidal pattern. More complex electronics, higher cost. Benefits: smoother power delivery, quieter motor operation, slightly more efficient. Most quality mid-drive kits (BAFANG BBS02/BBSHD, Tongsheng) and higher-end hub kits use sine wave controllers.

The difference is noticeable. If you've ever ridden two e-bikes and one felt smooth while the other felt jerky at low speed, the smooth one had a sine wave controller.

All BAFANG BBS02/BBSHD controllers are sine wave. All Tongsheng controllers are sine wave. Most BAFANG hub kits are sine wave. Budget hub kits (Voilamart, AW) are typically square wave.

If you're choosing between two similar kits and one has sine wave while the other has square wave, get the sine wave. The ride quality difference is worth any small price premium.

Programmable vs Fixed Controllers

Controllers come in two flavors: programmable and fixed.

Programmable controllers (BAFANG BBS02/BBSHD): Connect to a computer via USB and use BafangConfigTool software to customize every parameter. You can change assist levels, throttle response, speed limits, current limits, and dozens of other settings. This is one of BAFANG's biggest advantages — you can tune the motor to your exact preferences.

Fixed controllers (most hub kits, Tongsheng TSDZ2/TSDZ8): Not user-programmable. The controller's behavior is fixed at the factory. You can change assist levels and basic settings via the display, but you can't customize the underlying controller parameters.

For most riders, fixed controllers are fine — the factory settings are usually reasonable. But for tinkerers and modifiers, BAFANG's programmability is a major advantage. You can tune a BBS02 to deliver exactly the power curve you want, from gentle commuter to aggressive off-road.

Open-source firmware projects (like BafangConfigTool and TSDZ2 OSF) take programmability further, replacing the factory firmware entirely with custom code that unlocks additional features.

Controller Specs That Matter

When comparing controllers, these specs actually matter:

  1. Max current (amps). Determines peak power output. A 30A controller on a 48V battery can deliver 1,440W peak. Higher amps = more peak power but also more heat and faster battery drain. Match to your motor's rating.
  1. MOSFET quality and quantity. MOSFETs are the switching transistors. Quality MOSFETs (Infineon, IR) handle more current with less heat. More MOSFETs (6 vs 12) means better heat dissipation and higher reliability.
  1. Voltage rating. Must match your battery voltage. A 48V controller won't work with a 52V battery (and vice versa, though some 48V controllers handle 52V fine).
  1. Commutation type. Sine wave (preferred) vs square wave (budget).
  1. Programmability. Programmable (BAFANG) vs fixed (most others).
  1. Thermal management. Better controllers have aluminum cases with thermal paste between the MOSFETs and case. Cheap controllers have minimal thermal management and fail under sustained load.
  1. Connector quality. Better controllers use waterproof JST or Higo connectors. Cheap controllers use generic plastic connectors that corrode.
  1. Hall sensor support. All modern brushless controllers use Hall sensors for commutation. Sensorless controllers exist but are jerky at low speed — avoid them for e-bikes.

Controller Failure Modes

Controllers fail in predictable ways. Knowing the failure modes helps you diagnose and repair:

  1. MOSFET failure. The most common controller failure. A MOSFET shorts or opens, causing the motor to stop, run rough, or run away (full power with no control). Often caused by overheating or voltage spikes. Replace the controller — individual MOSFET repair is rarely worth the effort.
  1. Capacitor failure. Electrolytic capacitors dry out over time (5-10 years). Symptoms: unstable voltage, motor stuttering, display flickering. Sometimes repairable by replacing capacitors; usually requires controller replacement.
  1. Connector failure. Vibration and moisture corrode connectors. Symptoms: intermittent operation, motor cutting out. Clean with electrical contact cleaner and apply dielectric grease.
  1. Water damage. Controllers are not waterproof. Water inside the case causes immediate failure. Mount the controller in a protected location and apply dielectric grease to all connectors.
  1. Thermal shutdown. Sustained high-power operation can overheat the controller, triggering thermal protection. The motor will cut out until the controller cools. If this happens regularly, you need a higher-rated controller.
  1. Firmware corruption. Rare but possible. The controller stops responding correctly. Sometimes fixable by reflashing firmware; usually requires replacement.

Controller lifespan is typically 3-7 years with normal use. Quality controllers (BAFANG, KT) last longer; cheap generic controllers fail faster.

How to Choose a Controller

When buying a kit or replacing a controller, follow this decision process:

  1. Match voltage. 48V controller for 48V battery, 52V for 52V. Mismatching damages the controller and possibly the battery.
  1. Match current rating. Controller max current should be at least 1.2x your motor's peak current draw. A 750W motor on 48V draws 20A peak — use a 30A controller minimum. A 1000W motor draws 25A — use a 35A controller.
  1. Choose sine wave if possible. Sine wave controllers are smoother and quieter. Worth the small price premium.
  1. Prefer programmable. If you might want to tune your motor's behavior, get a programmable controller (BAFANG). Otherwise, fixed is fine.
  1. Check the case quality. Aluminum case with cooling fins is essential for any motor over 500W. Plastic cases overheat.
  1. Verify connector compatibility. If you're replacing a controller, match the connectors to your existing motor and display. Otherwise you'll need to splice wires.

Most riders never need to choose a controller — they get whatever comes with their kit. But if you're replacing a failed controller or upgrading, these guidelines will help you pick the right one.

Aftermarket Controllers: Worth It?

Some riders replace their stock controllers with aftermarket alternatives (KT, Phaserunner, Sabvoton). Is it worth it?

Pros of aftermarket controllers:
- More programmability (especially Phaserunner)
- Higher current ratings for power-hungry builds
- Better thermal management
- Field-oriented control (FOC) for smoother power delivery

Cons:
- Cost: $80-300+ vs $0 (stock)
- Complexity: requires rewiring, programming, tuning
- Warranty voiding
- Not always better than stock

For 95% of riders, the stock controller that comes with your kit is fine. The BAFANG BBS02 controller is excellent and fully programmable — there's no reason to replace it.

The 5% who benefit from aftermarket controllers are: ultra-high-power builders (1500W+), regenerative braking enthusiasts (requires compatible controller and direct-drive hub motor), and ride-feel obsessives who want FOC control.

If you're new to e-bikes, don't worry about controllers. Use what comes with your kit. If you eventually want more control, the BAFANG's programmable stock controller is more than enough.