Interfacing GSM Module With Arduino Uno and Displaying Message on LCD Display
by elegocart in Circuits > Arduino
167 Views, 0 Favorites, 0 Comments
Interfacing GSM Module With Arduino Uno and Displaying Message on LCD Display
In this project, we will employ GSM module SIM900 display messages sent to the module on LCD using Arduino UNO.
About GSM Module(SIM900):
SimCom SIM900 GSM / GPRS Modem can accept any GSM network operator SIM card and act like a mobile with its own unique phone number. The advantage of using this modem will be that you can use its RS232 port to communicate. Applications like SMS Control, remote control, data transfer, and logging can be developed easily.
The modem can either be connected to PC serial port directly or to any microcontroller through MAX232. It can be used to send and receive SMS or make/receive voice calls. It can also be used in GPRS modem to connect to the internet and utilize to make many applications for data logging and control. For example, In GPRS mode you can also connect to any remote FTP server and upload files for data logging. GSM modem is a highly flexible plug and plays quad-band SIM900A GSM modem for direct and easy integration to RS232 applications. Supports features like SMS, Voice, Data/Fax, GPRS and integrated TCP/IP stack.
Components Required:
- Arduino board 1
- GSM Module (SIM900A) 1
- Few jumper wires
- LCD 16*2 display 1
- Bread board 1
- POT (100k) 1
You can buy these components from elegocart, probably the only company which sells TESTED components.
Project Setup:
Code:
#include <liquidcrystal.h>
#include <softwareserial.h>
do { while ( !SIM900.available() ); } while ( '"' != SIM900.read() ); do { while ( !SIM900.available() ); } while ( '"' != SIM900.read() ); do { while ( !SIM900.available() ); } while ( '"' != SIM900.read() ); do { while ( !SIM900.available() ); } while ( '"' != SIM900.read() ); do { while ( !SIM900.available() ); } while ( '"' != SIM900.read() ); do { while ( !SIM900.available() ); } while ( '"' != SIM900.read() ); while ( !SIM900.available() ); inByte = SIM900.read(); while ( !SIM900.available() ); inByte = SIM900.read();
lcd.clear(); while(1) { while ( !SIM900.available() ); inByte = SIM900.read(); if ( inByte == '\r' ) break; else; Serial.write(inByte); lcd.write ( inByte ); }
} void loop() { delay(150); }