Documente Academic
Documente Profesional
Documente Cultură
Let us begin with power supply section. Power supply section generates
three voltage supplies. The output from the 12V-0-12V/1A transformer is
converted to 12v DC and then the ripple is filtered out to get smooth 12V output.
5V power supply is derived using LM7805 regulator IC. The Switching regulator
IC LM2576 is used to produce the precise and stabilized 3.8/2A needed for the
SIM800 module. Also a Zener diode voltage regulated 2.7V/20mA power supply is
used for the TTL logic level conversion circuit.
Arduino Uno always works on 5V TTL logic level. While SIM800 module
works on 2.7V TTL logic level. So a 5V to 2.7V TTL logic level converter is
needed to interface the Arduino and the SIM800 GSM Module.
SIM800, GSM Module equipped with a fully operational SIM card is the
message hander in our project. SIM800 receives the SMS from other mobile
equipment or handsets and stores the message in SIM card memory. Arduino can
read the messages from SIM card memory locations whenever needed .All the
communication in between Arduino and the SIM800 module is done through AT
command sets. Also Arduino can send messages to SIM800 Module accordingly
via AT Commands. The important thing is to provide stabilized power supply to
SIM800 module in all time so that never drop the supply voltage to SIM800 below
3.4V at time. Other vice it may lead to erroneous operation of GSM Module.
When Arduino is booted it always checks for the serial data via FTTD pins
up to the RESET voltage rising up to the VCC. In order to load the user program
DTR pin of the serial communication must provide a high to low pulse to RESET
pin.
After the booting initially the arduino executes all the instructions in the
setup function then all the instructions in loop function. All the instructions in loop
function will be executed as in a loop, hence the name loop function. Arduino
initializes a serial communication with SIM800 module at 2400bps.Then arduino
will fetch the Relay status from EEPROM and then it will update the relay status.
Then initialize the LCD to 20x4 in 4bit mode operation. Then it will sound a
welcome tone pattern to identify the booting status.
In the loop function arduino reads the message index (total no messages)
from the SIM card inserted in the GSM Module using AT+CPMS= “SM”
command. Arduino formats the received response text and the extracts the exact
message index number.
If the password string received is the exact password stored in Arduino Then
only indata will be displayed in the 20x4 LCD Module and further processing the
indata for the relay switching and DHT11 measurement.
When the total number of messages in the SIM card exceeds 30 arduino will
automatically deletes last 20 read messages in order one by one from the SIM.
Also whenever the GSM Module receives a message without password/wrong
message format/Wrong password, will not be displayed or processed and will be
definitely deleted from the SIM Card.
User can read all messages in the SIM card by pressing the Next Button.
Interrupt 0 in the arduino is used for the message index selection. When interrupt 0
is happened it will increment the message index. In this way all the messages in the
SIM can be displayed in the LCD display. RESET button is also extended for
resetting the Arduino.
In the idle time whenever there is no message, LCD display will show the
last read message. Whenever a new message is arrives arduino will sound new
message sound, displays the new message, process the new message and update
relay or measure DHT11 is needed.