How to interface GSM Module with 8051 microcontroller (AT89C51) using PC and LCD

Summary

This project is an extension of interfacing microcontroller with hyperterminal and GSM module. The previous project explained a way to interface a GSM module with 8051 microcontroller where the information response and result codes received by the controller were sent back to computer to display them at HyperTerminal. In this project, the same output is displayed on a 16x2 LCD interface.

Interfacing GSM Module with 8051 Microcontroller using PC & LCD

Description

 
This project adds a feature to display the information response and result codes on a 16x2 LCD in response to the AT commands sent through the HyperTerminal of computer. The characters typed at HyperTerminal get transmitted serially through the transmit pin (Tx) of RS232 interface. The overall connection layout is depicted below.
 

The microcontroller program involves the following complexities to display data coming from the GSM/GPRS module on LCD.
i.      The data coming from the GSM module is stored in a character array. This character array is shifted to left every time character is read and deleted. This is important to maintain room for the incoming data and ensure that no character in an information response or result code is lost.
ii.     The information response and the result codes have carriage return and line feed characters in the beginning as well as end. These characters need to be monitored and removed by the controller’s program.
 
This project is first step towards making and independent system using the GSM module and a microcontroller. Here the HyperTerminal (computer) has been replaced with LCD at the output end. In the next project (MC076), the AT Commands will be transmitted to the GSM module by the microcontroller itself thus avoiding the need of using HyperTerminal entirely.
 

Circuit Diagram

Video

Code

This Code is only visible to Registered users. Please Login/Register

 

Components

MAX232 | IC MAX232
MAX232
 
The MAX232 IC is used to convert the TTL/CMOS logic levels to RS232 logic levels during serial communication of microcontrollers with PC. The controller operates at TTL logic level (0-5V) whereas the serial communication in PC works...
AT89C51 Microcontroller, Atmel 89C51 Controller Image
AT89C51 Microcontroller

AT89C51 is an 8-bit microcontroller and belongs to Atmel's 8051 family. ATMEL 89C51 has 4KB of Flash programmable and erasable read only memory (...

16 x 2 LCD | 16x2 Character LCD Module
LCD

 

LCD (Liquid Crystal Display) screen is an electronic display module and find a wide range of applications. A 16x2 LCD display is very basic module and is very commonly used in various devices and circuits. These modules are preferred over seven segments...

You are here