E21 E-bike Error Code Explained

Categories

All E-Bike Regulations E-Bike Events Rider's Story Letrigo's Gift E-Bike Knowledge

Fix Error Code 21 on your electric bike fast. Expert guide covers speed sensor fixes, battery/current issues, and electrical testing for your ebike.

Table of Contents

Seeing Error Code 21 pop up on your display is frustrating, but it usually does not mean your electric bike is done for. This code points to one of two main problems: an Abnormal Motor Current or Voltage Protection fault, or a Speed Sensor Abnormality.

In other words, your e-bike controller is not getting steady power or accurate speed information, so it shuts the motor down to protect the system. The good news is that a lot of Error 21 issues can be cleared with simple connection checks or a full reset of the electronics.

This guide will walk you through clear, step by step checks to find the real cause and get your electric bicycle safely back on the road.

Defining Error Code 21: Why It’s Confusing (And How to Know)

The hardest part about dealing with Error 21 is that it does not mean the same thing on every electric bike. Different brands and controller systems, such as certain OEM bikes and common conversion kits like Bafang, use the same number for different problems. To fix it without wasting time, you first need to figure out which type of fault your e-bike is actually warning you about.

Scenario 1: The Power and Current Protection Alert

On some brand-specific systems, such as certain models from Rad Power Bikes or Ride1Up, Error Code 21 means Abnormal Motor Current or Voltage Current Protection. In plain terms, the controller has seen a very serious problem with the way power is flowing.

This version of Error 21 shows that the system is either seeing a sudden, large voltage drop or the motor is pulling far too much current. When that happens, the controller shuts everything down to protect itself and the battery. 

Problems like this usually start in the high current path between the battery and controller, or inside the motor if there is a partial short that makes it draw huge current. If the error pops up the instant you use the throttle or pedal assist, or it appears under heavy load, it is a strong clue that you are dealing with a power delivery issue.

Scenario 2: The Speed Sensor Failure

On many universal and aftermarket systems, especially those that use Bafang mid-drive motors, Error 21 (sometimes written as E21 or W011) points to a Speed Sensor Abnormality. This is often the main cause on mid-drive kits.

The speed sensor tells the controller how fast the wheel is turning. The controller needs this information to control pedal assist and keep your electric bicycle within legal speed limits. If the sensor stops sending a signal, the controller loses its speed data, which leads to weak, jumpy support or a full loss of motor assist.

To stay safe, it then throws Error 21. Early signs of this kind of problem include the display showing a speed of “0” even while the wheel is spinning, or the error only showing up after the wheel has started moving.

Understanding these two meanings is critical because they shape your whole troubleshooting plan. If your bike is a known brand with its own error list, you should follow the power and current path in Scenario 1 first. If your setup uses a generic display or a common mid-drive kit, your main focus should shift right away to the speed sensor and the checks in Scenario 2.

The Essential E-bike Quick Fixes (10-Minute Solutions)

Before you get into complex electrical tests, try the simple stuff first. Many short-term electronic errors clear up with a few basic steps. The four actions below fix most intermittent Error 21 problems and do not need any special tools.

The Full Power Cycle and Discharge

This is a “hard reset” for your e-bike electronics. It clears small memory glitches that can cause ghost errors.

Turn Off: Turn off the e-bike display.

Remove Battery: Take the battery completely off the mounting tray.

Discharge Power: Press and hold the MODE or power button on the display for 5 to 10 seconds. This drains any leftover energy stored in the controller’s capacitors.

Retest: Reinstall the battery and turn the bike back on. Check if the error is gone. If Error 21 comes back, move on to the next steps.

Inspecting and Cleaning the Battery Terminals

Loose, dirty, or corroded battery contacts are a major cause of random power cuts and voltage drops, which can trigger the Abnormal Motor Current version of Error 21.

Look closely at the battery contacts on both the battery pack and the frame tray. Check for dirt, bent pins, moisture, or any signs of corrosion.

If you ride in wet or dusty conditions, this step is especially important. If you see corrosion, clean the pins carefully. Use an electrical contact cleaner, never water, to restore good electrical flow and make sure the connection is tight and low resistance.

Performing a Display Factory Reset

On some e-bikes with more advanced displays, a software glitch or brief communication hiccup can show up as Error 21.

Check your display manual for the exact steps. In many cases, you hold a button combination, such as Power and Plus (+), to open the settings menu. Then choose “Reset to Default” and confirm. This type of reset can clear communication errors without touching any hardware.

Wiggle Testing the Main Connectors

Road vibration, especially on an electric cargo bike, can slowly work plugs loose. Even clean contacts will misbehave if the plug is not fully seated.

With the e-bike powered on and held safely on a stand, gently wiggle the main electrical plugs: the battery connector, motor cable plug, and display cable. Watch the screen and listen to the motor.

If the display flickers, or the motor cuts out or shuts down when you move a certain connector, you have found a loose plug, bent pin, or bad connector. Unplug that connection, then plug it back in firmly, one at a time, making sure each one is fully seated and locked in place, often confirmed by a clear click.

Detailed Diagnostics for Speed Sensor Faults (Advanced Check)

If the quick fixes did not clear the error, and your bike uses Error 21 for speed sensor problems, you need a deeper check. This means looking closely at both the physical condition and the electrical function of the speed sensor system.

Phase 1: Checking Physical Alignment and Damage

Physical problems are the most common cause of speed sensor failures that trigger Error 21.

1. Magnet-to-Sensor Alignment Check

The speed sensor reads your speed by detecting a small magnet on a wheel spoke as it passes by. If this magnet is out of position, the sensor cannot read it correctly. The sensor is usually mounted on the frame, often on the chainstay.

The gap between the spoke magnet and the sensor must be small and correct. The magnet should pass the sensor with no more than 5 millimeters of space between them. It also needs to line up with the flat reading face of the sensor body, not the rounded edge. If the magnet has moved, loosen it, slide it back into the correct spot, and tighten it again so it stays in place.

2. Visual Inspection of the Sensor Cable

The speed sensor wires are thin and easy to damage. They are often 22–26 AWG, which makes them vulnerable to rubbing, pinching, or cuts where they run along the frame or near the motor.

Carefully follow the full length of the sensor cable with your eyes and fingers. Look for any cuts, rubbed spots, or pinched areas. If you can see copper wire, especially from the black ground wire, it may be shorting to the metal frame. This kind of short can destroy the signal and cause Error 21. If you find damage, repair or replace the cable before doing anything else.

Phase 2: Testing Sensor Functionality with Visual and Electrical Cues

Once you have checked alignment and visible damage, the next step is to see if the sensor is actually working and getting power.

1. The LED Toggle Test

The easiest way to check if the sensor works is to look at its built-in light, if it has one.

  • Turn the display on and lift the rear wheel off the ground.
  • Find the small LED light on the sensor body, often red.
  • Slowly spin the rear wheel by hand.

The LED should blink on or off quickly as the spoke magnet passes the sensor. If the light never blinks, the sensor may be bad, the magnet may be too far away, or the sensor may not be receiving its 5V power from the controller.

2. Multimeter Continuity Test on Sensor Cable

If the sensor seems to work, you should test the cable itself for hidden breaks inside the insulation.

  • Safety First: Disconnect the main electric bike battery.
  • Unplug the sensor cable from the controller harness.
  • Set the multimeter to continuity mode, usually shown with a small speaker icon.
  • Test each wire, usually Red, Black, and one signal wire. Touch one probe to the pin at the sensor end and the other probe to the matching pin at the controller end.

The multimeter should beep or show a reading under 1 Ohm for each wire. This means the wire is intact. If you see “OL” or open line on the screen, that wire is broken and the circuit is not complete.

Deeper Electrical Diagnosis: Motor and Controller Power Flow

When Error 21 is tied to Abnormal Motor Current, or your speed sensor tests do not give a clear answer, you need to look deeper at how power flows between the controller and the motor. This means measuring voltages and resistance with a Digital Multimeter (DMM) to see if the Hall sensors or motor windings are failing.

Testing Hall Sensors with a Multimeter (The 0V to 5V Toggle)

Hall sensors inside the motor tell the controller the motor’s position as it turns. If a Hall sensor fails, the motor may stutter, feel rough, or cut out, and the controller may trigger a current protection error such as Error 21 or a specific Hall code like E08.

Step-by-Step Hall Sensor Voltage Test:

Preparation: Keep the five Hall sensor wires connected to the controller. Follow your system’s instructions so that only the low-voltage circuit is powered if required, or make sure it is safe to test with the main battery connected as specified for your bike.

Multimeter Setup: Set the multimeter to the 20V DC range.

Identify Wires: Find the Hall sensor wires: Red (about +5V power), Black (Ground), and three signal wires, usually Yellow, Green, and Blue.

Confirm Power Supply: Place the negative (black) probe on the Black Hall Ground wire. Place the positive (red) probe on the Red power wire. The meter should show a steady reading between 4V and 5V DC. If this positive reference voltage is missing, the controller has failed and cannot power the sensors.

Test Signal Toggle: Move the positive probe to the Yellow signal wire. Slowly turn the motor wheel by hand.

Expected Result: As the motor turns, the voltage on that signal wire should switch cleanly between a low level (close to 0V or 0.5V) and a high level (close to 5V). Repeat this test on the Green and Blue signal wires.

If a Hall sensor is bad, the voltage on that wire will stay stuck at one level, for example always at 5V, or it will show an odd, averaged value, such as a steady 2.5V when you are turning the wheel too fast for the meter to catch the on–off changes. A signal that does not toggle between low and high indicates a failed sensor or a broken wire going to that sensor.

Checking Motor Phase Wire Health (Resistance and Shorts)

The three thick phase wires (Yellow, Green, Blue) carry high current from the controller to the motor windings. Damage inside the motor, such as shorted or broken windings, changes resistance. The controller reads this as Abnormal Motor Current and can raise Error 21.

1. Phase-to-Phase Resistance Test

This test checks whether the windings inside the motor are intact and balanced.

  • Disconnect: Unplug the three thick phase wires from the controller.
  • Multimeter Setup: Set the multimeter to the lowest resistance (Ohms) range or to continuity mode.
  • Measure: Measure resistance between each pair of wires: Yellow–Green, Green–Blue, and Blue–Yellow.

All three readings should be very low (usually less than 1Ohm) and almost exactly the same. Differences greater than about 0.1Ohm between any pair can point to internal damage or a poor connection. If one pair shows “OL” (Open Line or infinite resistance), that winding or its connection is broken and the circuit is open.

This tight tolerance matters because a high-wattage motor, especially on a heavy-duty bike such as a long-tail cargo e-bike, is designed for very low winding resistance so it can safely carry currents up to around 30A. Even a small increase in resistance can hurt performance and cause abnormal current spikes that trigger Error 21.

2. Phase-to-Ground Short Test

This test makes sure the motor windings are not shorted to the metal case or axle. A short like this can destroy a new controller very quickly.

  • Multimeter Setup: Set the multimeter to a high resistance range, such as 200k Ohms or M Ohms.
  • Measure: Put one probe on any of the three phase wires (Yellow, Green, or Blue). Touch the other probe firmly to a clean, unpainted metal part of the motor axle or casing.

You should see infinite resistance (“OL” or Open Line). Any low resistance value, even a few hundred Ohms, means there is a dangerous internal short from the windings to the motor body. This fault must be fixed before riding the electric bicycle again or installing a replacement controller.

Identifying Controller Malfunction as the Root Cause of Error 21

If you have already checked the battery, display, all outside wiring, and confirmed that the motor windings and Hall sensors are healthy, the last major part left is the controller. The controller is the part that reads all the signals and controls current flow, so a hidden controller fault is often the real cause behind a stubborn Error 21.

Controller Failure Symptoms Specific to Error 21

A bad controller is often the deepest cause of a persistent Error Code 21. Because the controller is the brain of the e-bike, its failure can show up in a few clear ways:

Missing Reference Voltage: The strongest hardware clue is when the controller does not send the needed 4–5V DC reference voltage to the Hall sensors or speed sensor. If the sensors do not get power, they cannot send any feedback. The system then fails its startup checks and throws Error 21.

Motor Erraticism: Controller problems rarely appear out of nowhere. Many riders notice early warning signs first, such as strange throttle response, motor stuttering, odd noises, or uneven power delivery. Error 21 can be the final protective code after internal controller parts have been damaged by heat or long term wear.

The Final Diagnostic: The Component Swap

If every external check and motor test has passed, the last step is a careful controller swap. This means replacing the suspected controller with a known good one that has the exact same specs for voltage, wattage, and sensor setup.

One safety rule is critical: never install a new controller until you are sure there is no short to ground in the motor phase wires. A hidden short inside the motor will pull huge current and can destroy a brand new controller in seconds, wasting both money and time.

Proactive Steps: Long-Term Electric Bicycle Error Prevention

Regular care and inspection prevent most repeat faults and random electrical errors, especially those caused by loose connectors and cable damage that lead to Error 21.

Implementing a Routine E-bike Maintenance Schedule

Frequent checks of the electrical system are key to keeping your bike reliable.

Monthly Checks: Once a month, follow every wire run with your eyes and hands. Look for wear, rubbing, sharp bends, or pinched spots, especially where cables pass along the frame or near moving joints. Pay extra attention to the thin signal wires for Hall sensors and the speed sensor (often 22–26 AWG), because they are the easiest to damage.

Quarterly Checks: Every few months, do a deeper connector inspection. Unplug and firmly re-seat the main plugs one at a time, including motor, battery, display, and sensor connectors. This helps fight the effects of vibration that can slowly work plugs loose. If you suspect dirt or moisture, clean the contacts with electrical contact cleaner.

Riders on an electric cargo bike place extra stress on all parts, both mechanical and electrical, because of heavier loads and more frequent use. Make sure all mounting points are tight and all cable ties are secure so the wiring does not rub or kink as the bike moves.

Connector and Component Upgrades

On high power electric bikes, especially ones that often draw close to 30A, connection points can get very hot. Cheap bullet connectors and weak plastic shells are known to soften or melt under these loads.

To avoid heat related failures and repeated Abnormal Current errors, consider upgrading high current connections, such as the main battery leads and motor phase wires, to stronger, high amp rated connectors like XT90 or other heavy duty e-bike connectors. Paired with good quality copper wiring, these upgrades help the system handle real world electrical stress and reduce the chance of recurring Error 21 problems.

Reliable Everyday Hauling with the Letrigo Minivan Cargo E-Bike

When you depend on your electric bike for daily jobs, like carrying kids or groceries on an electric cargo bike, reliability really matters. High quality systems reduce the risk of connection errors.

Durable long-tail cargo ebike for heavy duty use, such as the letrigo minivan cargo ebike, use strong wiring harnesses and high grade connectors that can handle the stress and vibration that often cause repeat issues like Error Code 21. Investing in this level of engineering cuts down on downtime and keeps your family moving.


Note: Valid as of Nov. 22 , 2025. Prices may change at any time. Click to see the latest price.

Conclusion

Resolving Error Code 21 often turns a frustrating problem into a simple lesson in basic e-bike care. Once you understand whether your e-bike is warning you about a speed sensor failure or a current problem, you can work through the issue step by step. By testing your connections, checking power output, and confirming the motor is healthy, you move from a new rider to someone who can troubleshoot with confidence. Keeping contacts clean and wiring secured is the main way to stop most random electrical errors, so your electric bicycle stays reliable, strong, and ready to ride for years to come.

FAQs

Can I still ride my e-bike if Error 21 appears?

You can pedal manually, but motor assistance will be disabled. It is highly advised against attempting to force the motor to run. If the error stems from an internal short or abnormal current, applying power could seriously damage the controller or battery further.   

How long does it usually take to fix Error Code 21?

Answer: Simple fixes like checking the battery connection or realigning the speed sensor magnet typically take 5 to 15 minutes. Advanced diagnostics requiring a multimeter and detailed component testing might take 1 to 2 hours.

What voltage should my Hall sensor wires show?

Hall sensor signal wires (Yellow, Green, Blue) should toggle cleanly between approximately 0V (or 0.5V) and 5V DC as the motor wheel slowly rotates.   

What is the most common cause of Error 21 on conversion kits?

The most frequent cause for mid-drive conversion kits is physical damage to the speed sensor cable or misalignment of the spoke magnet, often caused by accidental impacts or poor cable routing.   

Should I try to fix internal motor wiring myself?

No. Internal motor issues, such as broken Hall sensors or damaged windings, require specialized tools and skills. Attempting internal repairs can void warranties and may lead to component failure or serious injury. We strongly recommend seeking a professional e-bike mechanic for internal motor service. 

Table of Contents
Minivan SE Cargo Ebike Letrigo Minivan Cargo Ebike

Categories

All E-Bike Regulations E-Bike Events Rider's Story Letrigo's Gift E-Bike Knowledge
Minivan SE Cargo Ebike Letrigo Minivan Cargo Ebike
Join our newsletter.
Get the latest news about Letrigo.
The Letrigo family is a dynamic, friendly, and welcoming community that shares a common passion. We're not just developing a product, but building a culture around it, and everyone involved with Letrigo contributes to this ethos.

Leave a comment

Your email address will not be published. Required fields are marked *

Related Articles