Features:: Pin Diagram
Features:: Pin Diagram
According to the particular voltage value(from flex sensor)we program the Arduino to speak out
the particular instruction.we are also displaying the instruction on the LCD.Suppose when the
person in any emergency situation as he can't shout or ask for help so help those people we are
creating a Intelligent Caring System.
For this Intelligent Caring System we are using GSM SIM900A module.It is an interface with the
sim card (in which we load or save some desired people numbers). whenever a particular
gesture is made the microcontroller send a transmitting signal to the gsm module.By interfacing
a GSM module we can send message or make call.
1. SIM900A is a ultra compact and reliable wireless module .
2. SIM900A GSM module means the module supports communication in 900mhz band.
3. You can feed the data from gsm module directly to Arduino when the module is enabled
with TTL output pins.
4. If you are having a 5v module,you can power it directly from Arduino 5v out.
5. The SIM900A is a complete dual-band GSM/GPRS solution in a smt which can be embedded in
the customer applications allowing you to benefit from small dimensions and cost-effective
solution.
Features:
● The GSM module consists of 60 pins in total and each pin has specific function.
● The sim card is connected to GSM module via sim slot.
● The sim slot is designed in a way to hold the sim card in a tight position.
● The sim slot is provided with four pins which are designed to be connected to the GSM module.
Pin diagram:
The three important connections with Arduino:
● GSM Tx –> Arduino Rx (3 to: Digital Pin 0 of Arduino (RX))
● GSM Rx –> Arduino Tx. (4 to: Digital Pin 1 of Arduino)).
● Now connect the ground pin of arduino to ground pin of gsm module.(2 to: GND of Arduino near
5V).
The AT commands:
AT commands with a GSM/GPRS MODEM or mobile phone can be used to access following information
and services.
Command Description
GSM TX 🡪 Arduino RX and GSM RX🡪 Arduino TX , GSM GND🡪 Arduino GND.
NOTE : The problem with this connection is that , while programming Arduino uses serial
ports to load program from the Arduino IDE. If these pins are used in wiring, the program will
not be loaded successfully to Arduino. So you have to disconnect wiring in RX and TX each
time we burn the program to Arduino .Once the program is loaded successfully , we can
reconnect these pins and have the system working.
To avoid this difficulty, we can use an alternate method in which two digital pins of Arduino
are used for serial communication . we need to select two PWM enabled pins of Arduino for this
method. So we choose pins 9 and 10. This method is made possible with the “Software serial
Library” of Arduino. Software serial Library of Arduino which enables serial data
communication through other digital pins of Arduino. The library replicates hardware functions
and handles the task of serial communication.
CIRCUTE DIAGRAM :
To connect GSM module to Arduino and hence use the circuit to send sms and receive sms
using Arduino and gsm module.
CODING PART :
The program has two objectives as described below :-
1.Send sms using Arduino and GSM module – to a specified mobile number inside the program
2.Send sms using Arduino and GSM module – to the SIM card loaded in the GSM module.
The Program :
// include the library code:
#include <SoftwareSerial.h>
void setup()
{
mySerial.begin(9600); // Setting the baud rate of GSM Module
Serial.begin(9600); // Setting the baud rate of Serial Monitor (Arduino)
delay(100);
}
void loop()
{
if (Serial.available()>0)
switch(Serial.read())
{
case 's':
SendMessage();
break;
case 'r':
RecieveMessage();
break;
}
if (mySerial.available()>0)
Serial.write(mySerial.read());
}
void SendMessage()
{
mySerial.println("AT+CMGF=1"); //Sets the GSM Module in Text Mode
delay(1000); // Delay of 1000 milli seconds or 1 second
mySerial.println("AT+CMGS=\"+91xxxxxxxxxx\"\r"); // Replace x with mobile number
delay(1000);
mySerial.println("I am SMS from GSM Module");// The SMS text you want to send
delay(100);
mySerial.println((char)26);// ASCII code of CTRL+Z
delay(1000);
}
void RecieveMessage()
{
mySerial.println("AT+CNMI=2,2,0,0,0"); // AT Command to receive a live SMS
delay(1000);
}
The first task is to set baud rates of SoftwareSerial library to communicate with GSM module.
We achieve this by invoking mySerial.begin function.
Our second task is to set the baud rate of Arduino IDE’s Serial Monitor. We do this by invoking
Serial.begin function.
Both should be set at the same baud rate and we use 9600 bits/second here . Configuration part is
over with setting baud rates and its good to give a small delay of 100 milli seconds.
Result: