Speed sensor failure

fsroque

Finding my (electric) wheels
Jul 3, 2017
12
3
Norway
Hi, I have a cargo bike with a Bafang rear hub motor SWX02 and a bafang controller. During one of my commutes the bike suddenly stopped reporting speed and the display says error 21 and turns off.

I am wondering if the speed is reported by the pas sensor? The controller detects pedalling so pas is definitely working. No red light appears in the sensor (image below). Is it just a case of replacing the pas/speed sensor or should I look elsewhere?

The connectors don't match the extra pas sensor I have here, so I would have to clip the old one and join the cables, don't want to do it unless I'm sure.

Thanks!

IMG_0805.JPG
 

Woosh

Trade Member
May 19, 2012
19,537
16,474
Southend on Sea
wooshbikes.co.uk
the speed sensor is either attached to the chain stay and activated by a magnet attached to a spoke or built inside the motor.
If you don't have a spoke magnet, then it is inside the motor.
 
D

Deleted member 4366

Guest
If you have one of those black sealed Bafang controllers, you'll have difficulty accessing the speed sensor wire. It's the white wire in the motor cable. You also need to connect to 5v and ground wires, which you can pick up from the PAS connector.

If it's an aluminium box controller, you can often get access to the speed sensor wire inside the box where it exits the harness. You can cut it and join your own one there. that might still work with the black box type, otherwise you'll need to strip the outer covering from the motor cable somewhere to splice in your wire.
 

fsroque

Finding my (electric) wheels
Jul 3, 2017
12
3
Norway
My controlled is inside an aluminium box. I will need to pull the 5v and ground as well from the PAS connections, right?
 

fsroque

Finding my (electric) wheels
Jul 3, 2017
12
3
Norway
I have pulled the speed signal cable, and connect +5V and ground in the controller. I attached the speed sensor and by passing the magnet I can see the signal works. Unfortunately I think the signal is quite weak? By passing the magnet back and forth fast I get about 5km/h in the display. If I turn it more slowly (like if a wheel was turning) no speed is detected. Do I need a more powerful magnet?
 
D

Deleted member 4366

Guest
There's a setting (P2) for the number of pulses per revolution. You need it set to 1 and it's probably set to 6.
 

fsroque

Finding my (electric) wheels
Jul 3, 2017
12
3
Norway
Unfortunately my display (c961) does not have that option. 6 magnets on the wheel then? :)
 

Woosh

Trade Member
May 19, 2012
19,537
16,474
Southend on Sea
wooshbikes.co.uk
Unfortunately my display (c961) does not have that option. 6 magnets on the wheel then? :)
you may have to do that if you can't get into the advanced settings (number of magnets).
The alternative is to change the LCD.