Fixing an E-Bike Speed Sensor Not Detecting the Magnet

When your e-bike speed sensor fails to detect the passing wheel magnet, the speedometer stays locked at 0.0 MPH, and the motor controller will abruptly cut pedal assistance after a few seconds of riding. The drive unit requires an uninterrupted stream of rotational pulses to calculate forward speed and maintain power output.

A detection failure usually comes down to three physical factors: the spoke magnet has rotated away from the sensor’s pickup zone, the air gap between the magnet face and the sensor body has exceeded the operating threshold, or the magnetic field itself has weakened due to road debris and thermal exposure.

Fast Fix

Loosen the spoke magnet screw and rotate the magnet until its flat face points directly at the alignment notch or raised line on the chainstay sensor. Slide the magnet along the spoke until the air gap between the magnet and sensor measures between 2 mm and 4 mm (about the thickness of a coin). Tighten the screw securely.

Immediate Status and Safety

Diagnostic IndicatorDisplay ReactionMotor Assist StateSafety & Riding Status
Magnet misaligned or gap > 5 mmReads 0.0 MPH while movingCuts out after 3–10 secondsSafe to pedal manually; assist disabled
Magnet missing entirelySpeed sensor error codeCuts out immediately at startupSafe to pedal manually; requires replacement magnet
Intermittent pulse pickupVelocity jumps or flickersSurges or stutters unpredictablyCaution — surging creates unstable handling
Sensor cable severed / crushedHard error code (e.g., Bosch 503)Disabled completelySafe to pedal manually; wiring repair needed

How the Magnetic Pickup System Functions

The speed sensing system on an e-bike operates as a non-contact magnetic switch.

[ Rotating Wheel / Spoke Magnet ] ──(2–4 mm Air Gap)──► [ Reed Switch or Hall Element ] ──(5V Pulse)──► [ Controller Logic ]
  1. The Sensor Core: Inside the plastic sensor head attached to the non-drive-side chainstay is either a mechanical reed switch (two flexible ferrous metal reeds sealed in glass) or a solid-state Hall-effect semiconductor.
  2. The Magnetic Trigger: As the wheel turns, the permanent magnet on the spoke sweeps past the sensor body. Its magnetic flux temporarily closes the reed switch contacts or triggers a digital 5V low-to-high voltage transition in the Hall sensor.
  3. The Controller Watchdog: The motor controller expects a frequency of pulses that matches the rider’s cadence and torque input. If cadence is detected from the bottom bracket but zero pulses arrive from the wheel sensor, the controller assumes the system is malfunctioning and disables motor output to prevent runaway acceleration.

Diagnostic Step-by-Step Path

Use this diagnostic workflow to find the exact point where magnetic detection is failing:

Speed Sensor Not Detecting Magnet
       │
       ├─► Is the spoke magnet present and facing the sensor?
       │     ├─► NO: Install a new neodymium spoke magnet.
       │     └─► YES: Check horizontal alignment and gap distance.
       │
       ├─► Is the gap between 2 mm and 4 mm?
       │     ├─► NO (Gap > 5 mm): Angle sensor inward or slide magnet along butted spoke.
       │     └─► YES: Test magnetic strength and sensor responsiveness.
       │
       └─► Realigned but still reads 0.0 MPH and throws error code?
             ├─► Magnet lost field strength or pickup head caked in metallic dust.
             ├─► Internal reed switch glass cracked from road vibration.
             └─► Cable pinched or severed along the chainstay.

Step 1: Check Physical Alignment and Indicator Markings

Look closely at the chainstay sensor body. Most manufacturers (including Bosch, Bafang, Shimano, and Yamaha) mold a specific indicator line, dot, or crosshair into the plastic housing.

  • The center of the spoke magnet must pass directly across this indicator mark.
  • If the magnet has slid up toward the wheel rim or down toward the hub flange along a tapered spoke, it will pass completely above or below the sensor’s internal pickup zone.

Step 2: Measure the Air Gap Distance

  • Rotate the wheel until the magnet sits directly adjacent to the sensor.
  • Measure the gap between the magnet face and the sensor body with a ruler or standard credit card stack.
  • The correct gap is 2 mm to 4 mm.
  • If the gap is wider than 5 mm (common on bikes with wide hub spacing or dished wheels), the magnetic field will not reach the internal switch contacts.
  • If the gap is under 1 mm, wheel flex during aggressive cornering or standing pedal efforts will cause the spoke magnet to strike and crack the sensor casing.

Step 3: Test Magnetic Attraction and Debris

  • Neodymium magnets attract iron particles, brake rotor dust, and magnetic road grit. A heavy coating of metallic grime disperses the magnetic flux lines. Wipe the magnet face clean.
  • Test the magnet’s strength by touching a steel screwdriver to its face. If the attraction feels weak or barely holds the tool, the magnet has lost its field strength from impact or heat exposure and must be replaced.

Likely Causes and How to Solve Them

1. Rotated Spoke Magnet

  • The Cause: Centrifugal force, trail vibrations, or brushing against brush/sticks can twist the spoke clamp around the round spoke wire, pointing the magnet toward the cassette or rotor instead of the sensor.
  • The Fix: Loosen the mounting screw, align the magnet perpendicular to the sensor pickup face, and tighten securely without stripping the plastic threads.

2. Spoke Taper Gap Widening

  • The Cause: Double-butted or bladed spokes narrow in the middle. If a magnet slides toward the center of the wheel, the angle of the spoke pulls the magnet further away from the chainstay, exceeding the 4 mm threshold.
  • The Fix: Reposition the magnet closer to the chainstay sensor where spoke spacing is narrowest. If necessary, adjust the angle of the sensor mount on the frame.

3. Internal Reed Switch Failure

  • The Cause: Hard trail impacts or cyclic shock loads can fracture the delicate internal glass reed capsule inside the sensor head. The magnet passes normally, but the broken contacts inside never close.
  • The Fix: Test the sensor using a multimeter on continuity mode. Place probes across the signal and ground pins while passing a strong magnet across the sensor head. If the meter does not beep or show continuity changes, the sensor is internally dead and must be replaced.

4. Severed Chainstay Cable

  • The Cause: The sensor lead wire running along the chainstay can be pinched by the kickstand, damaged by chain slap, or abraded by tire tread.
  • The Fix: Inspect the length of the wire from the dropout to the motor cavity.

What Changes the Diagnosis

  • Rotor-Integrated Magnet Systems: Modern e-bikes increasingly integrate the magnet into the rear disc brake rotor or lockring rather than clamping it to a spoke. If you recently replaced your brake rotor and the speedometer stopped working, the new rotor may lack the magnet pocket or position it at an incorrect offset.
  • Wheel Swaps and Truing: Replacing a rear wheel or adjusting spoke tension alters the lateral spacing of the spokes relative to the frame chainstay, directly changing the air gap. Always re-measure the 2 mm to 4 mm clearance after wheel maintenance.

One more thing: If your speed sensor works on smooth pavement but cuts out over rough cobblestones or downhill rock gardens, check the tightness of the chainstay mounting bolt or zip-ties. A loose sensor bracket will vibrate outward under chatter, temporarily expanding the air gap beyond the 4 mm threshold and triggering an intermittent motor cutout.