I recently bought this product (http://www.amazon.com/New-Hall-Sensor-Module-Arduino/dp/B009M86TFG) for use in magnetic levitation. However, I am confused as to just what type of Hall Effect Sensor is on here. I'm pretty sure it's the A3144E, but that (and its respective data sheet) doesn't tell me much about whether this is a digital or analog output. What confuses me further is the fact that there is both an analog and a digital output pin required for these modules to work.
If this is a HES that can take analog measurements of Gauss / output voltage, can someone give me a simple code to test this?
If this is not, is there any way of getting around this short of buying a different sensor?
My intended use for these is to have one sensor taped to the pole of my electromagnet that attracts the levitating object, and one taped to the opposite pole. By subtracting the output voltage of the sensor at the non-attracting pole from the output of the attracting pole, I can find the strength of the levitating magnet, which should be proportional to its distance from the electromagnet. This would then be used to adjust the strength of the electromagnet to keep the floating magnet in one position.
The A3144E is a digital Hall sensor, not an analog one. However, that board only makes sense if the Hall sensor is an analog one, otherwise there would be no point in having a comparator on the board, and no point in having both digital and analog outputs. Are there any markings on the 3-legged sensor chip?
To test it, just connect its Vcc and Gnd pins to Arduino +5V and Gnd respectively, and connect its AO pin to an Arduino analog input, for example pin A0. Then you can use the following code:
Oh, sorry, I meant "should I buy it because it's analog" as opposed to "is it the one on the sensor module". The one on the sensor module is definitely the 44E.