Hello.
I have bought a hall sensor module with 3 pins and I have no data sheet. But what I have found from google is that pin 1 = power, 2 = ground, and 3 = output.
I post an image below how I have connected it so far.
The problem is that the sensor seems to give no sign of working when a magnet is nearby. By using analogRead and the seriell monitor i can see the sensors value is between 892-893 (depending on resistor). What am I not understanding?
Hi,
What is the actual sensor, that would be helpful. It may not be analogue? but digital to indicate a magnetic field or NOT! (a switch or detector) The common one's are Allego. I used I think the A311 this gives a mid-point output for no magnet a high output for South pole and low for North (Yes analogue).
Can we see your code?
A better image close up, where it matters would be useful. What's on the module? there can't be a lot, is the pull-up resistor already on there?
Cactusface:
Hi,
What is the actual sensor, that would be helpful. It may not be analogue? but digital to indicate a magnetic field or NOT! (a switch or detector) The common one's are Allego. I used I think the A311 this gives a mid-point output for no magnet a high output for South pole and low for North (Yes analogue).
Can we see your code?
A better image close up, where it matters would be useful. What's on the module? there can't be a lot, is the pull-up resistor already on there?
Hope it helps, regards
Mel.
DrDiettrich:
Can you read a part ID on the sensor itself? This would help to verify the module pins etc.
Okay so here are som more photos and code, hope this helps:
I can't see that taking 24 Volts, it's got to be 5V?? It seems that this may be one that only detects a magnetic field and not the polarity of it.
Regards
Mel.
Yes that's the one! 24V sounds a bit to much yes, anyway i only give it 5V. I have tried to switch + and GND but it still gives the same results (I have also tried every possible direction with the magnet). Is it the 10K resistor that I am missing?
Thank you
Riva:
If the component pins are bent down till they touch the PCB then this may be shorting out centre and left pins.