Things used in this project

Code

LocAlert.inoC/C++
// https://www.google.co.in/map/@28.6267793,77.0737148

#define CUSTOM_SETTINGS
#define INCLUDE_GPS_SHIELD
#define INCLUDE_PHONE_SHIELD
#define INCLUDE_SMS_SHIELD
#define INCLUDE_TERMINAL_SHIELD

#include <OneSheeld.h>
String number, msg;
char lati[11],longi[11];
boolean count=false;

void setup()
{
  OneSheeld.begin(); 
}
void loop()
{
  if(Phone.isRinging()) // once the phone starts ringing
  {
    number = Phone.getNumberAsString(); // store the number
    Terminal.println("Phone Ringing");
    delay(2000);
    count=true;
  }
  if(!Phone.isRinging() && count==true) // once the phone starts ringing
  {
    Terminal.println("Ringing Stopped");
    msg="I am at this location, if urgent, meet me @ www.google.co.in/maps/@";
    msg += dtostrf(GPS.getLatitude(), 10, 7, lati);
    msg += ",";
    msg += dtostrf(GPS.getLongitude(), 10, 7, longi);
    msg += " or call back later. ";
    SMS.send(number,msg);  // Send SMS with location
    msg += number;
    Terminal.println(msg);
    msg="";
    delay(10000);
    count=false;
   }
}

Credits

Makerspace
Jasmeet Singh

I am the founder of JMoon Technologies(http://JMoon.co), RoboRium(http://RoboRium.com) and JMoon L.A.B.S. & MakerSpace (http://JMoonLabs.com/MakerSpace)

Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Guess the Number With Arduino KeyPad
Easy
  • 70
  • 3

Full instructions

A simple and funnies project with an Arduino UNO and the famous keypad shield. Arduino selects a random number, you guess the number.

Control a 7 Segment Display with a keypad!
Easy
  • 84
  • 2

Full instructions

In this project I'll show you a simple way to control a 7 Segment Display with a keypad!

Potentiometer with RGB LED
Easy
  • 36
  • 2

This uses potentiometers to control a RGB LED.

Using 9 Axes Motion Shield with Arduino
Easy
  • 20
  • 1

Protip

The Arduino 9 Axes Motion Shield allows your Arduino to measure movement: orientation, acceleration and magnetic field.

Launch Pad Count Down Sequence Display
Easy
  • 76
  • 2

Work in progress

A 7 Segment Display of a Countdown from 9 to 0 for a Launch Pad Control Panel.

Know the Temp of Your Home From Anywhere with Arduino Cloud!
Easy
  • 1,965
  • 11

Full instructions

Ever wanted to know the temperature of your home from somewhere? Here's an easy way to do it with Arduino Cloud and the Yun Shield!

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaFree StoreBlog