Wiring a 36V Ebike Controller Without Losing Your Mind
Most people mess this up because they don't read the manual that comes with the controller, or they assume all controllers wire the same way. They don't. I've seen three controllers from the same AliExpress listing that had completely different color codes. Before you cut anything, find out what you're actually working with. The thick red and thick black wires going to the battery are your power leads. The three thick phase wires (usually yellow, green, blue) go to the motor. Everything else is signal stuff.
36v Ebike Controller Wiring Diagram
Here's what you need to connect: Power Input: Thick red to battery positive (+), thick black to battery negative (-). Some controllers have a thinner red wire labeled "B+" or "BAT+" — that's for the battery temperature sensor if your system has one. Don't connect it unless you have a temp sensor. Motor Phase Wires: Yellow, green, and blue go to the corresponding motor wires. If the motor runs backward or hesitates, swap any two of them. Doesn't matter which pair. That's how brushless DC motors work.
Throttle: Most 36V systems use a 3-wire Hall-effect throttle. Red to positive, black to negative, yellow (or white/green) is the signal wire. Voltage on the signal should read somewhere between 0.8V and 4.2V when you twist it. If it's hitting the rails at 5V or sitting at 0V no matter what, the throttle is dead. Brake Cutoff: This is usually a pair of thin wires. They can be normally open or normally closed depending on the controller. Most inexpensive controllers expect a ground signal — meaning when you pull the brake lever, it shorts the signal wire to ground and cuts power. If your brake sensor doesn't work after wiring, try flipping the polarity. It's a guess-and-check thing that drives people crazy. Hall Sensors: If your motor has a 5-wire Hall connector, plug that in too. The controller needs them for commutation. Without them, the motor will stutter or run hot. Some controllers have auto-learning for Hall sensors, but most cheap ones don't. Double-check your connections before assuming the controller is broken.
Get the Full Details

Controller Learning Wire: Some controllers come with a white and white/black wire pair. Connecting them together while powering up forces the controller to learn the motor's electrical timing. I've used this workaround when the Hall sensor wiring was wrong and the motor wouldn't run smoothly. You connect the learning wires, power on, let it cycle for a few seconds, then disconnect. Works about 80% of the time.
What the Manual Won't Tell You
The voltage range on a "36V controller" is almost never exactly 36V. A 36V system with a nominal 36V lithium pack actually sits between about 29V (empty) and 42V (full). The controller needs to handle that full range. Check the label. If it says 36V/48V dual-voltage, you're fine running 36V. If it says only 36V and you somehow feed it 48V, it will fry. Happens more often than you'd think because people grab controllers off surplus and don't verify. Another thing nobody mentions: the current rating. A 36V 250W controller is rated for about 13 amps continuous. A 36V 500W controller handles roughly 25 amps. If you're pushing more than the controller's rated current, it'll thermal throttle or fail. I had a customer who put a 36V 250W controller on a 500W motor and wondered why it kept shutting down on hills. The motor wasn't the problem. The controller was. The display wiring varies wildly between brands. Bafang displays use a specific protocol. Tongsheng uses something different. LCD displays from different manufacturers often won't talk to each other even if they both say "36V compatible." Buy the display that was intended for your controller or get one that supports multiple protocols. The cheap displays that claim universal compatibility usually support maybe six or seven common types and miss the obscure ones entirely.
The Wire Gauge Question
Use at least 14 AWG for the main power leads on a 250W system, 12 AWG for 500W and above. I don't care what some forum post tells you — thin wires on high-current ebike circuits cause voltage drop, heat, and intermittent failures that are a nightmare to diagnose. The connectors alone are worth doing right. Anderson SRB or XT60/XT90 connectors if you can manage them. Crimp, don't solder, for the main power connections. Soldered joints under vibration will fatigue and crack within months. I've pulled apart controllers where the failure was a cracked solder joint on the main power trace inside the board. The wires looked fine from the outside. The internal connection was gone. You can avoid this by using proper crimps and not stressing the wires mechanically during installation.
Troubleshooting After Installation
If nothing happens when you turn the key, check the fuse first. There's almost certainly one inline on the thick red power wire. A blown fuse means something is drawing excess current — either a short somewhere or a failing motor. Replace the fuse with one of the same amperage. Don't jumper it. I've seen people do that and then wonder why the controller smoked three weeks later. If the motor runs but jerks, the Hall sensors are likely miswired or one is bad. Trace each wire from the motor Hall connector to the controller connector. Verify pin-to-pin continuity with a multimeter. A single open or crossed Hall wire will cause exactly this symptom. If the throttle doesn't respond, measure the voltage on the signal wire while twisting. It should sweep smoothly from roughly 0.8V to 4.2V. Any dead spots or sudden jumps mean a bad contact inside the throttle body. Those are usually not worth repairing. Replacement throtles are cheap enough that swapping it out is faster than tracing a broken wire inside the grip.
When to Walk Away
If you're working with a no-name controller that has zero labeling, no manual, and all the wires are the same color, just walk away. I've dealt with enough of these to know the frustration isn't worth it. These controllers are often remanufactured or knockoff units where the wiring is inconsistent between batches. You'll spend more time identifying wires than you would just buying a controller with actual documentation. A decent quality controller from a known brand like Bafang, Tongsheng, or even a reputable Chinese manufacturer like Kingong will cost more upfront but save you hours of guessing. The wiring diagrams are available. The connectors match. The voltage and current ratings are accurate. For a one-off project that's fine. For something you actually want to ride regularly, spend the extra money.