What the sensor does
A Hall sensor generates a voltage proportional to the component of the magnetic field perpendicular to its element. There are two main families: linear sensors, whose analog output follows the field, and switching sensors, which change level when field thresholds are exceeded and usually have hysteresis. Many of the latter have an open-collector output and need a pull-up resistor.
Preparation
- Consult the datasheet for the supply voltage, the output type and the polarity that activates the sensor.
- Power the sensor and connect the pull-up resistor if it is open-collector.
- Connect one probe to the output and, if you can, another to the supply, to see both at once.
What to check
- Levels: that the low and high levels are within what the following logic recognizes. A low high level usually indicates an unsuitable pull-up value or excessive loading.
- Response to the field: move a magnet toward and away from the sensor, or turn the rotor, and observe that the output changes at the expected moments. On a switching sensor, the polarity of the magnet matters.
- Hysteresis: the operate point is different from the release point. If you see repeated bouncing at the change of state, the field is close to the threshold or there is noise.
- Linearity and offset: on a linear sensor, the quiescent output must be at its reference value and vary proportionally.
- Noise and edges: transitions must be clean and fast enough for the application.
When used in a motor
With several sensors in a brushless motor, capture the outputs at the same time and check that their sequence and phase shift match the design. An oscilloscope with several channels, or a mixed-signal one, lets you relate the signals to the phase current.
How to interpret the result
If the output does not change, check the power supply, the field polarity and the pull-up before concluding that the sensor is damaged. If it changes with noise, examine the power supply and the coupling of nearby switching fields.