Bluetooth Based Calling system in Elevator

In this lesson, we will be discussing on how to communicate with the people outside an elevator when stocked in the elevator system using Android Application.

Now-a-days we can find huge number of apartments and commercial buildings crowded in nearby area with multi storage building capacity .The apartments consist of several floors. This paper better suits for all, mainly for on the area of emergency for people in the elevator. To move from one floor to another we generally use staircase or Elevator which is normally operated by using switches. The main purpose of this paper is to design a Bluetooth based caller system in elevator, which involves android phone technology (Bluetooth) and microcontroller technology.

Key Words: Bluetooth Module & Elevator

To watch Video on YouTube Click here

To download the App Click here


Introduction:

With the overall rapid development taking place in all spheres, the living standard of human being particularly in urban areas has tremendously increased as such the high rise buildings are constructed for malls, and housing purposes. Thus the installation of elevators in these high rise buildings becomes an integral part of the infrastructure for the movement of goods and people. So, the control system is essential in the smooth and safe operation of the elevator. It guides the elevator in what order to stop at floors, when to open or close the door etc. Elevator or lift is a transport device that is very common to us nowadays. We use it every day to move goods or peoples vertically in a high building such as Shopping center, working office, hotel and many more. It is a very useful device that moves people to the desired floor in the shortest time. This paper dissertation documents the findings and results of a research on an elevator emergency control by using wireless technology (Bluetooth module) and micro-controller. It provides information, which is useful to those who wish to carry out a lift control system research or paper. In this paper, emergency control system is going to be produce by using microcontroller. Thus, the main objectives for this paper is to design and construct Bluetooth based caller system in elevator by using wireless technology (Bluetooth).There are some scopes which needed to achieve them, To design Bluetooth based caller system in elevator by using microcontroller and wireless technology (Bluetooth) to design the program (software) for the overall system according to the real lift traffic management algorithm. To integrate the hardware and software in order to simulate the functions of a basic lift system and app.

Below is the circuit diagram


Code below

#include <SoftwareSerial.h>
#include <LiquidCrystal_I2C.h>
SoftwareSerial mySerial(2, 3); // RX, TX
LiquidCrystal_I2C lcd(0x27, 16,2);

int stop_button= 8, buzzer= 7 ;

int Val;
int c = 0;
int top = 10 ;
int top1 = 20 ;
int top2 = 30;
int top3 ;

void setup() 
{
  digitalWrite(buzzer,LOW);
  lcd.init();
  lcd.backlight();
  lcd.setCursor(0, 0);
  lcd.print("Bluetooth based");
  lcd.setCursor(0, 1);
  lcd.print("Calling System");
  delay(3000);
  lcd.clear();
  lcd.setCursor(0, 0);
  lcd.print("You are Welcome!!!");
  mySerial.begin(9600);
  mySerial.println(F("You are Welcome!!!"));
  pinMode(stop_button,INPUT);
  pinMode(buzzer,OUTPUT);
}

void loop() 
{  
here: 
   if (mySerial.available() > 0) 
  { 
     c = mySerial.read();

    if (top == 0)
    {
      repeat();
      goto here;
    }

    if (top2 == 0)
    {
      reply();
    }
     if (c == 'A')
    {
      top3 = 30;
      top2 = 0;
      mySerial.println(F("Which Floor is That")); 
      lcd.clear();
      lcd.setCursor(0, 0);
      lcd.print("Emergency Occured"); 
      lcd.setCursor(0, 1);
      lcd.print("At the Elevator");
    }
    
    if ((c == 'E') && ( top == 30))
    {
      mySerial.println(F("Please Tell us your new location"));
      top = 0;
      top1 = 20;
      top2 = 30;
      top3 == 0;
      lcd.clear();
      lcd.setCursor(0, 0);
      lcd.print("Wrong Location"); 
      lcd.setCursor(0, 1);
      lcd.print("    Please!!!");
    } 
  }
  
  if (top1 == 0)
  {
    alarm_set();
  }
  Val = (digitalRead(stop_button));
  if (Val == HIGH)
    {
      lcd.clear();
      lcd.setCursor(0, 0);
      lcd.print("You are Welcome!!!");
      mySerial.println(F("The problem have been Resolved"));
      top1 = 20;
      top2 = 30;
      delay(1000);
    }
    Serial.println(Val);
    delay(500);

void alarm_set()
 {
     digitalWrite(buzzer, HIGH);
     delay(400);
     digitalWrite(buzzer,LOW);
     delay(30);
  }
  
void repeat()
 {  
     if (c == 'B') 
    {
      mySerial.println(F("Ok!, We are coming to 1st floor now."));
      top = 10;
      top1 = 0;
      lcd.clear();
      lcd.setCursor(0, 0);
      lcd.print("Emergency Occured"); 
      lcd.setCursor(0, 1);
      lcd.print("At the 1st Floor");
      }
   else if (c == 'C') 
    {
      mySerial.println(F("Ok!, We are coming to 2nd floor now."));
      top = 10;
      top1 = 0;
      lcd.clear();
      lcd.setCursor(0, 0);
      lcd.print("Emergency Occured"); 
      lcd.setCursor(0, 1);
      lcd.print("At the 2nd Floor");
      }
   else if (c == 'D') 
    {
      mySerial.println(F("Ok!, We are coming to 3rd floor now."));
      top = 10;
      top1 = 0;
      lcd.clear();
      lcd.setCursor(0, 0);
      lcd.print("Emergency Occured"); 
      lcd.setCursor(0, 1);
      lcd.print("At the 3rd Floor");
      }
     else if (c == 'E') 
    {
      mySerial.println(F("Please Tell us your new location"));
      top = 0;
      top1 = 20;
      top2 = 30;
      lcd.clear();
      lcd.setCursor(0, 0);
      lcd.print("Wrong Location"); 
      lcd.setCursor(0, 1);
      lcd.print("    Please!!!");
    }
   }

  void reply()
  {
      if (c == 'B') 
    {
      mySerial.println(F("Ok!, We are coming to 1st floor now."));
      top1 = 0;
      lcd.clear();
      lcd.setCursor(0, 0);
      lcd.print("Emergency Occured"); 
      lcd.setCursor(0, 1);
      lcd.print("At the 1st Floor");
    }

   else if (c == 'C') 
    {
      mySerial.println(F("Ok!, We are coming to 2nd floor now."));
      top1 = 0;
      lcd.clear();
      lcd.setCursor(0, 0);
      lcd.print("Emergency Occured"); 
      lcd.setCursor(0, 1);
      lcd.print("At the 2nd Floor");
    }
   else if (c == 'D') 
      {
      mySerial.println(F("Ok!, We are coming to 3rd floor now."));
      top1 = 0;
      lcd.clear();
      lcd.setCursor(0, 0);
      lcd.print("Emergency Occured"); 
      lcd.setCursor(0, 1);
      lcd.print("At the 3rd Floor");
      }
      else if (c == 'E') 
    {
      mySerial.println(F("Please Tell us your new location"));
      top = 0;
      top1 = 20;
      top2 = 30;
      lcd.clear();
      lcd.setCursor(0, 0);
      lcd.print("Wrong Location"); 
      lcd.setCursor(0, 1);
      lcd.print("    Please!!!");
    }
  }

Conclusion

This lesson deals with programming and through it we can communicate the people outside the elevator we the means Bluetooth technology using an android application as an interface for the people inside the elevator and a liquid crystal display as an interface for the person outside. A note command is generated at each and every stage of elevator and. If when the persons in the elevator in counter any issue, with the app he/she can communicate outside telling them the floor where issue occur. Bluetooth is used as a wireless technology to transfer data from mobile to the elevator and vise vaser.



Share:

No comments: