How do I use this hall sensor? 44E 402

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?

Thanks in advance.

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.

Can you read a part ID on the sensor itself? This would help to verify the module pins etc.

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:



The sensor it self says:
44E
402

And here is my code:

int const sensorPin = A5;

void setup() {
  pinMode(sensorPin,INPUT);
  Serial.begin(9600);
}

void loop() {
  int sensorState = analogRead(sensorPin);
  
  Serial.print("sensorState: ");
  Serial.println(sensorState);
}

I have also tried it as digital output with this code:

int const sensorPin = 3;
int const led = 13;

void setup() {
  pinMode(sensorPin,INPUT);
  pinMode(led,OUTPUT);
  }

void loop() {
  int sensorState = digitalRead(sensorPin);
  if(sensorState == HIGH){
    digitalWrite(led,HIGH);
  }
  else{digitalWrite(led,LOW);
  }
}

But nothing happens here either.

Hi,
A quick google found this image and this post:

http://forum.arduino.cc/index.php?topic=261119.0

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.

images.jpg

If the component pins are bent down till they touch the PCB then this may be shorting out centre and left pins.

Cactusface:
Hi,
A quick google found this image and this post:

Magnetic Hall Sensor 44E - Wiring Diagram - Sensors - Arduino Forum

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.

It's the photo, it's not touching :confused:

Draw some lines in paint (what I can see by looking close):

I just want to tell it's fully working now. Thank you guys.