Site icon Circuit Ideas for You

Women Safety Alarm Circuit using GPS GSM NodeMCU

This article is for Women Safety Alarm Circuit using GPS GSM NodeMCU, it uses NodeMCU ESP8266 board as brain.

Here, GPS module give location, GSM module send SMS to family and one push button used to send alert.

Arduino Code:

#include <SoftwareSerial.h>
#include <TinyGPS.h>

SoftwareSerial gpsSerial(D6, D5);
SoftwareSerial gsmSerial(D3, D2);
TinyGPS gps;

float lat, lon;
int buttonPin = D1;

void setup() {
pinMode(buttonPin, INPUT_PULLUP);
Serial.begin(9600);
gpsSerial.begin(9600);
gsmSerial.begin(9600);
delay(1000);
gsmSerial.println("AT");
delay(1000);
gsmSerial.println("AT+CMGF=1");
delay(1000);
}

void loop() {
while (gpsSerial.available()) {
gps.encode(gpsSerial.read());
gps.f_get_position(&lat, &lon);
}

if (digitalRead(buttonPin) == LOW) {
sendLocationSMS(lat, lon);
delay(10000);
}
}

void sendLocationSMS(float lat, float lon) {
gsmSerial.println("AT+CMGF=1");
delay(500);
gsmSerial.println("AT+CMGS="+911234567890"");
delay(500);
gsmSerial.print("I am in danger. My Location: ");
gsmSerial.print("https://maps.google.com/?q=
");
gsmSerial.print(lat, 6);
gsmSerial.print(",");
gsmSerial.print(lon, 6);
gsmSerial.write(26);
delay(5000);
}

Coding Explanation:

Circuit Working:

Women Safety Alarm Circuit Diagram using GPS GSM NodeMCU

Parts List:

ComponentsQuantity
NodeMCU ESP8266 Board1
GPS Module (NEO-6M)1
GSM Module (SIM800L or SIM900)1
Tactile Switch1
USB Cable or Battery (5V)1

NodeMCU ESP8266 is a main controller controls GPS and GSM.

The GPS module (NEO-6M) connects to the NodeMCU TX/RX pins and provides real-time latitude and longitude data to the NodeMCU.

Then the GSM module sends an SMS to the stored phone number.

After that, push button tactile switch when pressed sends signal to NodeMCU to start alert process.

The NodeMCU powers the GPS and GSM modules using its 3.3V and VIN pins, with a common GND connection, the NodeMCU itself receives power through a USB connection or a battery.

The GPS continuously sends location data to the NodeMCU and the NodeMCU also detects button presses.

NodeMCU collects GPS location and then NodeMCU sends SMS with location through GSM module and finally, alert reaches family or emergency contacts.

How to Build:

To build a Women Safety Alarm Circuit using GPS GSM NodeMCU follow the below steps for connections:

Conclusion:

To conclude, this small circuit helps women in danger; one button press will send location SMS fast.

Also, this circuit is simple, low cost and portable.

Exit mobile version