Hall Effect Sensor

Outputs a value proportional to the magnetic flux crossing it.


Coding:

/*
 * http://arduspot.blogspot.in/p/hall-effect-sensor.html
 */
 
int hall = A0;
int h;

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

void loop()
{
  h = analogRead(hall);
  Serial.println(h);
  delay(1000);
}

No comments:

Post a Comment