A motor that jerks, stutters, or refuses to spin after you fit a replacement controller or a replacement motor is one of the most common problems in e-bike repair, and one of the most misdiagnosed. The parts are usually fine. What is wrong is the order the wires are joined in.
Here is where that goes wrong, and the sequence that gets you to the right combination without cooking anything along the way.
What comes out of a hub motor
A standard hub motor leaves eight conductors, sometimes nine:
- Three thick wires are the phase wires — yellow, green and blue. They carry the three-phase drive current that actually turns the wheel.
- Five thin wires are the hall sensor group: red is +5V, black is ground, and yellow, green and blue carry the Hall A, B and C position signals.
- A ninth wire, where it exists, is a temperature sensor.
The first attempt is always colour to colour: yellow phase to yellow phase, green to green, blue to blue, and the same again for the hall signals. Phase and hall are paired by colour on purpose. If your parts came with matching plugs and the bike rides normally, you are finished and there is nothing else to do. Which colour does what is covered in our guide to controller wiring colour codes.
Where the number 36 comes from
When the plugs do not match and you are joining wire to wire, the arithmetic turns against you quickly. Three phase wires can be arranged six ways. Three hall signal wires can also be arranged six ways. Six times six is 36 possible combinations, and only one or two of them run the motor properly.
That is why swapping wires at random almost never lands on the answer. The combinations have to be worked through in an order.
Let the symptom tell you where you are
Every combination you try reports back. Read it before touching anything else:
- Smooth, turning the right way — this is the correct combination. Stop testing.
- Smooth but running backwards — you are one step away. Swap any two phase wires and it is done.
- Shuddering, stuttering, or a knocking sound — commutation is out of order. The controller is energising the coils in the wrong sequence.
- Nothing at all, or the wheel locks up — the controller cannot start the motor from this combination.
- Unusually high no-load current, or heat building up — cut the power immediately. Pushing on from here damages both the motor and the controller.
The order to work through
- Join everything colour to colour, then power up and test gently off the ground.
- Smooth and forward: you are done.
- Smooth but reversed: swap any two phase wires. Done.
- Shuddering or dead: leave the phase wires alone and work through all six arrangements of the three hall signal wires, testing each one.
- Still wrong after all six: put the hall wires back as they were, change to a different phase arrangement, then run those six hall arrangements again.
- You have the right combination when the wheel turns quietly and smoothly, draws the lowest no-load current of everything you tried, and has no notchiness or drag.
That last point matters: more than one combination can look acceptable at a glance, and the no-load current separates the correct one from a near miss that will run hot.
Power down before every single change. Switch off, take the battery out, wait thirty seconds. Unplugging phase wires with the system live arcs across the contacts and destroys controller MOSFETs, which turns a wiring exercise into a parts purchase.
When the wiring order is not the problem
Some faults look like a bad combination and are not:
- Fine at speed, notchy from a standstill — the hall sensors have failed and the controller has fallen back to sensorless operation. No rearrangement fixes that. It needs a new motor, or a controller that runs sensorless properly.
- Strong but stuttering, with noise — either a failed hall sensor or a wrong combination. Work the sequence above first, because it costs nothing but time.
- The motor lurches on its own with no throttle input — stop there. Take the battery out and leave it out. That symptom points at a damaged controller, a hall fault, or a throttle sending a false signal, and the bike is not safe to ride until it is found.
Sensorless mode is worth knowing about: some controllers will drive a motor on the three phase wires alone. Starts are notchy and low-speed pull is weak, but it is a real option when the hall sensors are dead.
Before you order anything
Photograph the motor output plug and count the conductors. Eight or nine tells you whether hall sensors are there at all, and that decides which controllers can drive it. If damp rather than wiring order is your suspicion, the connector is worth inspecting first. Buying a motor already laced into a wheel skips the wheel-building step, which we compare in motor wheel versus bare hub motor. And a matched controller, display and motor set avoids the 36-combination problem altogether, because the plugs only go together one way.