Hello everyone,
First of all, thank you for taking the time to read this - I appreciate it!
I'm working on a project that includes a Honeywell SS495A-S linear hall effect sensor. I'm using my Arduino Uno to try and get an idea of the analog readings of the sensor, because I need to program my micro controller based on those readings.
Now, when the source voltage for the HE sensor is the 5V pin of my Arduino Uno, the analog readings are as expected: the readings without any magnetic field present remain neatly within the 506-514 range (i.e. half the supply voltage). And when a permanent magnet is brought near the sensor, the readings jump (close) to either 1023 or 0, depending on which pole is aimed at the sensor.
But, when I attach the source pin of the HE sensor to the + terminal of an external battery, and the drain pin to the - terminal of the battery, and the signal pin to any analog pin on the Arduino Uno, the readings are entirely whacky; without a magnetic field present, it will vary anywhere in between 0 and 1023, and it does not seem to respond to a magnetic field at all. I have tried this with 3 1.5V batteries connected in series, as well as with a single 9V battery, and both give unexpected (and unwanted) readings.
The code I am using to read the analog signals is the very simple example code "AnalogReadSerial" that comes pre-installed with Arduino software, and my test circuit is as described above. (A pull-up resistor from the HE signal pin to the voltage source seems to have no effect).
Does anyone have any idea what might me happening here? Any tips or insight would be much appreciated.
Kind regards,
M