bansode_rahultejassunildalvi
Published

Marker Beacon System with IR Sensors, Buzzer and LED

Three marker beacon station (IR Sensors) are on the ground and detecting the aircraft is approaching the runway passing over the Markers.

AdvancedFull instructions provided1,977
Marker Beacon System with IR Sensors, Buzzer and LED

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
IR Proximity Sensor
Digilent IR Proximity Sensor
×4
5 mm LED: Red
5 mm LED: Red
×3
Speaker, Micro
Speaker, Micro
×1
Breadboard (generic)
Breadboard (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Multitool, Screwdriver
Multitool, Screwdriver
Plier, Long Nose
Plier, Long Nose

Story

Read more

Custom parts and enclosures

Block Diagram

Schematics

Circuit Diagram

A) IR Proximity sensor connections:
1. Connect OUT of inner marker (Sensor) to Arduino's digital pin 6.
2. Then connect the OUT of middle marker (Sensor) to Arduino's digital pin 7.
3. Same as inner and middle connect the OUT of outer marker (Sensor) to Arduino's digital pin 8
4. Then connect OUT of NRI (No Return Indication sensor) to Arduino's digital pin 10.
5. Connect the GRD i.e. (ground) of all sensors to Arduino's pin ground.
6. Connect VCC of all sensors to Arduino's pin of +5 V.

B) LED's connections:
1. Connect +ve terminal of inner marker (LED) to arduino's digital pin 4.
2. Then connect the +ve terminal of middle marker (LED) to Arduino's digital pin 2.
3. Connect the +ve of outer marker (LED) to Arduino's digital pin 3.
4. After that connect all the -ve outer marker (LED) to Arduino's pin ground.

C) Buzzer connection:
1. Connect one terminal to Arduino's digital pin 11.
1. Connect another terminal to arduino's Pin GRD.
Circuit diagram stanltjx1s

Code

Source Code For Marker Beacon System

C/C++
int irInner=6,irMiddle=7,irOuter=8,irRunway=10;
int ledInner=4,ledMiddle=2,ledOuter=3;
int sound = 11;              // Declaration of variables with pin numbers of components
int valIn=0,valMd=0,valOt=0,valRunway=0;
int check1=0, check2=0, check3=0;  // Declaration and initialization of variables

void setup()
{
  
  Serial.begin(9600);
  
  pinMode(irInner, INPUT_PULLUP);  // input component
  pinMode(ledInner, OUTPUT);       //output component
  
   pinMode(irMiddle, INPUT_PULLUP);
  pinMode(ledMiddle, OUTPUT);
  
   pinMode(irOuter, INPUT_PULLUP);
  pinMode(ledOuter, OUTPUT);

  pinMode(irRunway,INPUT_PULLUP); 
  
}

void loop()
{
 
  valIn=digitalRead(irInner);  //getting current state of sensor(HIGH or LOW)
  valMd=digitalRead(irMiddle);
  valOt=digitalRead(irOuter);
  valRunway=digitalRead(irRunway);


      if(valOt==LOW  )  //if obstacle on outer sensor
      {
        digitalWrite(ledOuter, HIGH); //led on
        check1=1;
      }
      else
      {
        digitalWrite(ledOuter,LOW); //led off
      }

  
      if(valMd==LOW )
      { 
        digitalWrite(ledMiddle, HIGH);
        check1=0;
        check2=1;
      }
      else
      {
        digitalWrite(ledMiddle, LOW);
      }
     
      
      if(valIn==LOW  )
      {  
        digitalWrite(ledInner, HIGH);
        check3=1;
        check2=0;
      } 
      else
      {
        digitalWrite(ledInner, LOW);
      }

       if(valRunway==LOW)
       {
       check3=0;
        delay(6000);  //programme execution delay for 6 sec
       }

  
      if(check1==1) //
      {
        tone(sound, 1000, 350); //buzzer or speaker making sound
        delay(500);
      }
      if(check2==1)
      {
        tone(sounds, 4000, 100);
        delay(150);
        tone(sounds, 1000, 150);
        delay(300);

      }
      if(check3==1)
      {
          tone(sound, 4000, 100);
        delay(150);
      }
      
}

Credits

bansode_rahul

bansode_rahul

1 project • 1 follower
tejassunildalvi

tejassunildalvi

2 projects • 1 follower

Comments