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

Biped Arduino Robot
Easy
  • 3
  • 1

Full instructions

Most simple handy robot in about 2 hours!

Arduino - Have Fun with Color Sensor
Easy
  • 725
  • 12

Full instructions

This project shows how to change color of Minion using Arduino, PHPoC WiFi Shield and color sensor.

Arduino - Web-Based Thermometer
Easy
  • 774
  • 12

Full instructions

This project allows you to check temperature at home from anywhere using web browser.

Electronic Voting Machine Using Arduino
Easy
  • 187
  • 5

It is an EVM using Arduino. There are five switches in all, assigned for various activities.

Using Python and Arduino MKR1000 for Secure IoT
Easy
  • 2,421
  • 13

Full instructions

Getting started with Python and Arduino MKR1000 for secure IoT projects.

Retro Nokia Snake Game with Arduino
Easy
  • 3,464
  • 23

Full instructions

Ever wish you could go back to the happy 90's and play snake on your old Nokia phone? Grab on to your joystick for this blast-from-the-past.

ProjectsCommunitiesTopicsContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login