You are on page 1of 61

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION, MUMBAI

A
Project Report
On
“Multipurpose Iot Tracker”
In Partial Fulfillment Of The Requirement For Three Years
Diploma In Computer Engineering
Submitted By
Sr. No. First Name Middle Surname Enrollment No.

1. Suyash Satish Kerkar 2117420203

2. Manas Dattaram Desai 2117420207

3. Manasvi Sanjay Parab 2117420217

4. Shejal Angad Chandekar 2117420220

Under The Guidance Of


Ms. T.V. Gawandi

Department of Computer Engineering


Yashwantrao Bhonsale Institute Of Technology
A/P: Charatha, Tal: Sawantwadi, Dist: Sindhudurg, 416510
Academic Year 2023-24
1. Declaration and Approval

We undersigned solemnly declare that the project report Multipurpose IoT Tracker is
based on our own work carried out during the course of our study under the supervision
of Ms. T.V. Gawandi. We assert the statements made and conclusions drawn are an
outcome of our research work.
We further certify that,
• The work contained in the report is original and has been done by me under the
general supervision of my supervisor.
• The work has not been submitted to any other Institution for any other
degree/diploma/certificate in this university or any other University of India or
abroad.
• We have followed the guidelines provided by the university in writing the report.
• Whenever we have used materials (data, theoretical analysis, and text) from
other sources, we have given due credit to them in the text of the report and
giving their details in the references.

Suyash S. Kerkar (2117420203)


Manas D. Desai (2117420207)
Manasvi S. Parab (2117420217)
Shejal A. Chandekar (2117420220)
This undertaken project work is record of student own work carried out by
them during the academic year 2023-24

YASHWANTRAO BHONSALE INSTITUTE OF TECHNOLOGY

CERTIFICATE
This is to certify that Suyash S. Kerkar (2117420203), Manas D.
Desai (2117420207), Manasvi S. Parab (2117420217), Shejal A. Chandekar
(2117420220) has successfully completed and submitted project report in titled
“Multipurpose IoT Tracker “in the partial fulfillment for the award of
MSBTE, Mumbai three years diploma in Computer Engineering.

Ms. T.V. Gawandi Mr. P.D. Kate


(Guide) ( Head of Department)
Mr. R.C. Dhandekar
(Project Coordinator) (External Examiner)

Mr. G. A. Bhosale Dr. R. R. Bane


(Vice Principal) (Principal)
Seal of
Institute
Acknowledgment______________________________________
This work is just not an individual contribution still its completion. We have taken this
opportunity to thank all for bringing it close to the conclusion. A special thanks goes to our
Guide, Ms. T.V. Gawandi and Project Co-Ordinator Mr. R.C. Dhandekar for leading us
to many new insights, encouraging and teaching us how to get down to the root of the
problem.

We are also grateful to Mr. P. D. Kate, HOD Computer Department and the Computer
Department faculty and staff members for their support.

It's our privilege and honour to represent our gratitude towards Dr. R. R. Bane Principal
and Mr. G. A Bhosale Vice-Principal of Yashwantrao Bhonsale Institute of Technology
for giving us this opportunity.

We are also thankful to all Colleagues, Friends & Well-Wishers for support during the
demanding period of this work, asking questions and providing feedback and suggestions
for improving our ideas.

This document, in its eternity (as with everything we have or have yet to accomplish) is
attributable to the Parents, whose strength and compassion are our constant inspiration.

Thank You all,

Suyash S. Kerkar [2117420203]

Manas D. Desai [2117420207]

Manasvi S. Parab [2117420217]

Shejal A. Chandekar [2117420220]


Abstract________________________________________________
This project is about an Internet of Things (IoT) device, empowered by the A9G module
and ESP32 microcontroller. It caters to fulfill needs within the security, surveillance, and
personal safety domains. Audio monitoring, achieved through cellular network
connectivity, equips users with valuable security insights. An integrated SOS button
supports personal safety by transmitting the user's location via SMS and initiating an
emergency call upon activation. Real-time location tracking is readily accessible; a simple
SMS command generates a Google Maps link with precise coordinates, ensuring user
safety and well-being. Custom-designed PCBs hardware integration, makes the assembly
to be compact and efficient design. This multifaceted solution, encompassing both security
and personal safety functionalities, showing the practical applications of emerging
technologies. By harnessing the power of the A9G and ESP32, the device provides valuable
tools for safeguarding individuals and assets, demonstrating the potential of the IoT
landscape.
INDEX
Sr. No Name Of Chapter Page No.
1 INTRODUCTION 1-3
1.1 Project Preface
1.2 Detailed Problem Definition
2 ANALYSIS 4 -7
2.1 Requirement Specification
2.2 Process Model used For the System
2.3 Purpose
3 DESIGN 8-9
3.1 Circuit Connection diagram
4 SYSTEM MODELING 10 – 17
4.1 Voice Tracking Flowchart
4.2 Location Tracking Flowchart
4.3 SOS Feature Flowchart
4.4 ER diagram
5 RELATIVE THEORY 18 – 23
5.1 Hardware Used
6 IMPLEMENTATION 24 – 31
6.1 Integrated System
6.2 Program Code
7 TESTING 32 – 34
8 OUTPUT 35 – 36
9 FEATURES 37 – 38
10 FUTURE SCOPE 39 – 41
11 CONCLUSION 42 – 43
12 REVIEW PAPER PUBLICATION 44 – 53
13 REFERENCES 54 - 56
Department of Computer Engineering Multipurpose IoT Tracker

CHAPTER-1

INTRODUCTION

Page | 1

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

1.1Project Preface

In our ever-connected world, the demand for smarter and more versatile technologies has
grown exponentially. As we witness the widespread adoption of Internet of Things (IoT)
devices, there emerges a need for innovative solutions that cater to diverse applications.
This project, the "Multipurpose IoT Tracker," is a step towards fulfilling this demand,
presenting a compact and efficient device that combines GPS tracking, audio surveillance,
and an SOS button for emergency situations. Imagine a device that not only tracks the
location of valuable items or individuals in real-time but also allows you to listen to audio
conversations. It also has an SOS button that, when pressed, not only shares your precise
location but initiates an emergency call for immediate assistance. This isn't just a
technological dream—it's the reality we're bringing to life. At the heart of this project is
the A9G module and ESP32-based microcontroller, working together seamlessly to create
a device that embodies simplicity and functionality. Custom-designed printed circuit
boards (PCBs) ensure that the hardware integration is user-friendly, making it accessible
to both enthusiasts and professionals alike.
The significance of this project lies in its versatility. Whether you're a parent wanting to
ensure your child's safety, a business owner safeguarding valuable asset, or an individual
prioritizing personal security, the "Multipurpose IoT Tracker" offers a solution tailored to
your needs. Throughout this report, we will take you on a journey through the development
process, the integration of cutting-edge components, and the testing phases that guarantee
the reliability of this smart tracking device. We'll explore its key features, including GPS
tracking accuracy, audio surveillance capabilities, and the intuitive SOS button
functionality. As you read through, envision a future where IoT technology seamlessly
integrates into our daily lives, providing not just convenience but also enhancing our safety
and security. The "Multipurpose IoT Tracker" is not just a device—it's a glimpse into the
future of smart tracking solutions, where innovation meets practicality in a way that
empowers individuals and businesses alike. Welcome to a new era of intelligent tracking,
where simplicity and functionality coexist to redefine the way we approach security,
surveillance, and personal safety.

Page | 2

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

1.2 Detailed Problem Definition

In the contemporary landscape, the increasing reliance on technology for tracking and
surveillance has exposed a crucial gap in the market—a lack of a truly versatile and
multifunctional IoT tracking device. Existing solutions often fall short in providing a
comprehensive set of features that cater to diverse needs. Traditional GPS trackers offer
location monitoring but lack audio surveillance capabilities, limiting their application
scope. Moreover, emergency communication tools often lack seamless integration with
tracking functionalities. This project seeks to address these limitations by presenting the
"Multipurpose IoT Tracker." The problem at hand is the absence of a consolidated and
user-friendly device that seamlessly combines GPS tracking, audio surveillance, and
emergency communication through an intuitive SOS button. The need for such a device is
evident in scenarios ranging from ensuring the safety of children to tracking valuable assets
and enhancing personal security. Current solutions are fragmented, requiring users to invest
in separate devices for distinct functionalities, resulting in increased costs and operational
complexities. The lack of an all-encompassing IoT tracker hinders the potential
applications in various domains, restricting the holistic approach needed for modern
tracking solutions. This project aims to bridge this gap, providing a comprehensive and
accessible solution that not only meets the current demands of diverse user scenarios but
also paves the way for future innovations in the IoT tracking landscape.

Page | 3

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

CHAPTER-2

ANALYSIS

Page | 4

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

2.1 Requirement Specification:

2.1.1 Overall Description:

• Overview: The Multipurpose IoT Tracker is a compact device that integrates GPS
tracking, audio surveillance, and an SOS button for emergency communication.
The device is designed to cater to a variety of scenarios, from asset tracking to
personal safety. By combining the capabilities of the A9G module and ESP32
microcontroller, the IoT tracker ensures efficient and reliable performance. The
overall design aims for user-friendliness and versatility.

• Description: The device is compact and lightweight, featuring a robust casing for
durability. It utilizes the A9G module for GPS tracking and cellular
communication, enabling real-time location monitoring. The ESP32
microcontroller manages the audio surveillance feature, allowing users to monitor
conversations through a cellular network. An intuitive SOS button initiates
emergency communication, sending the user’s location via SMS and enabling an
SOS call when held down. Custom-designed PCBs streamline hardware
integration, ensuring a seamless user experience.

• Product Perspective: The Multipurpose IoT Tracker operates as a standalone


device, requiring a standard SIM card for cellular communication. It interacts with
users through a simple button interface, providing feedback via LED indicators.
The product perspective encompasses integration with existing IoT ecosystems,
allowing for future compatibility enhancements. It operates on low power,
optimizing energy consumption for extended use. The device is positioned as a
versatile tracking solution that can be replicated through provided kits, encouraging
exploration in the IoT field.

Page | 5

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

2.1.2 Specific Requirement:

The Multipurpose IoT Tracker demands a set of specific requirements to ensure its
seamless integration and efficient performance. Hardware components include the
utilization of an A9G module for precise GPS tracking and cellular communication, an
ESP32 microcontroller for audio surveillance, and custom-designed printed circuit boards
(PCBs) for streamlined integration. The device’s user interface involves a simple button
interface for user interaction and LED indicators for clear feedback. The software must
incorporate firmware for the A9G module to handle GPS tracking and communication, as
well as software for the ESP32 microcontroller to manage audio surveillance. Functionally,
the tracker must deliver real-time GPS tracking with high accuracy, audio monitoring
through a cellular network, and responsive SOS button functionality for emergency
communication. The design emphasizes low power consumption for extended use,
compatibility with standard SIM cards. Performance requirements include reliable and
prompt tracking, clear audio surveillance, and a durable hardware design for robust
functionality.

2.2 Process Model Used For The System:

For the development of the Multipurpose IoT Tracker system, the chosen process model is
the Iterative and Incremental Model. This model allows for the cyclical refinement of the
system through successive iterations, ensuring that the system evolves gradually and
consistently. The development process begins with a basic version of the system,
incorporating essential features. Subsequent iterations build upon this foundation, with
each cycle introducing additional functionalities and improvements. This model facilitates
flexibility, enabling adjustments in response to changing requirements or emerging
challenges. It promotes continuous feedback and collaboration between the development
team and stakeholders, ensuring that the system aligns closely with user needs. The
iterative nature of the model supports the incorporation of new technologies and features
as they become available, enhancing the overall adaptability and scalability of the

Page | 6

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

Multipurpose IoT Tracker. This approach allows for a more dynamic and responsive
development process, crucial in the ever-evolving landscape of IoT technology.

Fig2.2( Iterative Model)

2.3 Purpose:
The purpose of the Multipurpose IoT Tracker is to provide a versatile and
comprehensive tracking solution, seamlessly integrating GPS tracking, audio surveillance,
and emergency communication. Designed for security, surveillance, and personal safety,
the device caters to diverse applications, from tracking assets to ensuring the well-being of
individuals in various scenarios.

Page | 7

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

CHAPTER-3

DESIGN

Page | 8

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

3.1 Circuit Connection diagram:

Fig 3.1 (Connection Diagram)

Page | 9

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

CHAPTER-4

SYSTEM
MODELLING

Page | 10

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

4.1.Voice Tracking Flowchart:

Fig 4.1( Voice Tracking Flowchart)


Page | 11

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

Purpose:

This flowchart describes the audio surveillance functionality of a tracker, to remotely listen
to voice/sound from the tracker on Admin’s phone.

Steps:

I. Power the tracker device: The process starts when the tracker is turned on.
II. Place call on tracker sim: Someone calls the phone number associated with the
tracker's SIM card.
III. Network available? : The tracker checks if it can connect to a cellular network.
IV. YES:
Tracker accepts call: The tracker answers the incoming call.
V. Voice can be listened to: The caller can now hear what's happening around the
tracker.
VI. NO: The process ends here.
VII. Stop

Key Points:
Remote Monitoring: This flowchart demonstrates the core concept of using a tracker for
remote listening. Someone can call the tracker and, if it's connected to a network, hear
what's happening in the tracker's location.

Potential Use Cases:


Child or elderly monitoring: To check in on their safety.
Asset tracking: To ensure equipment or goods are in the right location
Surveillance: To continuously listen to speech/sound whenever needed.

Page | 12

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

4.2. Location Tracking Flowchart:

Fig 1.2( Location Tracking Flowchart)

Page | 13

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

Purpose:

This flowchart outlines the steps involved in sending a command to a tracker device and
then receiving location information back.

Steps:
I. Power the tracker device: The process begins by ensuring the tracker is turned on.
II. Send message "Send Location" from Admin: The administrator sends a text message
with the specific command "Send location" to the tracker device.
III. Network available? The tracker device checks if it has a connection to a cellular
network.
IV. YES:
V. Message received by Tracker: The tracker successfully receives the command
message.
VI. GPS found? The tracker attempts to determine its GPS coordinates.
VII. YES: The tracker sends its location data via SMS back to the administrator who
requested it.
VIII. NO: The process ends. The tracker was unable to find a GPS signal.
IX. NO Path: The process ends. The tracker couldn't connect to a network to receive
the command.
X. Stop

Key Points:
Remote Control: This flowchart illustrates how to remotely command a tracker to send its
location data.
Dependencies: The process highlights the reliance on both a cellular network connection
and the ability to acquire current location.

Potential Use Cases:


Asset Monitoring: Keeping track of the location of valuable equipment or vehicles.
Personal Safety: A person could carry a tracker, allowing a designated contact to obtain
their location when needed.
Fleet Management: Monitoring the locations of multiple vehicles for delivery or logistics
purposes.
Page | 14

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

4.3.SOS Feature Flowchart:

Fig 4.3( SOS Feature Flowchart)

Page | 15

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

Purpose:

This flowchart outlines the steps required for either successful or unsuccessful execution
of the SOS feature.

Steps:
I. Power the tracker device: The process begins by ensuring the tracker is turned on.
II. Press & Hold SOS Button: The process begins by pressing and holding the SOS
button on the tracker device for 5 seconds.
III. Tries to Obtain Current Location Coordinates: The device attempts to get its
current GPS coordinates.
IV. GPS Found?
V. YES Path:
Generates Gmaps Location Link: The device creates a Google Maps link
pinpointing its location.
VI. Sends Link to the Admin via Message: This link is sent to a designated administrator
(or emergency contact) through a text message or similar.
VII. Calls Admin for Voice Message: The device then calls the administrator for a voice
message (likely for spoken instructions or additional information).
VIII. NO Path:
Sends "unable to find location data" Message: The device sends a message to the
administrator stating that it was unable to determine its location.
IX. Stop

Usage Scenario: A hiker gets lost in the wilderness. They press and hold their tracker
device's SOS button.

Page | 16

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

4.4 ER Diagram:

Fig 4.4( Entity Relationship Diagram)

Page | 17

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

CHAPTER-5

RELATIVE
THEORY

Page | 18

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

5.1 Hardware Used:


I) A9G Module:

The A9G development board serves as a pivotal component within the Multipurpose IoT
Tracker project, contributing to the device's advanced functionalities. Developed by AI-
Thinker, the A9G module is a highly integrated platform that combines GSM, GPRS, GPS,
and Bluetooth capabilities into a compact design. The development board provides a robust
foundation for cellular communication and
precise GPS tracking, making it
instrumental in real-time location
monitoring. Its integration with the ESP32
microcontroller ensures seamless
communication between GPS tracking and
the discreet audio surveillance feature. The
A9G's compatibility with various networks
Fig 5.1.1(A9G Board)
and its low power consumption align well
with the project's requirements, offering an efficient solution for IoT applications. The
development board's flexibility and programmability empower developers to harness its
full potential in crafting innovative and multifunctional IoT devices like the Multipurpose
IoT Tracker. As an integral part of the project, the A9G development board not only
facilitates the integration of critical features but also contributes to the device's overall
reliability, responsiveness, and adaptability in diverse tracking scenarios.

Some of the key features of the A9G Development Board:

I. Cellular connectivity: It supports GSM/GPRS network communication, allowing


you to make voice calls, send SMS messages, and transmit data.
II. Positioning: It comes with GPS and BDS dual-mode positioning capabilities,
enabling you to track location.
III. Other functionalities: It also includes a microphone, speaker, USB communication
interface, multiple user buttons/LEDs, TF card slot, accelerometer, I2C interface,
ADC interface, and more.

Page | 19

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

IV. Camera expansion capability: It has an optional camera expansion board that
allows you to connect external 30W or 200W cameras, enabling projects that
require image or video capture.
V. Low power consumption: In sleep mode, the current consumption can be as low as
3mA, making it suitable for battery-powered applications where power efficiency
is crucial.

II) Microcontroller(ESP32):

The ESP32 microcontroller, a pivotal component in our Multipurpose IoT Tracker project,
is a versatile and powerful device known for its advanced features and wide-ranging
applications in the field of embedded systems.
Developed by Espressif Systems, the ESP32
integrates a dual-core processor, making it adept at
handling complex tasks and multitasking. With built-
in Wi-Fi and Bluetooth capabilities, the ESP32
enables seamless connectivity, allowing the
Multipurpose IoT Tracker to communicate with
other devices and networks. Its low power
Fig 5.1.2( ESP32C3 consumption is crucial for our project, ensuring
Microcontroller) energy efficiency and prolonged battery life. The
ESP32's support for various communication protocols and interfaces, including SPI, I2C,
and UART, facilitates integration with diverse sensors and components in the IoT tracker.
Furthermore, the open-source nature of the ESP32 platform fosters a collaborative and
innovative development environment. Overall, the ESP32 microcontroller stands as a
cornerstone in our project, providing the computational prowess and connectivity required
for the successful implementation of GPS tracking, audio surveillance, and emergency
communication functionalities in a compact and efficient IoT tracking device.

Page | 20

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

Some of the key features of the ESP32:

I. Microprocessor: Dual-core Tensilica Xtensa LX6 microprocessor, clocked at


either 160 MHz or 240 MHz.
II. Memory: 520 KB of internal RAM and typically 4 MB of flash memory (can vary
depending on the specific module).
III. Connectivity: Integrated Wi-Fi 4 (802.11 b/g/n) and Bluetooth Low Energy (BLE).
IV. Power Consumption: Ultra-low power consumption, making it suitable for battery-
powered applications.
V. Peripherals: Includes a wide range of peripherals like General Purpose
Input/Output (GPIO) pins, Analog-to-Digital Converters (ADCs), Digital-to-
Analog Converters (DACs), SPI, I2C, and UART for interfacing with various
sensors and components.

III) Custom- Designed PCBs:

The ESP32 microcontroller, a fundamental component in our Multipurpose IoT Tracker


project, is a versatile and powerful
device with dual-core processing
capabilities. Its integration facilitates
efficient management of discreet audio
surveillance functionalities within the
device. Equipped with Wi-Fi and
Bluetooth connectivity, the ESP32
enables seamless communication and
Fig 5.1.3 (Custom PCB Board)
data transmission. This
microcontroller plays a crucial role in executing commands, processing audio data, and
ensuring the overall functionality of the IoT tracker. Its compact design, coupled with
advanced features, makes it an ideal choice for enhancing the capabilities of our project in
the field of Internet of Things..

Page | 21

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

Some of the key features of the PCB:

I. Solder resist: A protective layer applied to the PCB to prevent unwanted solder
bridges between traces.
II. Silkscreen: A printed layer on the PCB that shows component outlines, labels, and
other markings for reference during assembly and troubleshooting.

IV) Rechargeable Battery:

The Multipurpose IoT Tracker


incorporates a rechargeable battery as
a vital power source. This rechargeable
battery is designed to provide a
sustainable and long-lasting energy
solution for the device. Engineered
with efficiency in mind, the battery
ensures extended operational periods
Fig 5.1.4 (Rechargeable Battery)
between charging cycles. Its
rechargeable nature not only contributes to environmental sustainability but also
enhances the device's practicality, allowing users to easily recharge and deploy the IoT
tracker for various applications, including prolonged tracking, audio surveillance, and
emergency communication scenarios.

Some of the key features of the Rechargeable battery:

I. Reusability: Unlike disposable batteries, rechargeable batteries can be cycled


(charged and discharged) hundreds to thousands of times before needing
replacement. This significantly reduces waste and saves money in the long run.

II. Cost-effective: While the initial cost of a rechargeable battery and charger is
typically higher than a disposable battery, the long-term cost savings are
substantial, especially for devices used frequently.

Page | 22

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

V) Connectors and Cables:


In the Multipurpose IoT Tracker project,
connectors and cables form the essential link
between hardware components. The connectors
facilitate seamless integration, ensuring efficient
communication between the A9G module, ESP32
microcontroller, and custom-designed PCBs.
Micro USB and Type-C cables serve as the
physical conduits, providing both power supply
and data transfer capabilities. These connectors
and cables contribute to the project’s reliability,
enabling a robust hardware architecture that
Fig 5.1.5( Connecting Cables)
underpins the device’s multifunctionality. The
careful selection and integration of these components emphasize the project’s commitment
to creating a user-friendly and adaptable IoT tracking solution.

VI) Micro USB and Type-C Cables:


In our project, the Multipurpose IoT Tracker, we utilize
both Micro USB and Type-C cables for charging and
connectivity. The Micro USB cable is a standard choice
known for its wide compatibility and cost-effectiveness.
Meanwhile, the Type-C cable represents a modern and
versatile solution with reversible connectors, enabling
faster data transfer and charging. The incorporation of
both cable types enhances user convenience, providing
flexibility in charging the device and ensuring
compatibility with various devices and charging ports,
aligning with contemporary connectivity standards in the Fig 5.1.6 (USB C and Micro USB
Internet of Things (IoT) landscape. cables)

Page | 23

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

CHAPTER-6
IMPLEMENTATION

Page | 24

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

6.1 Integrated System

Fig 6.1.1 (Top View)

Fig 6.1.2( Bottom View)

Page | 25

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

6.2 Program Code:


#include "WiFi.h"
#define SOS D3
#define SLEEP_PIN D2 // Make this pin HIGH to make A9G board go to sleep mode

String SOS_NUM = "+919356736974"; // Add a number on which you want to receive


call or SMS

int SOS_Time = 5; // Press the button for 5 sec

// Necessary Variables
boolean stringComplete = false;
String inputString = "";
String fromGSM = "";
bool CALL_END = true;
char* response = " ";
String res = "";
int c = 0;

void Get_gmap_link(bool makeCall); // Function prototype

void setup()
{
pinMode(D10, OUTPUT); // For power LED
pinMode(D7, OUTPUT); // For no location LED

Serial.begin(115200); // For Serial Monitor


Serial1.begin(115200, SERIAL_8N1, D0, D1); // For A9G Board

// Making Radio OFF for power saving


WiFi.mode(WIFI_OFF); // WiFi OFF
btStop(); // Bluetooth OFF

Page | 26

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

pinMode(SOS, INPUT_PULLUP);
pinMode(SLEEP_PIN, OUTPUT);

// Waiting for A9G to set up everything for 20 sec


delay(20000);

digitalWrite(SLEEP_PIN, LOW); // Sleep Mode OFF

Serial1.println("AT"); // Just Checking


delay(1000);

Serial1.println("AT+GPS = 1"); // Turning ON GPS


delay(1000);

Serial1.println("AT+GPSLP = 2"); // GPS low power


delay(1000);

Serial1.println("AT+SLEEP = 1"); // Configuring Sleep Mode to 1


delay(1000);

Serial1.println("AT+CMGF = 1");
delay(1000);

Serial1.println("AT+CSMP = 17,167,0,0 ");


delay(1000);

Serial1.println("AT+CPMS = \"SM\",\"ME\",\"SM\" ");


delay(1000);

Serial1.println("AT+SNFS = 2");
delay(1000);

Page | 27

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

Serial1.println("AT+CLVL = 8");
delay(1000);

digitalWrite(SLEEP_PIN, HIGH); // Sleep Mode ON


}

void loop()
{
digitalWrite(D10, HIGH); // Turns on power LED
{
// listen from GSM Module
if (Serial1.available())
{
char inChar = Serial1.read();

if (inChar == '\n') {

// check the state


if (fromGSM == "SEND\r")
{
Get_gmap_link(false); // Send Location without Call
digitalWrite(SLEEP_PIN, HIGH); // Sleep Mode ON
}
else if (fromGSM == "RING\r")
{
digitalWrite(SLEEP_PIN, LOW); // Sleep Mode OFF
Serial.println("---------ITS RINGING-------");
Serial1.println("ATA");
}

else if (fromGSM == "NO CARRIER\r")


{
Serial.println("---------CALL ENDS-------");

Page | 28

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

CALL_END = true;
digitalWrite(SLEEP_PIN, HIGH); // Sleep Mode ON
}

// write the actual response


Serial.println(fromGSM);
// clear the buffer
fromGSM = "";
}
else
{
fromGSM += inChar;
}
delay(20);
}
// read from port 0, send to port 1:
if (Serial.available()) {
int inByte = Serial.read();
Serial1.write(inByte);
}
// When SOS button is pressed
if (digitalRead(SOS) == LOW && CALL_END == true)
{
Serial.print("Calling In.."); // Waiting for 5 sec
for (c = 0; c < SOS_Time; c++)
{
Serial.println((SOS_Time - c));
delay(1000);
if (digitalRead(SOS) == HIGH)
break;
}

if (c == 5)

Page | 29

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

{
Get_gmap_link(true); // Send Location with Call
}
// only write a full message to the GSM module
if (stringComplete)
{
Serial1.print(inputString);
inputString = "";
stringComplete = false;
}
}
}
}

// --------------------------------------------- Getting Location and making Google Maps link


of it. Also making a call if needed
void Get_gmap_link(bool makeCall)
{
digitalWrite(SLEEP_PIN, LOW);
delay(1000);
Serial1.println("AT+LOCATION = 2");
Serial.println("AT+LOCATION = 2");

while (!Serial1.available());
while (Serial1.available())
{
char add = Serial1.read();
res = res + add;
delay(1);
}

res = res.substring(17, 38);


response = &res[0];

Page | 30

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

Serial.print("Received Data - "); Serial.println(response); // printing the String in lower


character form
Serial.println("\n");

if (strstr(response, "GPS NOT"))


{
// the loop function runs over and over again forever

unsigned long startTime = millis(); // Record the start time

while (millis() - startTime < 15000) { // Run for 5 seconds


digitalWrite(D7, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(D7, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}

Serial.println("No Location data");


// ------------------------------------- Sending SMS without any location
Serial1.println("AT+CMGF=1");
delay(1000);
Serial1.println("AT+CMGS=\"" + SOS_NUM + "\"\r");
delay(1000);

Serial1.println("Unable to fetch location. Please try again");


delay(1000);
Serial1.println((char)26);
delay(1000);
}
else
{
int i = 0;

Page | 31

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

while (response[i] != ',')


i++;

String location = (String)response;


String lat = location.substring(2, i);
String longi = location.substring(i + 1);
Serial.println(lat);
Serial.println(longi);

String Gmaps_link = ("http://maps.google.com/maps?q=" + lat + "+" + longi);


//http://maps.google.com/maps?q=38.9419+-78.3020
// ------------------------------------- Sending SMS with Google Maps Link with our
Location
Serial1.println("AT+CMGF=1");
delay(1000);
Serial1.println("AT+CMGS=\"" + SOS_NUM + "\"\r");
delay(1000);
Serial1.println("I'm here " + Gmaps_link);
delay(1000);
Serial1.println((char)26);
delay(1000);
Serial1.println("AT+CMGD=1,4"); // delete stored SMS to save memory
delay(5000);
}
response = "";
res = "";
if (makeCall)
{
Serial.println("Calling Now");
Serial1.println("ATD" + SOS_NUM);
CALL_END = false;
}
}

Page | 32

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

CHAPTER-7

TESTING

Page | 33

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

7.Testing:

I) Functional Testing:
Functional testing ensures that each function of the Multipurpose IoT Tracker performs as
expected according to the defined specifications. This includes validating the GPS tracking
accuracy, audio surveillance functionality, and the responsiveness of the SOS button. Test
scenarios cover normal operations as well as boundary and error conditions to guarantee
the system's reliability in various situations. By conducting functional testing, the team can
confirm that the device meets the specified requirements and delivers the intended
functionalities seamlessly.

II) Performance Testing:


Performance testing assesses how well the Multipurpose IoT Tracker performs under
various conditions, including stress, load, and responsiveness. GPS tracking accuracy is
evaluated under different environmental factors, while audio surveillance is tested for
clarity and reliability. The SOS button's response time is measured to ensure swift initiation
of emergency communication. This type of testing helps identify potential bottlenecks or
areas for optimization, ensuring the device operates efficiently under real-world scenarios.

III) Security Testing:


Security testing focuses on identifying vulnerabilities and ensuring the integrity of data
transmitted and stored by the IoT Tracker. It involves testing for encryption protocols in
communication, secure storage of sensitive information, and protection against potential
cyber threats. By employing penetration testing and vulnerability assessments, the team
ensures that the device remains resilient to unauthorized access and data breaches,
safeguarding user privacy and system integrity.

IV) Usability Testing:


Usability testing evaluates the user-friendliness of the Multipurpose IoT Tracker, ensuring
that the interface is intuitive and easy to navigate. Feedback from usability testing informs
design improvements, enhancing the overall user experience and making the device
accessible to a broad range of users, from enthusiasts to professionals.

Page | 34

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

CHAPTER-8

OUTPUT

Page | 35

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

8.Output:

Fig 8.1.1( Final Model (Top View))

Fig 8.1.2( Final Model (Side View))


Page | 36

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

CHAPTER-9

FEATURES

Page | 37

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

9.Features:

I) Voice Tracking:
Voice tracking, also known as audio surveillance, leverages the capabilities of the ESP32
microcontroller in the Multipurpose IoT Tracker project. The theory behind voice tracking
involves capturing and monitoring audio data discreetly. The ESP32's processing power is
harnessed to manage real-time audio recordings via a cellular network. This functionality
caters to scenarios where discreet monitoring of conversations is crucial for security and
surveillance. The integration of voice tracking enhances the project's versatility, providing
users with a comprehensive solution for audio surveillance, aligning with the increasing
demand for multifunctional IoT tracking devices.

II) Location Tracking:


Location tracking is a fundamental aspect of the Multipurpose IoT Tracker, relying on the
A9G module for GPS tracking. The theory behind location tracking involves utilizing
satellite signals to determine precise geographical coordinates. The A9G module ensures
accurate and real-time location data retrieval, enabling users to monitor the device's
movement efficiently. This theory aligns with the demand for real-time tracking solutions,
catering to scenarios such as asset tracking, child safety, and personal security. The
integration of location tracking enhances the project's practicality, providing users with a
reliable tool for monitoring and securing valuable assets or individuals.

III) SOS Feature:


The SOS feature in the Multipurpose IoT Tracker serves as a critical element for enhancing
personal safety. The theory behind the SOS feature involves the integration of a dedicated
button that, when pressed and held, triggers emergency communication. This
communication includes sending the user's precise location via SMS and initiating an SOS
call. The theory aligns with the need for immediate assistance in emergency situations,
contributing to the overall safety and security of users. The SOS feature enhances the
project's functionality, making it a valuable tool for individuals in potentially vulnerable
situations, ensuring a prompt response when needed.

Page | 38

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

CHAPTER-10

FUTURE SCOPE

Page | 39

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

10.Future Scope :

I) Enhanced Communication:
Integrated Speaker and Microphone: Transform the device into a walkie-talkie
for two-way communication, facilitating real-time interaction during emergencies
or asset-tracking scenarios.
II) Visual Security Features:
Miniature Camera: Equip the device with a camera to capture photos or short
video clips during emergencies. These visuals can provide valuable situational
awareness and evidence to authorities.
III) Advanced Connectivity:
LTE Module Upgrade: Replace the GPRS module with an LTE module to
leverage the faster and more reliable 4G network. This enables real-time image
and video transmission during emergencies, potentially even facilitating live
video streaming.
IV) Display Integration:
Add a small, low-power LCD or OLED display to show real-time data like GPS
coordinates, battery level, status messages, and potentially even captured images.
This enhances user experience and reduces reliance on external devices.
V) Additional Considerations:
• Battery Life: Integrating additional features like a speaker, camera, and LTE will
require careful consideration of power consumption. Optimizing power usage and
exploring larger battery capacities will be crucial.
• Data Security: Implementing robust security measures is essential, especially
when transmitting sensitive data like images and video. Encryption and
authentication protocols should be prioritized.
• User Interface: Upgrading functionalities might necessitate refinement of the user
interface, both on the device and through the mobile application (if implemented),
to ensure intuitive control and information access.
• Regulations and Ethical Considerations: Certain features, like live video
streaming, might raise legal and ethical concerns regarding privacy and
• surveillance. It's crucial to adhere to relevant regulations and prioritize
responsible development practices.

Page | 40

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

CHAPTER-11

CONCLUSION

Page | 41

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

11.Conclusion:

This "Multipurpose IoT Tracker" project demonstrates the potential of creatively


combining readily available technologies to create a versatile and practical solution. This
device, featuring real-time GPS tracking, audio surveillance, an SOS button, and a user-
friendly design, caters to various applications, including asset tracking, personal safety,
and potential use in security. By leveraging the capabilities of the A9G module, ESP32
microcontroller, and custom-designed PCBs, this project showcases a compact and
efficient solution. The "Multipurpose IoT Tracker" serves as a valuable stepping stone for
further innovation. This project emphasizes the importance of responsible development
and ethical considerations when creating technology solutions. By focusing on practical
applications that benefit individuals and society while adhering to ethical principles, we
can ensure that IoT advancements contribute positively to the future.

Page | 42

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

CHAPTER-12

REVIEW PAPER
PUBLICATION

Page | 43

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

Page | 44

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

Page | 45

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

Page | 46

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

Page | 47

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

Page | 48

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

Page | 49

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

Page | 50

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

Page | 51

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

Page | 52

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

CHAPTER-13

REFERENCES

Page | 53

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

13.References:

I. "Internet of Things (IoT) - A Definition from the Internet Engineering Task


Force (IETF)" https://www.techtarget.com/whatis/definition/IETF-Internet-
Engineering-Task-Force
II. **"Gartner Hype Cycle for Emerging Technologies, 2023"
https://www.gartner.com/en/articles/gartner-top-10-strategic-technology-trends-
for-2024 (Focuses on the broader context of IoT adoption)
III. "The State of the Internet of Things 2023"
https://www.statista.com/topics/2637/internet-of-things/ (Provides market
research statistics on IoT)
IV. "Building IoT Projects with Arduino and Raspberry Pi" by Carolyn
Sunderland (Book reference)
V. "Hands-on RTOS with STM32 Nucleo Boards" by Dr. Joseph Yiu (Book
reference, showcases embedded system development for IoT)
VI. "GPS Technology"
https://www.wsfcs.k12.nc.us/cms/lib/NC01001395/Centricity/Domain/6814/O
cean%20Technology%20Notes.doc
VII. "Global Navigation Satellite System (GNSS) - European GNSS Agency
(GSA)" https://www.euspa.europa.eu/
VIII. "An Introduction to GPS and GNSS"
https://www.trimble.com/en/solutions/technologies/positioning (Provides a
technical overview)
IX. "ESP32 - Espressif Systems"
https://www.espressif.com/en/products/socs/esp32 (Official website)
X. "Getting Started with ESP32 - Random Nerd Tutorials"
https://randomnerdtutorials.com/ (Tutorial for beginners)
XI. "ESP32 Projects: 25 Practical Projects with Examples" by Sandeep Patil
(Book reference)
XII. "What is GSM technology? | 2G mobile network explained"
https://www.pcmag.com/news/cdma-vs-gsm-whats-the-difference (For GSM-
based modules)

Page | 54

Yashwantrao Bhonsale Institute of Technology


Department of Computer Engineering Multipurpose IoT Tracker

XIII. "LTE (Long-Term Evolution) | 4G mobile network explained"


https://www.techtarget.com/searchmobilecomputing/definition/Long-Term-
Evolution-LTE (For LTE-based modules)
XIV. "Choosing the Right Cellular Module for Your IoT Project"
https://www.digikey.com/en/product-highlight/m/multi-tech-systems/4g-lte-
embedded-cellular-modems (General guide)
XV. "Vehicle Tracking System using Internet of Things"
https://www.researchgate.net/publication/333677402_Vehicle_Detection_and
_Tracking_System_IoT_based_A_Review
XVI. "An IoT-Based Smart Elderly Monitoring System"
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9601552/
XVII. "IoT-Based Smart Agriculture Monitoring System"
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7436012/
XVIII. "The Maker Movement: A New Industrial Revolution" by Thomas Malone
(Book reference, explores the DIY and maker culture)
XIX. "Designing the Internet of Things" by Adrian McEwen (Book reference,
focuses on design principles for IoT applications)
XX. "IEEE Internet of Things Journal"
https://ieeexplore.ieee.org/xpl/RecentIssue.jsp?punumber=6488907
(Academic journal for latest research)

Page | 55

Yashwantrao Bhonsale Institute of Technology

You might also like