Project showcase
Location Alert to Caller

Location Alert to Caller © CC BY-NC-SA

Send your location to the caller via SMS

  • 1,759 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

Submitted to Contest

10% Seeed Studio Voucher + 1Sheeld T-shirt + Hackster T-shirt

Smartphone Hacks Challenge

Author

Makerspace
Jasmeet Singh
  • 2 projects
  • 9 followers

Published on

October 3, 2015

Members who respect this project

DefaultAmrousyDefaultDefaultDefaultDefaultDerekcollierDefault

and 6 others

See similar projects
you might like

Similar projects you might like

Noise Level Notification Alert

Project showcase by 1Sheeld

  • 1,186 views
  • 0 comments
  • 5 respects

Stocks market Analyzer

Project showcase by 1Sheeld

  • 902 views
  • 0 comments
  • 1 respect

Foursquare ultrasonic checkin

Project showcase by Guest

  • 543 views
  • 0 comments
  • 1 respect

Track and Control Your Car Remotely

Project tutorial by Ashraf Nabil

  • 25,407 views
  • 5 comments
  • 58 respects

SMS your Home

Project tutorial by Mohamed Hassan AbdulRahman and Abdulrahman Elsharqawy

  • 5,662 views
  • 0 comments
  • 14 respects

Capture Photos with one Click

Project showcase by tesla nerd

  • 3,170 views
  • 0 comments
  • 7 respects
Add projectSign up / Login