Khloud Mohamed
Published © TAPR-OHL

Girlfriend Call and Message

Want to make your girlfriend number secret, lets make it.

BeginnerFull instructions provided1 hour2,835
Girlfriend Call and Message

Things used in this project

Story

Read more

Schematics

schematic

using fritizing

Code

GirlFriend call and massage

Arduino
this code programs arduino uno to be comparable with 1shield board and 1shield mobile application where when your girl friend call you or send a message on the phone that has 1shield application Red LED will light as an indicator for her call or message.
#define CUSTOM_SETTINGS
#define INCLUDE_PHONE_SHIELD  //call liberary
#define INCLUDE_SMS_SHIELD    //SMS liberary 

/* Include 1Sheeld library. */
#include <OneSheeld.h>

/* Phone number to check if she called. */
char callingNumber[]= "01024963088";
/* A name for the LED on pin 13. */
int ledPin = 13;

void setup()
{
  /* Start communication. */
  OneSheeld.begin();
  /* Set the LED pin as output. */
  pinMode(ledPin,OUTPUT);

}

void loop() 
{
    /* Check if the phone is ringing. and if there is a massege sent to the mobile*/
    if(Phone.isRinging()||(SMS.getNumber()))
    {
        /* Check if the phone number calling is the same as our variable. */
        if((strcmp(Phone.getNumber(),callingNumber) == 0)||(strcmp(SMS.getNumber(),callingNumber) == 0))
       {
          /* Turn on the LED. */
          digitalWrite(ledPin,HIGH);
       }
    }
    else  
                digitalWrite(ledPin,LOW);
                

}

Credits

Khloud Mohamed

Khloud Mohamed

4 projects • 7 followers
Bio-medical engineer and interested in embedded systems projects and designing.

Comments