Daini
Published © CC BY

How To Make Emergency Neighbour notifier

The project alerts the Neighbors with an alert message sent by a fellow neighbors through GSM module

IntermediateWork in progress2 hours1,221
How To Make Emergency Neighbour notifier

Things used in this project

Story

Read more

Schematics

Schematic For this project

Code

CODE For Gsm

Arduino
int state = 0;
const int pin = 8;
void setup()
{
  Serial.begin(9600);
}
void loop()
{
  if (digitalRead(pin) == HIGH && state == 0) {
    Serial.print("\r");
    delay(100);
    Serial.print("AT+CMGF=1\r");
    delay(100);
    Serial.print("AT+CMGS=\"+aabbbbbbbbbb\"\r");
    Serial.print("AT+CMGS=\"+aacccccccccc\"\r");
    Serial.print("AT+CMGS=\"+aacccccccccc\"\r");//International no.
    delay(100);
    Serial.print("HELP,Flat No 201-A");//Emergeny message
    delay(100);
    Serial.write(0x1A);
    delay(100);
    state = 1;
  }
 if (digitalRead(pin) == LOW && state == 1) {
    state = 0;
  }
}

Credits

Daini
31 projects • 17 followers

Comments