In this instructable an Arduino uno with a GSM shield is used to perform four cellular operations. These are
1-Make calls
2-Receive calls
3-Send SMS
4-Recieve SMS
1. A GSM shield with 900A/900 Sim module (preferably by ATRIM electronics).
2. A 4x4 button Matrix keypad.
3. A 16x2 LCD as display.
4. A Ardiuno UNO R3.
5. Some Male to female & Female to male connecting wires.
6. A PC for programming& uploading the Code using Arduino IDE
·
We interface Arduino with GSM shield using AT commands. So, take an overview of some commonly used AT commands:
1. AT: Test weather GSM shield respond
2. AT+CIMI: Request International Mobile Subscriber Identity
3. ATD+91XXXXXXXXXX : Dial the specified number ( replace x with number)
4. AT+CMG=1: Switch on the messaging mode of gsm
5. AT+CNMI=2,2,0,0, 0: Turn on the message indicator
6. ATH: Halt call
7. ATA: Pick up incoming call
8. AT+COPS: Get the service provider name
9. AT+CSQ: Get signal strength
These two functions are used in interfacing of Input Matrix with Arduino-
1. Return_Keypad_Values() : Return the value of key pressed (in char)
2. Take_input(): Enter a 10 digit number using matrix and use
Returns: Number entered through keypad ( in String Object)
Mainly 3 functions are used for interfacing of LCD with Arduino
1- lcd.begin(): initializing the LCD with Arduino
2- lcd.setCursor(x,y): Set the cursor at x column & y row
3- lcd.print(“hello”)-This function is use to print any text or number on LCD.
1. Code is available on this Github repository here.
2. Download the repository here in zip.
3. Unzip it and open the all_phone_operations folder.
4.Open all_phone_operations.ino in Arduino ide and upload it (as shown in figure).
·
By pressing button ‘A’ you will be in Send call mode. LCD will prompt to enter a number to call.
These buttons are used in send call mode
· ·
B.Send SMS:
Module configures itself in receiving mode when it starts and the LCD will show a response as soon as a call or SMS is received. The program uses only two button for user interaction in case of response received.
If you find it useful, Please share it.
Special thanks and Credit to Mr. devvrat Arya and Mr. Harsha Deva boley Shetty for this Article.......
And there is a tip for all users to use vcc and ground of ICSP port.