Leoguar Ebikes

How to Read an Electric Bike Wiring Diagram?

At first, when you open the electric bike conversion kit, the wires, plugs, and small parts may seem overwhelming, and it's often unclear where each item should be connected.

A wiring diagram of your electric bike will show the way the main components are connected; these typically consist of the battery, the controller, the hub motor, the throttle, the brake levers, the display, and the pedal assist sensor.

Begin by examining the way the wiring is arranged. Then find out the function of each of the main wires and what the colors signify. You will also discover where the controller connects and what you should check should the equipment not be working.

Before you begin, read the manual included with your kit; wire cores and plugs may vary by brand, so use this guide only as a general reference, nd nos a substitute for the instructions that come with your product.

Safety Tools

Before you begin working on the wires, make sure you have looked over these basic safety rules since they will help to protect both you and your components from damage and will give your do-it-yourself project a more professional appearance.

Safety Is Inflexible

You should handle your electric bike battery with care since it holds a large amount of energy. When working on the wiring, you must connect the battery last and disconnect it first. Safety glasses should be worn because short circuits can cause sparks.

Your E-Bike Wiring Toolkit

The correct tools will enable you to carry out your work in a neater, quicker, and more reliable manner; you won't need a large workshop—just a few simple tools will be enough.

Tool Why You Need It
Wire Strippers/Cutters For making clean cuts and getting wire ends ready for connection.
Multimeter The most important tool for finding wires and testing connections.
Zip Ties Essential for neat, secure cable management that stops snags and damage.
Heat Shrink Tubing The professional way to protect your connections from water and strain.
Heat Gun or Lighter To shrink the tubing, making a sealed, strong connection.

Understanding the Parts

The electrical system of an electric bike is not as complicated as it appears. You can compare it to the human body: the battery acts like the heart, the controller is similar to the brain, the motor is equivalent to the muscles, and the wires and sensors are like the nerves. When you understand the function of each component, the wiring diagram becomes easier to grasp. Power goes from the battery to the controller, which receives signals from the throttle and the sensors and then supplies the motor with the appropriate amount of power.

Electric Bike Hub Motor

The Battery: The Power Source

The battery is the most important component of your e-bike; it is a big rechargeable unit that provides direct current (DC) power to all the bike's parts. The majority of the kits have 36V, 48V, or 52V systems. It is essential that the voltage of your battery matches that of your controller. For instance, if your controller is 48V, you should use a 48V battery.

The Controller: The Brain

Comparing the battery to the heart, the controller is like the brain. This compact metal box looks after all the functions: it draws power from the battery, reacts to the throttle or the pedal-assist sensor, and then supplies the motor with the appropriate amount of power, which is the reason why the bike operates smoothly rather than simply being on or off.

The Hub Motor: The Muscle

A hub motor is a brushless DC motor that is built into the hub of either your front or rear wheel; it features strong magnets together with copper windings, and the key point to remember is that it has two sets of wires—that is, three thick phase wires and a group of five or six thin Hall sensor wires.

The Controls: How You Interact

These parts let you control your electric bike system:
A throttle is a twist-grip or thumb lever which informs the controller that you desire power at this moment.

The Pedal Assist Sensor (PAS) consists of a ring of magnets attached to the crank and a pickup mounted on the frame, which sends a signal to the controller each time you pedal.
Many e-bike brake levers are fitted with a cutoff switch which makes the motor stop functioning as soon as the lever is pulled.

The information about your speed, the amount of battery life you have, the assist level, and other details is shown on the handlebar display.

Understanding Wire Colors

By this stage, a good number of do-it-yourself builders become confused. The wires' colors from your controller and motor may not match since there is no universal standard, even though most of the kits do use standard colors. The following section will assist you in understanding e-bike wires.

Breaking the Color Code

Take the table as your main reference point. Start by assuming that your kit fits this pattern; we'll look at what you should do if it doesn't in the following section.

Function Primary Color(s) Secondary/Alternative Colors What it Does
Battery Power Thick Red (+) & Black (-) Blue (-) is sometimes used instead of Black. Main power lines from the battery to the controller. Always thick gauge.
Motor Phase Thick Yellow, Green, Blue No common alternatives. The thickness tells you what they are. The three thick wires that carry high current to power the motor's windings.
Hall Sensors Thin Red, Black, Yellow, Green, Blue White, Brown, Orange. Five or six thin wires that tell the controller the motor's position. Red is +5V, Black is Ground.
Throttle Red, Black, White or Green Red, Black, Blue. Three-wire plug. Red is +5V, Black is Ground, and the third color is the signal wire.
PAS Sensor Changes a lot. Often Red, Black, and a signal color like Yellow or Blue. Gives the pedal-sensing signal to the controller.
Brake Cutoffs Changes. Often two identical 2-wire plugs. Usually Black and a signal color like Yellow or White. Two-wire connection that tells the controller to cut power.

When Colors Don't Match

It may happen when you open your kit that the motor Hall sensor wires are orange, purple, and grey. This is a common situation, particularly when the components are from different manufacturers. The most effective method is to identify the wires according to their function rather than their color, using a multimeter. Below is how you can do it.
  1. Commence by identifying the Motor Phase wires, since they are the three thickest wires connected to the motor, and put them aside.

  2. The bundle for the Hall Sensor ought to be present; it is the other set of wires from the motor, usually made up of five thin wires all housed in one plug.

  3. To locate the Hall Power and Ground, look at the CONTROLLER. Switch your multimeter to DC Volts (the 20V setting is most suitable). Turn on the controller (without the motor being connected). Look at the pins on the plug of the controller's Hall sensor and identify the two pins that display a reading of approximately 5V. Attach the positive probe of the multimeter to the +5V wire (this is typically the Red one) and connect the negative probe to the Ground wire (this is usually Black).

  4. Start by connecting the power and ground, and then deal with the other connections. Attach the +5V and Ground Hall wires from the controller to the wires on the motor that you believe they match with (they are usually Red and Black). The remaining three Hall signal wires can be connected in any order. If the motor shakes or runs badly, remove the battery and swap two of the signal wires. Continue trying in this way until the motor runs smoothly.

Connecting Your Hub Motor

Having now learned about the components and the wires, it's time to begin building; for safety reasons and since we want to keep things simple, we'll carry out the steps one by one. This is the main part of the electric bike wiring diagram.

Step 1: Plan Your Wire Routing
Before making any connections, arrange all the components, putting the controller in the position where you intend to fit it—such as in a frame bag or on a rack. Attach the motor cable and the other wires to the controller and ensure that the wires are not pulled too tight or crushed by moving parts like the suspension or the steering. If you plan this now, you will be able to avoid having to face serious problems later.

Step 2: Find the Battery Connection
The red and black wires that are thick on the controller are generally connected to the battery. You should ensure that they correspond with the main power connector on the battery, but do not connect them at this stage—this will be your final step.

Step 3: Connect the Hub Motor to the Controller
You have to have two separate connections, one for the main phase wires and one for the smaller Hall sensor plug.

Connecting the Phase Wires

Take the three thick phase wires—typically yellow, green, and blue—and connect them to the corresponding thick wires on the controller; most of the kits employ bullet connectors, which fit together securely.Hint: When the motor is running in the wrong direction after you have connected all the wires, simply exchange any two of the three phase wires and the motor will then rotate in the opposite direction.

Connecting the Hall Sensor Wires

Look on the motor and find the Hall sensor connector, which has five or six pins; connect it to the corresponding connector on the controller. The plugs generally have an arrow or a tab so that they fit in only one direction. This connection is important since the Hall sensors inform the controller of the motor's position, which helps the motor start smoothly and run efficiently.

Step 4: Connect the Throttle and Other Parts
Now connect your controls. The controller is provided with smaller plugs for the throttle, the brake lever cutoffs, the PAS sensor, and the display. Since each connector has a different number of pins, they are difficult to mix up. Simply attach every component to the correct plug on the controller harness.

Testing and Fixing Problems

Now you’ve finished the wiring, and all appears fine. The next step is important—success depends on following a safe testing process.

The First Test

  1. Before you connect the battery, lift the bike's drive wheel off the ground; you can do this by using a stand or by turning the bike upside down and letting it rest on the handlebars and the seat.
  2. Be sure to check all your connections and verify that nothing is loose.
  3. Now connect the battery to the controller, and don't connect it before that. When the controller is charging, you may notice a small and harmless spark—this is normal.
  4. The system may be switched on by pressing the key, the power button on the battery, or the button on the handlebar display.
  5. If you gently press the throttle, the wheel should begin to turn smoothly. Well done!

Fixing Your Wiring Problems

Don't worry if everything isn't proceeding smoothly, since the majority of the problems are easy to remedy. That is why it is important to have your electric bike wiring diagram.

Should you come across a difficult problem or need to obtain some rare components, you should look within the Endless Sphere forums. There's a wonderful community of experienced builders who may well have already dealt with your problem.

Problem Likely Cause & Solution
Motor shakes, vibrates, or won't run smoothly. This usually means mismatched Hall sensor wires. Disconnect the battery. Try swapping the three Hall sensor signal wires (the ones that aren't Red or Black) until you find a smooth combination. Many modern controllers can run in "sensorless" mode if a Hall sensor breaks, though startup may be less smooth.
Motor runs, but backward. The motor phase wires are in wrong order. Disconnect the battery. Swap any two of the three thick motor phase wires (like swap the Yellow and Green). This will reverse the motor's spin direction.
No power at all. Nothing happens. Start with basics. Is the battery charged and turned on? Check the main battery connection to the controller. Look for a fuse on the battery case or on the controller's main power wire, and see if it's blown. Make sure any power switch is turned on.
Throttle doesn't work, but PAS does (or the other way around). This points to a specific part connection. Check that the throttle (or PAS) is plugged into the right port on the controller. Look at the pins inside the connector to make sure none are bent or pushed out of place.

Final Steps: You Did It

You've achieved it—an intricate tangle of wires has now been transformed into a fully functional and powerful electric bike system that you've built yourself. Instead of simply following the instructions, you arrived at this result by taking the time to understand all the different components, working out the wiring, and following a sensible approach. As a result, you now have the fundamental knowledge needed should you ever have to carry out repairs, upgrade any parts, or even build another e-bike in the future.

Hub Motor EbikeTie all the loose wires neatly using zip ties and make sure they are kept away from any moving parts. For weather protection and to give it a professional appearance, cover every spliced connection with heat shrink tubing. Take a moment to feel proud—you haven't just constructed an e-bike, you've acquired a useful new skill. Now go and enjoy your ride!

Frequently Asked Questions

What should I do if the colors of my motor wires are different from those in the guide?
You must use your multimeter to identify the wires according to what function they perform, since the three thickest ones are always the motor phases and you can connect these in any order to begin with. Regarding the Hall sensors, first locate the +5V and ground wires with the multimeter and then, by trial and error, connect the other signal wires until the motor is running smoothly.

Is it normal to see a small spark when the battery is connected?
It is completely normal to observe a small spark when you connect the battery as the capacitors in the controller are charging up; but if you notice large sparks or hear loud popping sounds, you should disconnect at once and then check your wiring.

The e-bike is functioning, but the motor is turning in the wrong direction. What should I do to correct this?
That is a simple solution; to ensure safety, take out the battery and then swap any two of the three thick motor phase wires. For example, if your phase wires are yellow, green, and blue, remove the yellow and green ones and exchange the way that they are connected; the motor will then rotate in the opposite direction.

What voltage battery should I use with my controller?
A: Make sure that the battery you use has the same voltage as your controller; for example, if your controller is 48 V, then you should use a 48 V battery. Using the incorrect voltage may cause the parts to break or make them unsafe. Remember to check both the battery and the controller before connecting them.

How can I tell whether my Hall sensors are working properly?
A: Working Hall sensors make the motor start smoothly and quietly. If Hall sensors are damaged or incorrectly wired, the motor will stutter, vibrate, or have difficulty starting from a stop. Most modern controllers can run without Hall sensors in "sensorless" mode, but startup will be less smooth and may require a small push to get going.


Leave a comment

Your comment will be visible once approved. Don’t worry—your personal information (including your email address) will never be published or shared.

We're committed to protecting your privacy. Your email will only be used to verify your comment and will never be made public. This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply.


Related Product

Leoguar Ebikes
Fastron SO Fat Tire Ebike
$1,489.00
Shop Now

Lastest Blog Post

Category