Testing the Hub Motor

July 21, 2012

Though hub motors tend to be fairly well behaved and can run for years without problems, they do occasionally go wrong. If the bike suddenly stops working or develops problems, you often end up in a position where you need to find out if it’s the controller or the motor that’s at fault.

Many enthusiasts who’ve done a lot of tinkering with their bikes usually end up with at least one spare controller lying around, in which case it’s just a case of swapping it out to see if that fixes the problem. Most people, however, do not have spares available and may need to do some specific testing to rule out any issues with the motor.

1) Access the Phase Wires and Hall Connector

The first thing to do is to remove the seat to get access to the junction where the phase wires are connected (bottom) and the hall connector socket can be found (top left). The phase wires are the three, thick blue, green and yellow wires. The hall sensor wires are five thin wires: black, red, blue, green and yellow that run from the motor cable to a 6-way mini-connector. On some bikes the phase wires are part of a plug instead, in which case you’ll have to adapt your test accordingly. For this test you will need to detach the phase wires on the motor side from the connection block so that they are isolated from the controller. Leave the hall connector connected, though.

Phase wires and Hall Connector

The phase wires are the wires that provide power to the motor, magnetising sequences of coils that generate the rotational motion. The hall sensors are three little transistor-like devices embedded along the inside edge of the motor, which send information about the motor movement back to the controller.

2) Test the Phase Wires

First, with the bike on its stand (and the bike switched off), test that the rear wheel spins freely. If it doesn’t you most likely have a short between the phase wires, though this is rare. The next thing to do is to remove the phase wires from the block and short them one pair at a time (e.g: yellow/green, green/blue, blue/yellow). As you hold them shorted together, try turning the wheel again. This time, you should find resistance. If you don’t get resistance when any pair of wires is shorted, then there is a break somewhere between the phase wire and the motor.

Phase wires and hall connector, detached

3) Test the Hall Sensors

For the next test keep the phase wires disconnected but make sure that they are kept properly separated. Preferably put a bit of insulation tape on the ends to prevent mishaps. Again, keep the hall connector connected.

Next, you will need to turn the ignition on, and take voltage readings from the wires in the hall connector. Since the connector is plugged in, you will need to access it from the rear, sticking the multimeter probes into the recesses and touching the crimps holding the wires in place.

The hall sensor wires

Take voltage readings across the black wire and – in turn – the blue, green and yellow wires with the back wheel turning slowly. It’s best to get someone to help out with turning the wheel for this part, while you take readings. As the wheel turns, the signal should flip between 0V and about 4.5V, at a rate of about 23 cycles per rotation of the wheel. If you get this reading from each of the wires, then all is well, otherwise, you have a blown hall sensor and will need to open the motor to replace it.

If you have a bit of pocket money spare, and want to make life easier, you could invest in one of these very handy motor/controller tester gadgets that will do it all for you. You just plug in the hall connector, attach clips to the phase wires, and the blinky lights give you the answers straight away! The controller-tester part of the unit, however, is only compatible with controllers up to 60V, though, so it can test the motor – but not the controller –  if you have a 72V system.


Replacing a Hall Sensor

July 12, 2012

Hall effect sensors sometimes fail, but are easy enough to fix

Taking the hub motor apart and replacing a hall sensor might sound like a pretty daunting task, but it’s really not that difficult. The first thing you need to do is get hold of a suitable, replacement SS41 hall-effect sensor. One can usually be found on ebay here, or from RS components (but with a pretty steep postage price) here.

Next you remove the stator (the hub motor section of the rear wheel) from the rear wheel itself (see blog entry) so that you can get at the motor’s inner workings. This done, the hall sensors and wiring are exposed and ready to work on.

The sensors are held in little shaped grooves in the metal treads on one side of the stator’s perimeter. Now you need to identify which sensor holds the wire that you detected a fault on. Each sensor has three wires, – two of them are the 4.5V live (red) and GND (black) which serve the sensor, the third is the hall sensor wire which returns a signal to the controller based on its rotational position in the hub motor casing. The third wire for each hall sensor is yellow, green and blue respectively, as shown below.

In my case, it was the yellow wire that was showing no signal, and this one goes to the middle hall sensor on my stator.

The component itself is held in with a bit of epoxy resin and sometimes has bits of silicone sealant gummed about. The epoxy can be softened by warming it a little with the flame from a cigarette lighter.

A gentle tap with a hammer and screwdriver knocks it loose with ease.

Note how one side of the hall effect sensor has bevelled corners. This side faces outwards (on my motor, at least) and is designed so that it can only fit in its socket the right way round. This is important, as it makes it hard to accidentally reverse the wiring sequence.

Here’s the replacement sensor in situ.

You can more clearly here how it fits with the bevelled corners facing outwards.

Next it’s a simple case of soldering the new sensor in. Snip the head of the old sensor off, strip the hall sensor wires, and desolder the legs from the old one, then solder on the legs of the replacement sensor. Don’t forget to put fresh sections of heatshrink on the wires, and push them way up the wires where the soldering iron won’t prematurely shrink them. Then pull the heatshrink down into place over the soldered legs, like with their neighbours.

This done, it’s a case of fitting the sensor back into its socket. Use a little blob of epoxy resin to hold it firmly in place.

All done! Finally, carefully refit the stator to the rear wheel and test the wiring from the hall connector. If you did everything right, then you should once more have a working hub motor.


%d bloggers like this: