Electronic – How to know if the hall-effect sensor is working correctly

hall-effectprogrammingsensor

On pg. 18 Figure 5 of this data sheet you will see a pulse train required to program the sensitivity of the A1362 Hall-Effect sensor.

I am using the following circuit:

my circuit

Using Figure 5 from the data sheet, I simply power on the Hall-Effect sensor by supplying the 5V VCC. Switches SW8,9,and 10 start out being in open state. Here are my steps:

  1. Close SW8 // high pulse
  2. Open SW8

  3. Close SW9 // mid pulse

  4. Open SW9

  5. Close SW8 // high pulse

  6. Open SW8

  7. Close SW9 // stream of mid pulses, each time incrementing sensitivity counter by 1

  8. Open SW9

repeat steps 7,8 0 – 255 times as necessary to set the sensitivity of hall-effect sensor.

When I bring the north / south pole sides of a magnet close to the hall-effect sensor, the voltage readings I get at the VOUT pin are almost identical. But if the sensitivity of the hall-effect sensor has changed I should get different voltage readings. This means I am not setting the sensitivity correctly. What am I missing?

From previous posts, others have said to watch out for my current readings too. So here is some more information:

At VpH the multimeter reads ~ 200mA
At VpM the multimeter reads ~ 100mA
At VpL the multimeter reads ~ 3.5mA

Best Answer

Using VpH as an example the current will be limited to around 90mA by the resistor R7. The datasheet says the minimum current guaranteed to blow a fuse is 300mA and even recommends a 0.1uF capacitor to ensure enough current is available.

A simple solution more likely to work would be to scrap the resistor divider and use something like an LM317 adjustable regulator and switch the voltage set resistor shown as R2 in the typical application circuit instead. Using 1% resistors should keep you well within the tolerances given in the datasheet.

Also take note of markrages answer, switch bounce is likely to be a problem so ideally apart from a more robust supply you should be switching voltages from a microcontroller. The LM317 datasheet shows Iadj is limited to less than 100uA so you could achieve that using any form of transistor or analog switch that doesn't introduce too much resistance.