0% found this document useful (0 votes)
13 views14 pages

Iot Report

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 14

GUJARAT TECHNOLOGICAL UNIVERSITY

Shree Swami Atmanand Saraswati


Institute of Technology
Affiliated with GTU

A
Project Report
on

“GPS-GSM EMERGENCY BUTTON”


Prepared as a part of the requirements for the subject of

Internet Of Things

B. E. III, Semester - VI

Computer Engineering Department

Submitted by:

Sr. Name of student Enrollment No.


1 Princy Rajeshbhai Suhagiya 210760107072
2 Ruchi Kamleshbhai Talaviya 210760107077
3 Jeshika Hiten Vasoya 210760107079
4 Rushi Parvatbhai Patel 210760107083
5 Srushti Shaileshbhai Hirani 210760107086

Prof. Dipali S. Masalia


(Faculty Guide)

Prof. Chirag R Patel


Head of the Department

Academic
year (2023-24)
Internet of Things(3160716)

SHREE SWAMI ATMANAND SARASWATI


INSTITUTE OF TECHNOLOGY
Shree Swami Atmanand Saraswati Vidya Sankul
Opp. Kapodra Police Station, Varachha
Road, Surat – 395 006.

This is to certify that Project Report on “GPS-GSM EMERGENCY BUTTON”


Submitted under the subject IOT and Applications (3160716) of Computer Engineering
Department during the academic year Jan-May 2024. This Project work has been carried
out under my guidance and supervision and it is up to my satisfaction.

Enrollment No. Name


210760107072 Princy Rajeshbhai Suhagiya
210760107077 Ruchi Kamleshbhai Talaviya
210760107079 Jeshika Hiten Vasoya
210760107083 Rushi Parvatbhai Patel
210760107086 Srushti Shauleshbhai Hirani

Place:
Date: SSASIT, Surat

Prof. Dipali S. Masalia Prof. Chirag R. Patel


(Subject Faculty) Head of the Department
2
Internet of Things(3160716)

Chapter 1: Introduction
The "Guardian Alert: GPS-GSM Emergency Button" project combines GPS and GSM modules with an
Arduino microcontroller to create a portable device capable of sending location information to predefined
contacts during emergencies. Triggered by a press of a button, the system swiftly dispatches an SMS
containing real-time coordinates, providing immediate assistance to the user in distress.

Arduino Nano:

[Fig 1.1: Arduino Nano diagram]

[Fig 1.2: Arduino Nano pin diagram]


The Arduino Nano is an open source breadboard friendly microcontroller board on the microchip
ATmega328P microcontroller(MCU) and developed by Arduino.cc. It offers the same connectivity and
specs of the Arduino Uno board in a smaller form factor. Arduino Nano is a board with smallest dimensions
and features a Mini-B USB connector. The classic Nano is the oldest member of the Arduino Nano family
boards. It is similar to the Arduino Duemilanove but made for the use of a breadboard and has no dedicated
power jack. Successors of the classic Nano are for example the Nano 33 IoT featuring a Wi-Fi module or the
Nano 33 BLE Sense featuring Bluetooth Low Energy(BLE) and several environment sensors.

3
Internet of Things(3160716)

NEO-6M GPS Module:

[Fig 1.3: NEO-6M GPS Module]


This is a complete GPS module that is based on the NEO 6M GPS. This unit uses the latest technology to
give the best possible positioning information and includes a larger built in 25x25mm active GPS antenna
with a UART TL socket. A battery is also included so that you obtain a GPS lock faster. This is an updated
GPS module that can be used with ardupilot mega v2. This GPS module gives the best possible position
information, allowing for better performance with your Ardupilot or other Multirotor control platform. The
GPS module has serial TTL output, it has four pins: TX, RX, VCC, and GND.

[Fig 1.4: NEO-6M GPS Module Pin diagram]

4
Internet of Things(3160716)

Working Principle:
Satellite Signal Reception: The NEO-6M module receives signals from multiple GPS satellites, as well as
other satellite constellations like GLONASS, Galileo, and BeiDou. These satellites transmit signals
containing precise timing information and their own orbital data. It continuously tracks the device’s location
via satellite signals.
Here's a simplified explanation of its working principle:
1. GPS Reception: The module receives signals from GPS satellites orbiting the Earth. These satellites
constantly transmit signals containing information about their position and the exact time of
transmission.
2. Signal Processing: The NEO-6M module processes these signals using its internal hardware,
including a GPS receiver chip and an antenna. It decodes the signals to extract information such as
satellite IDs, signal strength, and time stamps.
3. Position Calculation: By triangulating signals from multiple satellites, the module determines its
own position on Earth through a process called trilateration. This involves calculating distances from
the module to each satellite based on signal travel time.
4. Data Output: Once the module calculates its position, it outputs this data in a standard format,
typically including latitude, longitude, altitude, and time. This data can be accessed by a
microcontroller or other computing device connected to the module.
5. Serial Communication: The NEO-6M module typically communicates with external devices using
serial communication (UART). It sends the processed GPS data to the connected device, which can
then use this information for various purposes such as navigation, tracking, or time synchronization.

Application:
 Vehicle Tracking:
GPS modules like the NEO-6M are often used in vehicle tracking systems for fleet management,
logistics, and stolen vehicle recovery. They provide real-time location data that can be monitored
remotely.
 Navigation Systems:
The module can be integrated into navigation devices such as car GPS systems, handheld GPS units, and
marine navigation equipment to provide accurate positioning and route guidance.
 Geographic Information System:
In GIS applications, GPS modules are used for mapping and surveying purposes to collect spatial data
such as coordinates, elevation, and distance measurements.

5
Internet of Things(3160716)

SIM800L GSM Module:

[Fig 1.5: SIM800L GSM Module]

SIM800L is a miniature cellular module which allows for GPRS transmission, sending and receiving SMS
and making and receiving voice calls. Low cost and small footprint and quad band frequency support make
this module perfect solution for any project that require long range connectivity. After connecting power
module boots up, searches for cellular network and login automatically. On board LED displays connection
state (no network coverage - fast blinking, logged in - slow blinking).

[Fig 1.6: SIM800L GSM Module pin diagram]

6
Internet of Things(3160716)

Chapter 2: Implementation
The GPS-GSM emergency button operates by combining the capabilities of GPS and GSM technologies to
provide a rapid response mechanism in times of crisis. Upon activation, typically by pressing a designated
button, the GPS component pinpoints the device's precise location using signals from satellites. This location
data is then relayed through the GSM module, establishing communication with cellular networks.

Hardware Requirements:
 Arduino Nano
 GPS Module
 GSM Module
 Push Button
 Adapter
 Ion battery

Circuit Diagram:

[Fig 2.1: Circuit diagram]

7
Internet of Things(3160716)
Connection Steps:
1. Gather Components
 Arduino Nano
 GPS Module
 GSM Module
 Push button
 Adapter
 Ion Battery

2. Wire connections
 Connect the Neo-6M GPS module to the Arduino Uno:
o NEO-6M VCC to Arduino 5V
o NEO-6M GND to Arduino GND
o NEO-6M TX to Arduino RX (pin 0)
o NEO-6M RX to Arduino TX (pin 1)
 Connect the SIM800L GSM module to the Arduino Uno:
o SIM800L VCC to Arduino 5V
o SIM800L GND to Arduino GND
o SIM800L TX to Arduino RX (pin 2)
o SIM800L RX to Arduino TX (pin 3)
 Connect the push button to the Arduino Uno:
o One pin of the push button to Arduino digital pin (e.g., pin 7)
o The other pin of the push button to Arduino GND
o You may need a pull-up or pull-down resistor depending on the button configuration.
3. Power supply connections
 Connect the positive terminal of the battery to the Arduino's VIN pin and the negative terminal to
GND.
4. Connection with laptop
 Connect the Arduino with laptop.
 Upload the code to Arduino Nano.

INPUT:
#include <SoftwareSerial.h>
#include <TinyGPS++.h>

// Define GSM and GPS module pins


const int GSM_RX_PIN = 3;
const int GSM_TX_PIN = 2;
const int GPS_RX_PIN = 5;
const int GPS_TX_PIN = 4;
const int BUTTON_PIN = 7;
const int LED_PIN = 13;
8
Internet of Things(3160716)

// Define GSM module


SoftwareSerial gsmSerial(GSM_RX_PIN, GSM_TX_PIN);

// Define GPS module


SoftwareSerial gpsSerial(GPS_RX_PIN, GPS_TX_PIN);

// Define GPS object


TinyGPSPlus gps;

const String phone = "+919879894854"; // Replace with your recipient's phone number
String emergencyMessage = ""; // Global variable to hold the emergency message

void setup() {
// Initialize serial communication
Serial.begin(9600);
gsmSerial.begin(9600);
gpsSerial.begin(9600);

// Set pin modes


pinMode(BUTTON_PIN, INPUT_PULLUP);
pinMode(LED_PIN, OUTPUT);
}

void loop() {
// Check if button is pressed
if (digitalRead(BUTTON_PIN) == LOW) {
// Button is pressed, send emergency message with GPS coordinates
sendEmergencyMessage();
delay(1000);// Delay to avoid sending multiple messages
}

// Check for GPS data


while (gpsSerial.available() > 0) {
if (gps.encode(gpsSerial.read())) {
// GPS data is available
if (gps.location.isValid()) {
// GPS location is valid, generate emergency message with GPS coordinates
emergencyMessage = "I Am In Trouble Please Help ME, Location:
https://www.google.com/maps/place/" + String(gps.location.lat(), 6) + "N+" +
String(gps.location.lng(), 6) + "E";
sendEmergencyMessage();// Send the emergency message
delay(1000);// Delay to avoid sending multiple messages
}
9
Internet of Things(3160716)
}
}
}

void sendEmergencyMessage() {
// Send SMS message with emergency alert and GPS coordinates
gsmSerial.println("AT+CMGF=1"); // Set SMS mode to text
delay(100);
gsmSerial.print("AT+CMGS=\"");
gsmSerial.print(phone);
gsmSerial.println("\"");
delay(100);
gsmSerial.print(emergencyMessage); // Send the emergency message stored in the global variable
delay(100);
gsmSerial.write(26); // End SMS with CTRL+Z
delay(100);
Serial.println(emergencyMessage); // Send the emergency message stored in the global variable
Serial.println("SMS Content: " + emergencyMessage);// Serial print the message content
Serial.println("SMS Sent Successfully: " + emergencyMessage); // Serial print the message sent
}

OUTPUT:

1
0
Internet of Things(3160716)

1
1
Internet of Things(3160716)

Chapter 3: Conclusion and Future Scope

In conclusion, the GPS-GSM emergency button represents a crucial advancement in personal safety
technology, offering a lifeline in times of peril. By seamlessly integrating GPS for precise location tracking
and GSM for instantaneous communication, this device provides individuals with a powerful tool to
summon help swiftly and efficiently. Whether in remote areas or urban environments, the ability to transmit
accurate location data to designated contacts or emergency services can make all the difference in critical
situations. The GPS-GSM emergency button stands as a beacon of reassurance, ensuring that help is always
within reach, no matter the circumstances. Its role in enhancing emergency response capabilities and
safeguarding lives underscores its indispensable value in today's interconnected world. GPS-GSM
Emergency Button" offers a robust solution for prompt assistance during emergencies. Its compact design
and intuitive operation empower users with a reliable means of seeking aid. The selection of a 1 amp TV
adapter ensures consistent power supply, enhancing system stability. Future enhancements may include
battery monitoring, smartphone app integration, and emergency service collaboration for enhanced response
capabilities.

Future Scope:
The future scope of GPS-GSM emergency buttons holds significant potential for further innovation and
advancement in personal safety technology. Here are some potential directions for future development:

1. Enhanced Connectivity: Future GPS-GSM emergency buttons could leverage emerging communication
technologies such as 5G or satellite-based communication systems to improve connectivity and coverage,
ensuring that emergency alerts can be transmitted even in remote or challenging environments.

2. Integration with Wearable Devices: Integration with wearable devices such as smartwatches or health
trackers could enable seamless incorporation of emergency button functionality into everyday
accessories. This would enhance accessibility and encourage widespread adoption among users
concerned about personal safety.

3. Real-Time Monitoring and Response: Advanced GPS-GSM emergency buttons could incorporate real-
time monitoring features, allowing designated contacts or emergency services to track the user's location
continuously. This capability would facilitate faster response times and enable proactive assistance in
emergency situations.

4. AI and Machine Learning Integration: Integration of AI (Artificial Intelligence) and machine learning
algorithms could enable GPS-GSM emergency buttons to analyze data patterns and predict potential
emergencies based on user behavior or environmental factors. This proactive approach could help prevent
accidents or mitigate risks before they escalate.

5. Multi-Functional Capabilities: Future GPS-GSM emergency buttons may offer expanded functionality
beyond emergency alerts, such as health monitoring, environmental sensing, or integration with smart
home automation systems. This would transform the device into a versatile tool for personal safety and
well-being.

6. Integration with Emergency Services Infrastructure: Collaboration with emergency services


providers and integration with existing emergency response infrastructure could streamline the dispatch
process and ensure seamless coordination between users, emergency responders, and other stakeholders.

12
Internet of Things(3160716)

7. Global Adoption and Standardization: Efforts to promote global adoption and standardization of GPS-
GSM emergency button technology could facilitate interoperability between devices and ensure
consistent performance and reliability across different regions and jurisdictions.

13
Internet of Things(3160716)

References

1. https://www.youtube.com/watch?v=E-5vazIDznc
2. https://components101.com/wireless/sim800l-gsm-module-pinout-datasheet-equivalent-circuit-
specs
3. https://justdoelectronics.com/gps-neo-6m-module/#:~:text=different%20electronic
%20devices.-,Working%20Principle,and%20their%20own%20orbital%20data.
4. https://techiesms.com/product/multipurpose-gps-tracker-kit/

14

You might also like