I've bought a hall-effect sensor (switch in this case as there is a small op-amp encased) and can't seem to get it working! But even weirder, it's working (partly) but when I reverse it's +5V and GND...
Let me explain a bit more, the sensor is this one : http://www.selectronic.fr/capteur-a1102euat-ugn3140.html I fed it with a +5V from the arduino, it's friend GND and I put a 10K pull-up resistor between it's output and +5V. All good so far but... when I probe it's output, it stays firmly around 4,4-4,5V and doesn't react to any magnet I can find.
Now, out of a mistake (I'm that bad), I put it's Vcc to the GND and GND to +5V and, surprise, it gives me a steady -4,5V BUT when I get close to a magnet, it switches to +5V!! So well, it's not exactly the behaviour I'd like to see, and not even the right polarity but it works in reverse... How come!!!????
And how can I get it to work right???
Thanks for the help!