Project showcase
Location Alert to Caller

Location Alert to Caller © CC BY-NC-SA

Send your location to the caller via SMS

  • 1,952 views
  • 2 comments
  • 14 respects

Components and supplies

About this project

When I'm in a meeting or driving, I do not pick up calls. When I connect the Arduino Uno and 1Sheeld (attached to the phone cover), to the OTG of the smartphone, and power the Uno through USB, the system turns on.

I can simply power the system when I can't take calls and if during this time I get a missed call from a number, my phone sends out my GPS location to the caller via SMS, to let them know if I'm at a particular place or headed towards them for the meeting (in case I'm running late).

For future expansion, a whole database of phone numbers can be added to the code, and matched against the incoming number, so that the location is sent to only a selected few people.


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;
   }
}

Comments

Similar projects you might like

Noise Level Notification Alert

Project showcase by 1Sheeld

  • 1,339 views
  • 0 comments
  • 5 respects

Track and Control Your Car Remotely

Project tutorial by Ashraf Nabil

  • 32,316 views
  • 5 comments
  • 70 respects

Export Data from Arduino to Excel Sheet

Project showcase by ahmed ismail

  • 21,278 views
  • 1 comment
  • 14 respects

Capture Photos with one Click

Project showcase by tesla nerd

  • 5,450 views
  • 0 comments
  • 7 respects

Bluetooth Steering wheel for a robot using 1Sheeld

Project tutorial by Kristian Blåsol

  • 2,740 views
  • 1 comment
  • 13 respects

Stocks market Analyzer

Project showcase by 1Sheeld

  • 1,399 views
  • 0 comments
  • 1 respect
Add projectSign up / Login