Introduction: Girlfiend Call and Message
Hello guys! In this instructable I'll teach you how to make a very simple project using 1shield and Arduino.
After several times trying to make it without 1shield , I finally came up with something that is quite simple and extremely brilliant. So i'd like that to be my first instructable, this project is perfect for beginners in the arduino's world, with a few components anyone can make it. I hope you all will enjoy it.
Step 1: Materials
1-Two smartphone one of them must be Android
2- Arduino uno
3- 1Sheeld
4- LED
5- 1shield application from app store
6- battery (9v).
Step 2: Code Time!
Write the code on the Arduino program and upload it to the Arduino.
#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);
}
Attachments
Step 3: Connect It Up
- install 1shield app on your android smart phone
- Connect 1shield board to Arduino Uno board
- Connect LED to pin 13
- Download 1 shield libraries from http://1sheeld.com/downloads/.
- Upload (SMS and Phone library) into Arduino IDE
- Write the code on Arduino IDE .
- Connect Arduino board to PC and upload the code into Arduino board
- Connect power source to Arduino board (USB cable OR Battery) .
- Take care about upload mode and running mode on the 1 shield board .
- Download 1shield mobile application from here https://play.google.com/store/apps/details?id=com...
- Connect 1shield mobile app to 1shield board
- select the required libraries from 1shield mobile app.
- make a call from your girlfriend to your mobile wait awhile then cancel take care about what happen to the LED.
- send a message from your girlfriend mobile to your mobile and take care about what happen to the LED .
Step 4: Finally !!
Here is a video I've made !
This video describes the full steps and output ,you can see that when your girl friend call you the red led will light and also when she send a message to you .
Feel free to modify this project to your way, and tell me your progress.
Comments are welcome.