Thursday, 28 May 2015

Basic hall effect sensor project using arduino uno

                                       A Hall Effect Sensor is transducer that varies its output voltage in response to magnetic field.


Step 1 : components require

  • Hall effect sensor (we use AH44E sensor)
  • 10M resistor
  • 3 wires for connection 
  • Arduino uno
  • any type of magnet       
Step 2 :

  •     Resistor connect between pin 1(+vcc) & pin 3(digital output)






Step 3 : connection



  • connect sensor pin 1 to +5V pin of arduino  (Green wire)
  • connect sensor pin 2 to Gnd pin of arduino (White wire)
  • connect pin 3 of sensor to arduino 12 number pin (Red wire)






  • Step 4 : load program to arduino

    Below program are paste in arduino programing


    const int hallPin = 12;     // number of the hall effect sensor pin
    const int ledPin =  13;     // the number of the LED pin
    // variables will change:
    int hallState = 0;          // the hall sensor status

    void setup() {
      // initialize the LED pin as output:
      pinMode(ledPin, OUTPUT);    
      // initialize the hall effect sensor pin as input:
      pinMode(hallPin, INPUT);  
    }

    void loop(){
      // read the state of the hall effect sensor:
      hallState = digitalRead(hallPin);

      if (hallState == LOW) {  
        // turn LED on:  
        digitalWrite(ledPin, HIGH);
      }
      else {
        // turn LED off:
        digitalWrite(ledPin, LOW);
      }
    }











    Watch Video :


    2 comments:

    1. This comment has been removed by the author.

      ReplyDelete
    2. mr Rutvik Karkar
      thank you very much
      more power more success

      ReplyDelete