Project tutorial
Display Board

Display Board © GPL3+

Display board using GSM module.

  • 1,327 views
  • 0 comments
  • 4 respects

Components and supplies

Apps and online services

About this project

Hey peeps!

I am back with a new interesting project.

In this project I made a display board using a GSM module and Arduino Uno.

In this project you can send the message from mobile phone to the SIM card which is in the GSM module and that message will be appeared on the display.

You can use this project as a display board at home or notice board in college.

It can be used as a patient numbering system in hospitals where doctors can send the message displaying the number of the patient and that patient will come to the doctor.

Let's get started to make this project:

Steps:

1. Gather all the components.

2. Connect pot and LCD display on breadboard

3. Connect a 330 ohm resistor to second end of pot.

4. Connect all components as shown.

5. Connections are below:

LCD TO ARDUINO

Vss GND

Vdd +5v

Vo middle end of pot

Rs 3

Rw GND

E 4

D4 5

D5 6

D6 7

D7 8

A one end to resistor 330 ohm tp pot and that end to +5v

K one end to pot and that end to GND

6. Connect GSM module with M-F jumper wires as shown.

7. Insert sim in the GSM module (preferably 2G SIM).

8. Connections:

GSM module to Arduino

Vcc +5v

Gnd GND

Tx Rx

Rx Tx

Make sure that Tx and Rx pin of GSm module are disconnected while uploading the code.

After uploading the code connect the Tx and Rx pin of GSM Module to the Arduino.

9. Now take a smart phone and send the message to that number followed by # and end by * as shown.

Message will be received.

Cheers, your project is done!

Also, be sure to subscribe to my channel.

Thanks!

Code

CodeC/C++
//www.YouTube.com/Electronics is Fun//
//Mohd Sohail//


#include <LiquidCrystal.h>
LiquidCrystal lcd(3,4,5,6,7,8);

int led=13;

int temp=0,i=0,x=0,k=0;
char str[100],msg[32];

void setup() 
{
  lcd.begin(16,2);
  Serial.begin(9600);
  pinMode(led, OUTPUT);
  digitalWrite(led, HIGH);
  lcd.print("GSM Initilizing...");
  gsm_init();
  lcd.setCursor(0,0);
  lcd.print("GSM Display");
  lcd.setCursor(0,1);
  lcd.print("    Board      ");
  delay(2000);
  lcd.clear();
  lcd.print("Electronics is Fun");
  delay(1000);
  lcd.setCursor(0,1);
  lcd.print("System Ready");
  Serial.println("AT+CNMI=2,2,0,0,0");
  delay(500);
  Serial.println("AT+CMGF=1");
  delay(1000);
  digitalWrite(led, LOW);
}

void loop()    
{
  for(unsigned int t=0;t<60000;t++)
  {
    serialEvent();
  if(temp==1)
  {
    x=0,k=0,temp=0;
    while(x<i)
    {
      while(str[x]=='#')
      {
        x++;
        while(str[x]!='*')
        {
          msg[k++]=str[x++];
        }
      }
      x++;
    }
    msg[k]='\0';
    lcd.clear();
    lcd.print(msg);
    delay(1000);
    temp=0;
    i=0;
    x=0;
    k=0;
  }
  }
  lcd.scrollDisplayLeft();
}
void serialEvent()
{
  while(Serial.available())
  {
    char ch=(char)Serial.read();
    str[i++]=ch;
    if(ch == '*')
    {
      temp=1;
      lcd.clear();
      lcd.print("Message Received");
      delay(1000);
    }
  }
}

void gsm_init()
{
  lcd.clear();
  lcd.print("Finding Module..");
  boolean at_flag=1;
  while(at_flag)
  {
    Serial.println("AT");
    while(Serial.available()>0)
    {
      if(Serial.find("OK"))
      at_flag=0;
    }
    delay(1000);
  }

  lcd.clear();
  lcd.print("Module Connected..");
  delay(1000);
  lcd.clear();
  lcd.print("Disabling ECHO");
  boolean echo_flag=1;
  while(echo_flag)
  {
    Serial.println("ATE0");
    while(Serial.available()>0)
    {
      if(Serial.find("OK"))
      echo_flag=0;
    }
    delay(1000);
  }

  lcd.clear();
  lcd.print("Echo OFF");
  delay(1000);
  lcd.clear();
  lcd.print("Finding Network..");
  boolean net_flag=1;
  while(net_flag)
  {
    Serial.println("AT+CPIN?");
    while(Serial.available()>0)
    {
      if(Serial.find("+CPIN: READY"))
      net_flag=0;
    }
    delay(1000);
  }
  lcd.clear();
  lcd.print("Network Found..");
  delay(1000);
  lcd.clear();}
                           

Schematics

Circuit Diagram
Gsm 123 o2yi4rk0jf

Comments

Similar projects you might like

GPS Location Display With GPS And TFT Display Shields

Project tutorial by Boian Mitov

  • 12,050 views
  • 5 comments
  • 33 respects

Arduino Noticeboard

Project tutorial by msr048

  • 2,603 views
  • 0 comments
  • 15 respects

Inexpensive Wireless Interactive Board

Project tutorial by Adellar Irankunda

  • 13,962 views
  • 4 comments
  • 19 respects

LCD Gaming

Project tutorial by msr048

  • 2,736 views
  • 2 comments
  • 15 respects

LED Display with Arduino ADC and PWM

Project tutorial by Ian Etheridge

  • 2,344 views
  • 0 comments
  • 9 respects

Room temperature sensor with display on Mobile

Project showcase by Kaustubh Agarwal

  • 26,606 views
  • 8 comments
  • 59 respects
Add projectSign up / Login