Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey 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
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

Bluetooth-operated scrolling message board using Arduino

By engineersgarage September 1, 2020

In the previous tutorial, we learned how to use the applications of the Matrix LED scrolling message boards. This included how to send a message or notice to display on such a board by using a laptop or desktop PC.

In this article, we’re going to learn how to send that message from a smartphone using a Bluetooth application. This message will be continuously displayed and scrolled on the notice board.

This means whenever a user wants to display a new message, he or she can connect to the system via a smartphone using Bluetooth, type in the new message, and send it. It’s that simple.

For this project, I’ve used a readymade Matrix LED scrolling message board that’s been built using six units of an 8×8 LED block. There are a total of 384 LEDs (6x8x8). The board can receive a message as a serial input from any digital device, such as a microcontroller or a microprocessor. It accepts serial data in the 8-N-1 format with 9600 BPS.

The circuit also uses an Arduino NANO board and the Bluetooth module HC-05, which can receive a message from a user’s smartphone and send it to the Matrix LED board for display.

Circuit diagram

Circuit description
As shown in figure there are only three building blocks in the circuit: the scrolling message on the Matrix LED board, the Arduino NANO board, and the Bluetooth module HC-05.

Note:

  • The scrolling message Matrix LED board requires three wires for interfacing the Vcc, GND, and the serial input. For the Vcc, a 12V @ 1A supply is required as an external power supply from the adapter. Its serial data input is connected with the Arduino board’s digital pin D3.
  • The Bluetooth module HC-05 uses four wires for interfacing the Vcc, GND, TX, and RX. Its Vcc pin is given 5V from the Arduino board and the GND pin must connect with the common ground. Its TX and RX pins are connected with the Arduino board’s RX (D1) and TX (D0) pins, respectively. 
  • The Arduino board also receives a 12V input from the adapter to its Vin pin. 

Circuit operation
The circuit operation for this project is simple. When the 12V supply is provided to the circuit, it will start operating. The Arduino board receives a string (message) from the HC-05 module and will pass it on to the Matrix LED board. The scrolling message will then be displayed on this board.  

Note: 

  • Initially, the default message “EC Department, G P Jamnagar” is displayed and continuously scrolled on the board (though it’s easy to set any preferred default message).
  • The user can send a message (string) through a smartphone using the Bluetooth-based application. However, to display the new message, the user first has to connect and pair its smartphone with the HC-05 module (this requires the passkey, “1234”). Make sure the module remains open. 
  • Type in the message on the smartphone and send it to the system via the Bluetooth application.
  • This notice will be transmitted by the smartphone-connected Bluetooth and will be received by the HC-05 module. It is, then, serially given to the Arduino NANO board.
  • Arduino will temporarily store the message in its internal RAM. Once the message is completely received, Arduino will send it serially to the scrolling message Matrix LED board for display.
  • Arduino’s digital pin D3 works as the serial data TX pin that sends the message to the Matrix LED board.The format to send this message is:
    “!_____________________message________________\r”
  • This means the text message to be scrolled must start with an ‘!’ and end with an ‘\r’.
  • Arduino then inserts this start and end characters in the message received from the HC-05 module and sends it to the Matrix LED board.
  • The matrix LED board will continuously display and scroll this message until it receives a new message.

So, every time a user wants to display a new message, he or she can send it from a Bluetooth-connected smartphone and the message will be continuously displayed and scrolled on the Matrix LED board.

Software program

#include <SoftwareSerial.h>
SoftwareSerial matrix_LED_serial(2,3);
char msg[100];
int i=0,led=2;
void setup()
{
  // put your setup code here, to run once:
  Serial.begin(9600);
  matrix_LED_serial.begin(9600);
  Serial.begin(9600);
  matrix_LED_serial.print(“!EC Department G P Jamnagar\r”); 
  Serial.println(“Bluetooth based scrolling notice board”);
  delay(5000);
  Serial.println(“waiting for new notice……”);
  display_notice_serial();
  BT_serial.println(“send Message”);
}

void loop()
{
  while(Serial.available())
    {
          msg[i] = Serial.read();        
          i++;          
    }
    if(msg[i-1]==’\r’)
      {
          matrix_LED_serial.print(‘!’);
          matrix_LED_serial.print(“New Notice: “);
          matrix_LED_serial.print(msg);
          matrix_LED_serial.print(‘\r’);         
          i=0;
      }     
 }

Now, let us make this notice board a bit more realistic…and interesting.

What if every time, when a new message is displayed, the board also displays the current time and date?

This is how it’s done…
I’ve just added one more module to the circuit — the RTC DS1307 module, which is used to display the current time and date in the notice.

As shown in the above figure, everything remains identical except for the additional RTC module.

Note:

  • The RTC module requires four wires for interfacing the Vcc, GND, SDA, and SCL. Its Vcc pin is connected with 5V from the Arduino board and the GND pin is connected to the common ground.
  • The SDA and SCL pins are for the IIC/TWI communication. They’re connected with the respective Arduino SDA and SCL pins A4 and A5.

Circuit operation

  • When the Arduino board receives the new notice from the HC-05 module, it will read the current date and time from the RTC module.
  • Then, it will arrange the date, time, and new message in proper format and send it together to the scrolling message board.
  • The format will be:
    “!New Notice: Date – DD/MM/YYYY, Time-HH:MM:SS, Message-_________________\r”
  • Now, every new message will be date and time-stamped.
  • This message will continuously scroll until a new one is received or someone resets the system.

#include <SoftwareSerial.h>
#include <Wire.h>
#include “RTClib.h”
void display_time_n_date();
SoftwareSerial matrix_LED_serial(2,3);
RTC_DS1307 rtc;
char msg[100];
int i=0,led=2;
void setup()
{
  // put your setup code here, to run once:
  Serial.begin(9600);
  pinMode(2,OUTPUT);
  digitalWrite(2,LOW);
  matrix_LED_serial.begin(9600);
  Serial.begin(9600);
  if (! rtc.begin())
  {
    Serial.println(“Couldn’t find RTC”);   
    while (1);
  }
  if (! rtc.isrunning())
  {
    Serial.println(“RTC is NOT running!”);   
  }
////// use this rtc.adjust function to adjust RTC date and time
///// once (first time) only. then comment it out
  //rtc.adjust(DateTime(2018, 7, 24, 22, 03, 00));
  matrix_LED_serial.print(“!EC Department G P Jamnagar\r”); 
  matrix_LED_serial.print(250, HEX); 
  Serial.println(“Bluetooth and RTC based scrolling notice board”);
  delay(5000);
  Serial.println(“waiting for new notice……”);
  display_notice_serial();
  BT_serial.println(“send Message”);
}

void loop()
{
  while(Serial.available())
    {
          msg[i] = Serial.read();        
          i++;          
    }
    if(msg[i-1]==’\r’)
      {
          matrix_LED_serial.print(‘!’);
          matrix_LED_serial.print(“New Notice: “);
          display_time_n_date();
          matrix_LED_serial.print(msg);
          matrix_LED_serial.print(‘\r’); 
          i=0;
       }     
 }
void display_time_n_date()
  {
      DateTime now = rtc.now(); 
      matrix_LED_serial.print(“Date-“);     
      matrix_LED_serial.print(now.day());
      matrix_LED_serial.print(‘/’);
      matrix_LED_serial.print(now.month());
      matrix_LED_serial.print(‘/’);
      matrix_LED_serial.print(now.year());
      matrix_LED_serial.print(“, Time-“);
      matrix_LED_serial.print(now.hour());
      matrix_LED_serial.print(‘:’);
      matrix_LED_serial.print(now.minute());
      matrix_LED_serial.print(‘:’);
      matrix_LED_serial.print(now.second());
      matrix_LED_serial.print(“, Message: “);  
  }

In next article, we’ll learn how to send a message to this board from distant place through SMS.


Filed Under: Arduino Projects, Microcontroller Projects
Tagged With: Arduino
 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: Internet of Things
Explore practical strategies for minimizing attack surfaces, managing memory efficiently, and securing firmware. Download now to ensure your IoT implementations remain secure, efficient, and future-ready.

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • Voltage mode pushpull is a nonsense SMPS?
  • Input impedance matching network
  • High Side current sensing
  • The comparison of different Tcl script checkers
  • Reducing "shoot-through" in offline Full Bridge SMPS?

RSS Electro-Tech-Online.com Discussions

  • Is AI making embedded software developers more productive?
  • Back to the old BASIC days
  • Parts required for a personal project
  • PIC KIT 3 not able to program dsPIC
  • Failure of polypropylene motor-run capacitors

Featured – RPi Python Programming (27 Part)

  • RPi Python Programming 21: The SIM900A AT commands
  • RPi Python Programming 22: Calls & SMS using a SIM900A GSM-GPRS modem
  • RPi Python Programming 23: Interfacing a NEO-6MV2 GPS module with Raspberry Pi
  • RPi Python Programming 24: I2C explained
  • RPi Python Programming 25 – Synchronous serial communication in Raspberry Pi using I2C protocol
  • RPi Python Programming 26 – Interfacing ADXL345 accelerometer sensor with Raspberry Pi

Recent Articles

  • What is AWS IoT Core and when should you use it?
  • AC-DC power supply extends voltage range to 800 V DC
  • Infineon’s inductive sensor integrates coil system driver, signal conditioning circuits and DSP
  • Arm Cortex-M23 MCU delivers 87.5 µA/MHz active mode
  • STMicroelectronics releases automotive amplifiers with in-play open-load detection

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 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

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey 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
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe