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. Often the parts are fine and what is wrong is the order the wires are joined in. But a broken wire, a bad pin or a failed Hall sensor can look the same, so this guide also covers when the wiring order is not the problem.
Here is how the combinations work, what to fix in place before you swap anything, and the sequence that gets you to the right combination without cooking anything along the way.
What comes out of a hub motor
A hub motor with Hall sensors usually has eight wires, sometimes nine or more:
- Three thick wires are the phase wires. They carry the three-phase drive current that actually turns the wheel. Yellow, green and blue are common colours, but not a rule.
- Five thin wires are the Hall sensor group: a +5 V supply, a ground, and the three Hall position signals. On many motors these are red, black, and yellow, green and blue.
- Any extra thin wire usually carries a temperature or speed signal.
Colours are each maker's choice, not a standard. Confirm what each wire does with a meter or the wiring diagrams for both parts; our guide to controller wiring colour codes shows the common schemes.
Before you swap anything
Check your controller's manual first. Some controllers find the combination themselves, with a pair of self-learning wires, a display setting, or an autotune routine in their setup software. If yours does, use that instead of swapping wires by hand; see what each self-learning result tells you. If your motor and controller came as a matched kit with plugs that only go together one way, and the bike rides normally, there is nothing to do.
Fix the supply wires first, and never move them. If you are joining wire to wire, connect +5 V to +5 V and ground to ground, confirmed by function, and do the same for any speed or temperature wire. Check them with a meter before you power anything up: reversing +5 V and ground can destroy the Hall sensors. These wires take no part in the swapping. Only the three phase wires and the three Hall signal wires are ever rearranged.
Use colours only where both parts are known to agree. Grin Technologies' Grinfineon controller manual, for example, says its controller matches eZee and Crystalyte motors yellow to yellow, green to green and blue to blue, and that other motor brands read the colours differently and usually need some trial and error. Colour to colour is a reasonable first try when you know both sides use the same scheme. It is not proof that the order is right.
Where the number 36 comes from
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. According to Grin's manual, only three of them spin the motor properly forward, three more spin it backward, and the other 30 either do not turn the motor or turn it with great inefficiency.
That is why swapping wires at random rarely 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, low no-load current — very likely the right combination. Confirm it with the current check below before you ride.
- Smooth but running backwards — close, but not finished. With the Hall sensors connected, swapping two phase wires does not simply reverse the motor; it breaks the combination. Use the reverse step in the order below. Swapping any two phase wires is how you reverse a motor that runs sensorless, with the Hall plug disconnected.
- 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.
- Turns, but with a kick when you first touch the throttle and more current than normal — a wrong combination that still spins. Do not ride on it.
- 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
This is the systematic method from Grin's controller manual. Do every test with the wheel off the ground and at low throttle.
- With +5 V, ground and any extra signal wire already fixed, join the three Hall signal wires in any order and leave them there.
- Connect the three phase wires and test gently. If the motor runs smoothly with low current draw, go to step 4 to check which way it turns.
- If not, work through the other phase arrangements, testing each one. Rotate the three phase wires one position at a time (A-B-C becomes B-C-A, then C-A-B); then swap any two of them and rotate through three positions again. That covers all six phase arrangements, and one of them should run the motor smoothly.
- Check the direction of the smooth arrangement. If it turns the wheel forward, go to step 5. If it runs backwards, you are not finished: swap a pair of Hall signal wires and repeat the six phase arrangements until one runs the motor smoothly forward, then go to step 5.
- You have the right combination only when the wheel turns forward, quietly and smoothly, draws the lowest no-load current of everything you tried, and has no notchiness, drag or kick at the start. A smooth, low-current combination that runs backwards is not finished; go back to step 4.
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 can arc across the contacts and damage the controller's 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 — often a sign that the controller is missing a Hall signal and has fallen back to sensorless running. The cause can be a sensor, a broken wire or a bad pin, and no rearrangement fixes any of them. Test the Hall signals before you decide; if a sensor really has failed, the options are replacing it, a controller that runs sensorless properly, or a new motor.
- Strong but stuttering, with noise — either a Hall fault or a wrong combination. If the wiring was changed recently, 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 sold to work together avoids most of this, because the plugs only go together one way.
The 36-combination arithmetic and the search order follow Grin Technologies' Grinfineon controller manual (Rev 2.2). Where your own controller's manual disagrees, follow your manual.