New Project

CONNECT

Making Magnetic Detector With Arduino

  • Page Views 858
  • Spread the love
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  

    In this project we will do mentioning the magnetic sensor using a simple making magnetic detector with Arduino.In our project, the alarm will be activated as soon as the magnetic field is detected, and it will understand that the magnetic field.

    Study Magnetic Sensor Logic:

    Relay closes on magnetic sensors magnetic field and thus entered the data voltage circuit.
    0ver the normal state, while the magnetic field 5v give.

    Materials:

    • Arduino
    • Magnetic Sensor
    • LCD (16 × 2)
    • buzzer
    • Jumper cables

     

    Electronic Circuits Links:
    It is shown in the image sensor that we used in the project.Also available in over 4 pin.He writes the names on the pins.3.dijital A0 pin to pin to the DO pin of the 13 digital pins, we’re connecting 5v to 5v and GND GND pins.

     

    Because we use the project Scl LCD serial converter, we insert the Sde pin s standard I2C pins on the Arduino.Using the I2C protocol to communicate with the Arduino software, we realized the LCD.10. We are installing a buzzer signal in the digital pin to pin.

    Software Part:

    //Software development By Robimek - 2015
    // Software Licensing By Robimek
    //www.robimek.com
    
    #include <Wire.h>
    #include <LiquidCrystal_I2C.h>
    LiquidCrystal_I2C lcd(0x27,16,2);
    int Led = 13 ;
    int sinyalpin = 3;
    int val ;
    int buzzerpin = 10;
    void setup ()
    {
    lcd.init();
    lcd.backlight();
    lcd.print("Dedektor");
    pinMode(buzzerpin, OUTPUT);
    pinMode (Led, OUTPUT) ;
    pinMode (sinyalpin, INPUT) ;
    digitalWrite(buzzerpin,HIGH);
    }
    void loop ()
    {
    
    val = digitalRead (sinyalpin ) ;
    if (val == HIGH)
    {
    
    lcd.setCursor(0, 1);
    lcd.print("Manyetik yok");
    digitalWrite (Led, LOW);
    digitalWrite(buzzerpin,HIGH);
    
    }
    else
    {
    
    lcd.setCursor(0, 1);
    lcd.print("Manyetik var");
    beep(500);
    digitalWrite (Led, HIGH);
    }
    }
    void beep(unsigned char delayms){
    analogWrite(10, 255);
    delay(delayms);
    analogWrite(10, 150);
    delay(delayms);
    
    }

    We completed our project.Now we had a simple detector can determine whether the magnetic field.

    Note: Due to the magnetic sensor can adjust the knob on the magnetic detection sensitivity.

    Share

    2 Comments For "Making Magnetic Detector With Arduino"

    1. Louise
      May 20, 2016

      There's nothing like programming for yourself to appreciate someone else's prnorammigg.Some people explore new territory. Some people use maps the explorers created to get there. And some people take the bus to get there.

      Reply

    Leave a comment

    Your email address will not be published. Required fields are marked *

    BE A FACEBOOK FAN

    Instagram