How to Change Scrolling Text on MAX7219 LED Matrix Display via Bluetooth (Arduino + HC-05 Tutorial)

Introduction

In the previous tutorial, we successfully built an 8×32 MAX7219 LED Matrix scrolling display using Arduino. That display works perfectly, but there is one limitation — every time we want to change the scrolling text, we must re-upload the Arduino code. This is not practical, especially if you want to use the display in offices, shops, notice boards, or home projects.

To solve this problem, in this tutorial we will change the scrolling text wirelessly using Bluetooth. By adding just one extra component — the HC-05 Bluetooth module, we can update the scrolling message directly from a mobile phone without touching the code again.

This project is simple, beginner-friendly, and very useful for real-world applications like digital notice boards, name displays, and smart message panels.


Project Overview

  • Display Type: 8×32 MAX7219 LED Matrix
  • Controller: Arduino Nano
  • Communication: Bluetooth (HC-05)
  • Control Device: Android Smartphone
  • App Used: Serial Bluetooth Terminal


Components Required

  1. Arduino Nano (or Uno)
  2. 8×32 MAX7219 LED Matrix Display
  3. HC-05 Bluetooth Module
  4. Connecting Wires
  5. Type-B USB Cable
  6. Android Smartphone


Step 1: Why Bluetooth is Needed

Normally, the scrolling text is written directly inside the Arduino sketch.
To change the text:

  • Modify code
  • Upload again
  • Repeat every time

This is not user-friendly. By using Bluetooth serial communication, we can send new text live from the phone, and the display will update instantly.


Step 2: Understanding HC-05 Bluetooth Module Pins

The HC-05 module has 6 pins, but we will use only 4 pins:

  • +5V – Power supply
  • GND – Ground
  • TXD – Transmit
  • RXD – Receive

The remaining pins (EN / KEY / STATE) are not required for this project.


Step 3: Bluetooth Module Connections

Connect the HC-05 Bluetooth module to the Arduino as follows:

  • HC-05 +5V → Arduino +5V
  • HC-05 GND → Arduino GND
  • HC-05 TX → Arduino RX
  • HC-05 RX → Arduino TX

⚠️ Important Rule:

  • TX connects to RX
  • RX connects to TX

This is mandatory for serial communication.


Step 4: Preparing for Code Upload

  1. Connect the Arduino Nano to your laptop using a Type-B USB cable.
  2. Power ON the circuit.
  3. You will notice the Bluetooth module LED blinking rapidly, which means it is waiting for pairing.

⚠️ Before uploading the code:

  • Disconnect RX and TX pins of the Bluetooth module
    This prevents upload errors.


Step 5: Opening the Required Arduino Example Code

Open Arduino IDE
Go to:

  1. File → Examples → MD_MAX72xx → MD_MAX72xx_Message_Serial

This example is perfect for scrolling text via serial input.


Step 6: Modifying the Code Settings

Inside the code:

1. Select Hardware Type

Choose the correct MAX7219 hardware type used in your display.

2. Set Maximum Devices

Set how many 8×8 MAX7219 modules are connected.
For an 8×32 display, set:
MAX_DEVICES = 4

3. Adjust Scroll Delay

You can increase or decrease scroll speed as per your requirement.

4. Change Baud Rate

Find this line inside void setup():
Serial.begin(57600);
Change it to:
Serial.begin(9600);

This is required because HC-05 works reliably at 9600 baud rate.


Step 7: Uploading the Code

  1. Go to Tools
  2. Select correct Board Type (Arduino Nano)
  3. Select correct COM Port
  4. Upload the code

After successful upload:

  • Reconnect RX and TX pins of the Bluetooth module.

Now you will see default text scrolling on the display.


Step 8: Installing Bluetooth App on Phone

  1. Open Play Store
  2. Install “Serial Bluetooth Terminal” app


Step 9: App Configuration Settings

  1. Open the app
  2. Tap on three lines (☰) at top left
  3. Go to Settings → Receive
  4. Set New Line = LF

This step is very important for proper text display.


Step 10: Connecting Bluetooth Module with Phone

  1. Turn ON Bluetooth in your phone
  2. Open the app
  3. Tap on ☰ → Devices
  4. Select your HC-05 module

After connection:

  • App will show Connected status
  • Bluetooth icon appears on top right
  • HC-05 LED blinking will slow down (connection confirmed)


Step 11: Changing the Scrolling Text

Now the fun part 

  • At the bottom text box of the app
  • Type any text, number, or symbol
  • Press Send

Instantly, the new text will start scrolling on the MAX7219 display.

You can send:

  • Text
  • Numbers
  • Special characters
  • Fonts supported by the library


Step 12: Using Presets (M1, M2, M3…)

The app allows preset messages:

  1. Long-press on M1
  2. Enter your text
  3. Save it

Now, just tap M1 and the saved message will scroll automatically.

This is very useful for fixed messages like:

  • Welcome
  • Office Name
  • Alerts
  • Notices


Important Note (Power Loss Behavior)

⚠️ Keep this in mind:
If power is disconnected:

  • The display will start scrolling the default text written in the Arduino code
  • Bluetooth-sent text is temporary

For permanent storage, EEPROM or flash memory can be used in advanced versions.


Conclusion

By adding just one HC-05 Bluetooth module, we transformed a normal MAX7219 scrolling display into a wireless, smart, and user-friendly system. Now you can change messages instantly from your phone without touching the code or laptop again.

This project is perfect for:

  • Digital notice boards
  • Office desk displays
  • Shops & counters
  • Home automation projects

Post a Comment

0 Comments