Himanshu Bharti
Created October 4, 2021

Women/Elder safety wearable device

This project is a wearable prototype for safety of women and elder people which is based on ESP32

Work in progress25
Women/Elder safety wearable device

Things used in this project

Hardware components

ESP32S Development Board (WIFI+BLUETOOTH)
×1
SIM800L GPRS GSM
×1
Heartbeat/Pulse Sensor Module
×1
Breadboard (generic)
Breadboard (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

The website for location tracking in function

This image dhow the current location of the device

Code

Esp32 code for the project

Arduino
#include<WiFi.h>
#include <ThingESP.h>
#include <SoftwareSerial.h>
SoftwareSerial mySerial(22, 23);
ThingESP32 thing("HimBha","AlertMessage","1234567890");
int Button = 15;


void setup() {
  // put your setup code here, to run once:
   mySerial.begin(115200);
   Serial.begin(115200);
   Serial.println("Initializing...");
   delay(1000);
   mySerial.println("Attention");                 // Sends an ATTENTION command, reply should be OK
   mySerial.println("AT+CMGF=1");          // Configuration for sending SMS

  //.............
  // For whatsapp begin
   pinMode(Button,INPUT);
   thing.SetWiFi("ASUS_X00T","Phone1234");
   thing.initDevice();
}
void loop() {
  // put your main code here, to run repeatedly:
  
  if(digitalRead(Button) == HIGH){
    sendSMS(); // For sending message
    String msg1 = "Help I am in an Emergency \n For my location go to the site - https://thingesp.siddhesh.me/#/console/project/AlertMessage \n There you login - \n Username - HimBha \n Password - P9w8UTP6SFcnE3W"; 
    thing.sendMsg("+917250254807",msg1);
     Serial.println("Message send");
    }
  thing.Handle();
}
void sendSMS(){
  mySerial.println("AT+CMGF=1");
  delay(500);
  mySerial.println("AT+CMGS=\"+917250254807\"\r");
  delay(500);
  mySerial.print("Emergeny!!Track my number");
  delay(1000);
  mySerial.write(26);
}

Credits

Himanshu Bharti
2 projects • 0 followers

Comments