Engineers Garage

  • Projects and Tutorials
    • Circuit Design
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • EE Design News
    • DIY Reviews
    • Guest Post
    • Sponsored Content
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • Video
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering

SMS-enabled scrolling message board using Arduino

December 1, 2020 By engineersgarage

In the previous article, we learned how to send a message to scroll on a notice board from a smartphone using the Bluetooth application, and how to display the date and time. However, Bluetooth is only adequate for short-distance communication of about 10 meters.

But what if it’s necessary to send notifications from a greater distance…of say, 100 or 500 meters, or even further? The answer is SMS.

SMS is a text messaging service. The user can simply type in the desired message in his or her phone (whether it’s a smartphone or not) and send it as an SMS text to the matrix-led scrolling notice board.

For our purposes, I’ve used a readymade Matrix LED scrolling message board that was built using six units of an 8×8 LED block. So, there are a total of 384 LEDs (6x8x8).

The board can receive messages as serial input from any digital device, such as a microcontroller or microprocessor. It accepts serial data in an 8-N-1 format with 9600 BPS. The circuit also uses an Arduino NANO board and GSM module SIM900, which can receive messages from a mobile phone and send it to the matrix LED board to scroll and display.

Here is the circuit diagram with its description and operation:

Circuit description
There are only three building blocks in this circuit:

1. The scrolling message matrix LED board 
2. The Arduino NANO board
3. The SIM900 GSM module 

Note:

  • The scrolling message Matrix LED board requires three wires for interfacing the Vcc, GND, and the serial input. It requires 12V @ 1A supply for the Vcc, so an external 12V supply from the adapter is required. Additionally, its serial data input must be connected with the Arduino board’s digital pin D3.
  • The GSM module SIM900 has a four-wire interface for the Vcc, GND, TX, and RX. As mentioned, the Vcc pin requires 12V from an external supply. The GND should be connected with the common ground. And the TX and RX pins connect with the Arduino board’s RX (D1) and TX (D0) pins, respectively. 
  • The Arduino board must also receive a 12V input from an adapter to its Vin pin. 

Circuit operation
The circuit operation for this project is simple. When the 12V supply is connected with the circuit, it will begin operation. 

The Arduino board receives a string (message) from the GSM module. Arduino will extract the time, date, and text message from this string, displaying them on as a scrolling message on the Matrix LED board. The message is displayed on the board with the time and date.   

  • Initially, the default message “EC Department, G P Jamnagar” is displayed and scrolled continuously on the board (though it’s easy to set any other preferred, default message).
  • The Arduino board will wait for any new notifications.  
  • An active SIM card is installed in the GSM module. The SMS has to be sent to this SIM number. The SIM card inside the GSM module will receive the SMS. 
  • The user can then send an SMS message via a mobile phone
  • Arduino reads the SMS from the SIM card using the AT commands. It reads the date and time of SMS received, as well as the text message.
  • Arduino’s digital pin D3 works as the serial data TX pin sends the message serially to the Matrix LED board. The format to send the message to the Matrix LED board is: 
  • This means the text message that’s to be scrolled must start with ‘!’ and end with ‘\r’
  • Arduino inserts the start and end characters into the message that’s received from the GSM module. Next, it sends it to the Matrix LED board.
  • Once received, the Matrix LED board begins displaying and scrolling this message continuously until it receives any new messages.
  • Every time a user wants to display a new message, he or she can send it as an SMS from a mobile phone and it will then be scrolled and displayed on the Matrix LED board.

Software program
#include <SoftwareSerial.h>
SoftwareSerial matrix_LED_serial(2,3);
SoftwareSerial GSM_serial(10,11);
char sms[300];
int i=0,j=0,c;
void setup()
{
  // put your setup code here, to run once:
  Serial.begin(9600);
  pinMode(2,OUTPUT);
  digitalWrite(2,LOW);
  matrix_LED_serial.begin(9600);
  BT_serial.begin(9600);
  GSM_serial.begin(9600);
  matrix_LED_serial.print(“!EC Department, Govt. Poly. Jamnagar\r”);
  matrix_LED_serial.print(249, HEX); 
  Serial.println(“SMS based scrolling message Notice board”);
  GSM_serial.println(“AT+CMGF=1”);
  delay(500);
  GSM_serial.println(“AT+CNMI=2,2,0,0,0”);
  delay(3000);
}
void loop()
{
  while(GSM_serial.available())
    {
      sms[i] = GSM_serial.read();     
      i++; 
    }
  if(sms[i-1]==’#’)
    {
        Serial.println(“New SMS Received”);  
        matrix_LED_serial.print(‘!’);
        matrix_LED_serial.print(“New NOTICE:”);
        matrix_LED_serial.print(“Date-“);
        for(c=30;c<38;c++)
                matrix_LED_serial.print(sms);               
        matrix_LED_serial.print(“, Time-“);
        for(c=39;c<47;c++)
                matrix_LED_serial.print(sms);
        matrix_LED_serial.print(“, “);       
        for(c=53;c<i-1;c++)
          {
                matrix_LED_serial.print(sms);
                Serial.print(sms);
          }     
        matrix_LED_serial.print(“\r”);           
        i=0;
        for(c=0;c<i;c++) sms=’ ‘;      // clear previous SMS   
     }

 

Related Articles Read More >

EMG-controlled wheelchair with Arduino
Arduino color sensor used in hospitals
Biometric sensor with Arduino
Interface SparkFun 9DoF sensor stick with Arduino Uno

Featured Tutorials

  • Gate Level Implementation – DE Part 8
  • Introduction to VHDL & Verilog – DE Part 9
  • Arithmetic Circuits – DE Part 10
  • Logic Gate Implementation of Arithmetic Circuits – DE Part 11
  • Building Code Convertors Using SN-7400 Series ICs – DE Part 12
  • Interfacing stepper motor with 8051(89c51,89c52 ) microcontroller

Stay Up To Date

Newsletter Signup

EE Training Center Classrooms

“ee

“ee

“ee

“ee

“ee

Recent Articles

  • What are the different types of temperature sensors and their applications?
  • Analog Devices and Stripe launching advanced computer science program
  • NXP expands its EdgeVerse portfolio with crossover application processors
  • Mobileye partners with ATS and Lohr to develop autonomous shuttles
  • Vishay releases compact, automotive-grade through-hole inductor
...

RSS EDABOARD.com Discussions

  • Understanding of RHCP or LHCP
  • Impedance Maching
  • What is the safe distance for RF antenna under 220KV high voltage equipment?
  • Will this RF power transistor work for RF power amp at 2.4 GHz?
  • Nport instance connection in cadence

RSS Electro-Tech-Online.com Discussions

  • Momentary push button DPDT switch with alternate action
  • Step-down switching regulator with 1MHz PWM. Schematic question.
  • HOW to buy online solar motion detector LED Lights with NO Lumens ratings?
  • Ideas for a power supply?
  • ST7066U 20x4 LCD problems
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • About Us
  • Contact Us
  • Advertise

Copyright © 2021 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Projects and Tutorials
    • Circuit Design
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • EE Design News
    • DIY Reviews
    • Guest Post
    • Sponsored Content
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • Video
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering