Bluetooth controlled Wireless Notice board using P10 LED Matrix Display and Arduino

Bluetooth controlled Wireless Notice board using P10 LED Matrix Display and Arduino

You may have seen many conventional digital notice boards where one has to update the displayed information by manually changing the message using a keyboard or some other tool. But these notice boards can easily be converted into a wireless notice board, one such way is to use Bluetooth. By integrating the Bluetooth, the information on the LED panel can be updated wirelessly through our smartphone. Here HC05 Bluetooth module is connected to Arduino Uno which receives the data sent from the smartphone application. Then Arduino will process the data and display the information on the LED board.

Arduino and Bluetooth are commonly used in building any IoT based application, you can find some useful Arduino based IoT projects by following the link.

 

Materials Used

  • 32*16 P10 LED module-1
  • Arduino UNO-1
  • HC05 Bluetooth module -1
  • 5V,3 AMP SMPS -1
  • 16 Pin FRC connector -1
  • Connecting wires
  • Jumpers

 

P10 LED Matrix Display Module

P10 LED Matrix Display Module

P10 is a 32*16 LED Matrix module which is popular for displaying big advertisements. There are 512 high-intensity LEDs in each unit of the P10 LED Module which consists, 32 LEDs in each row and 16 LEDs in each column.

P10 LED modules can be multiplexed to build a bigger size display. There are two ports in a P10 module- input and output port. An input port is used for the incoming data from the Arduino side and the output port is used to connect the module to another LED P10 module.

LED P10 Module

P10 LED Module Pinout

 

Pin Description of P10 LED Module: 

  • Enable: This pin is used to control the brightness of the LED panel, by giving a PWM pulse to it.
  • A, B: These are called multiplex select pins. They take digital input to select any multiplex rows.
  • Shift clock (CLK), Store clock (SCLK) and Data: These are the normal shift register control pins. Here a shift register 74HC595 is used.

 

Connection Diagram

Complete circuit diagram for P10 module with Arduino and Bluetooth module is given below:

 Circuit Diagram for P10 Module with Arduino and Bluetooth Module

Bluetooth controlled Wireless Notice board using P10 LED Matrix Display and Arduino

 

Programming the Arduino for P10 LED Display Board

Complete code for this Wireless notice board using Bluetooth module and Arduino is given at the end of the tutorial, here we are explaining the code in detail.

First, download and install the DMD.h and TimerOne.h library from the given links and then include all the required libraries in your code. Also, include the “Arial Black font” library for the text font which will be displayed on the LED board.

#include <SPI.h>
#include <DMD.h>       
#include <TimerOne.h>  
#include "SystemFont5x7.h"
#include "Arial_black_16.h"

 

In the next step, define the number of rows and columns, here we are using only one module, so ROW value and COLUMN value will be 1.

#define ROW_MODULE 1
#define COLUMN_MODULE 1
DMD p10 (ROW_MODULE, COLUMN_MODULE);

 

Then define all the variables which will be used throughout the program. Here you can see two Arrays, one for storing the notice board message and the other is for a welcome message (Welcome to IoT Design).

char message[200];
char char_read;
byte pos_index = 0;
int i;           
char welcome_screen[] = "Welcome to IoT Design";

 

A Function p10scan() is written to check the incoming data from the Arduino side through the SPI Terminals. If it receives any data then it will trigger an interrupt pin for doing certain events.

void p10scan()
{
  p10.scanDisplayBySPI();
}

 

Inside setup(), we have initialized the timer and attached the interrupt to the function p10scan(). First, clear the screen using the function clearScreen(true) to turn off all the pixels on the LED board. Next copy the welcome_screen array to the message array by using strcpy function to display the welcome message until we give any message via Bluetooth application.

void setup()
{
   Timer1.initialize(2000);
   Timer1.attachInterrupt(p10scan);
   p10.clearScreen( true );
   Serial.begin(9600);
   strcpy(message,welcome_screen);
}

 

Inside the infinite loop, write a code to receive the message sent from the Bluetooth application. So, whenever the function Serial.available() is greater than 0, that means there is some data present at the serial terminal. Then copy the received message to the array.

if(Serial.available())
   {     
        for(i=0; i<199; i++)
        {
            message[i] = '\0';
            Serial.print(message[i]);
        }     
        pos_index=0;
    }
    while(Serial.available() > 0)
    {
       p10.clearScreen( true );
       if(pos_index < (199))
       {        
           char_read = Serial.read();
           message[pos_index] = char_read;
           pos_index++;     
       }
   }

 

To display a string on the LED matrix module in the desired font, use selectFont() function and use drawMarquee() function to print the string “Welcome to IoT Design”.

p10.selectFont(Arial_Black_16);
 p10.drawMarquee(message ,200,(32*ROW_MODULE)-1,0);

 

Finally to make the text scrolling, shift the whole message from Right to Left directions using a certain time period.

long start=millis();
   long timer_start=start;
   boolean flag=false;
   while(!flag)
   {
     if ((timer_start+30) < millis())
     {
       flag=p10.stepMarquee(-1,0);
       timer_start=millis();
     }
   }

 

Wireless Notice board using Bluetooth and Arduino

This is how a Wireless Notice board using Bluetooth and Arduino can be built to display the advertisements on P10 LED display board.

Complete code and the demonstration video are given below.

 

Code

#include <SPI.h>
#include <DMD.h>        
#include <TimerOne.h>   
#include "SystemFont5x7.h"
#include "Arial_black_16.h"
#define ROW_MODULE 1
#define COLUMN_MODULE 1

DMD p10(ROW_MODULE, COLUMN_MODULE);

char message[200];
char char_read;
byte pos_index = 0;
int i;            
char welcome_screen[] = "Welcome to IoT Design";

void p10scan()

  p10.scanDisplayBySPI();
}

void setup()
{
   Timer1.initialize(2000);
   Timer1.attachInterrupt(p10scan);
   p10.clearScreen( true );
   Serial.begin(9600);
   strcpy(message,welcome_screen);
}
void loop()
{

   if(Serial.available())
   {       
        for(i=0; i<199; i++)
        {
            message[i] = '\0';
            Serial.print(message[i]);
        }      
        pos_index=0;
    }

    while(Serial.available() > 0)
    {
       p10.clearScreen( true );
       if(pos_index < (199)) 
       {         
           char_read = Serial.read();
           message[pos_index] = char_read;
           pos_index++;      
       } 
   }
    
   p10.selectFont(Arial_Black_16);
   p10.drawMarquee(message ,200,(32*ROW_MODULE)-1,0);
   long start=millis();
   long timer_start=start;
   boolean flag=false;
   while(!flag)
   {
     if ((timer_start+30) < millis()) 
     {
       flag=p10.stepMarquee(-1,0);
       timer_start=millis();
     }
   }
}

 

Video

38 Comments

Thanks for sharing this content. Please tell me which android application you used in sending the text? and how can I get it, can you share download link please.

A SARVESWARA ADITYA

31 March 2021

sir,
i am getting error while dumping code into arduino
the error is mentioned below please help me in solving this

'class timer one , has no member named 'initialize'

Thank you so much. I need your reply regarding LED module. I wish to use P6 RGB module. Is that possible? If so what will be the change in programming code, please.

How to change column numbers? I change it to two but the text showing in same, not on the complete board. But row value to 2 to 3 work. Any suggestion please

Hlo sir
this projects is very good
but sir
I make the project and bluetooth can connect but do not catch the p10 led screen
I use the 5v 3amp smps
connection is correct

I would like to show some thanks to this writer just for bailing me out of this type of challenge. Just after exploring through the internet and seeing advice that were not powerful, I figured my life was over. Living without the strategies to the difficulties you have resolved by means of your posting is a critical case, as well as the ones that could have in a wrong way damaged my career if I hadn't come across your blog post. The mastery and kindness in handling a lot of things was helpful. I don't know what I would have done if I had not come upon such a stuff like this. I am able to at this point look forward to my future. Thanks for your time very much for your reliable and amazing guide. I will not be reluctant to propose your web page to anybody who ought to have direction on this problem.

I precisely desired to thank you very much once more. I do not know the things I would've achieved in the absence of the entire points provided by you on this concern. Entirely was an absolute difficult crisis in my view, but being able to view a professional way you resolved the issue made me to leap for contentment. Now i am happy for this guidance and then believe you comprehend what an amazing job you happen to be carrying out teaching people today through your webblog. More than likely you haven't encountered all of us.

I want to convey my gratitude for your kindness for individuals who really want assistance with your area. Your special dedication to passing the solution across appears to be wonderfully powerful and has really helped associates like me to get to their dreams. This informative guidelines denotes much to me and a whole lot more to my office workers. Best wishes; from all of us.

I wish to express my appreciation to this writer for bailing me out of this type of incident. Because of looking out throughout the search engines and finding principles which were not helpful, I was thinking my life was well over. Existing minus the approaches to the problems you have resolved by way of the guide is a crucial case, and those that could have adversely damaged my entire career if I had not come across your web blog. Your primary training and kindness in taking care of almost everything was very useful. I'm not sure what I would've done if I hadn't discovered such a point like this. I am able to at this point look forward to my future. Thanks a lot very much for your high quality and results-oriented guide. I won't be reluctant to recommend your blog post to anybody who ought to have direction about this issue.

There are actually numerous details like that to take into consideration. That is a nice point to bring up. I provide the ideas above as general inspiration however clearly there are questions just like the one you bring up where the most important factor shall be working in sincere good faith. I don?t know if finest practices have emerged around things like that, but I'm certain that your job is clearly recognized as a fair game. Each boys and girls feel the influence of only a moment抯 pleasure, for the remainder of their lives.

Thanks for all of your effort on this site. Kim take interest in working on research and it's really obvious why. Most people know all regarding the compelling ways you offer powerful tips and hints via the blog and therefore recommend response from others on the idea and our favorite daughter is actually starting to learn so much. Take pleasure in the rest of the new year. You are always conducting a remarkable job.

Thank you for your whole efforts on this blog. My niece take interest in making time for investigations and it is easy to understand why. We all learn all relating to the compelling medium you give very important techniques through the website and as well inspire response from others about this area of interest so my princess is truly discovering a whole lot. Enjoy the rest of the year. You are always performing a fantastic job.

I and also my pals were actually following the great strategies from your web blog and then instantly developed an awful feeling I had not thanked the site owner for them. My young boys came so joyful to read through all of them and have now actually been using these things. I appreciate you for being indeed accommodating as well as for using these kinds of brilliant subjects millions of individuals are really wanting to discover. Our own honest apologies for not expressing gratitude to you earlier.

I intended to put you one very little word to give thanks as before over the beautiful knowledge you have contributed at this time. It's quite particularly open-handed with people like you to give unhampered what a number of us would have marketed as an e book to generate some profit for themselves, most importantly now that you might well have tried it in case you wanted. Those smart ideas in addition worked as the easy way to be aware that many people have a similar desire the same as my personal own to grasp many more with regards to this condition. I'm certain there are lots of more pleasurable sessions up front for individuals who read through your blog post.

I enjoy you because of all of your hard work on this web site. My mom takes pleasure in participating in investigations and it is easy to see why. Many of us learn all about the compelling manner you make precious guidelines via the web site and as well increase response from other people on that area and our girl is really studying a lot of things. Have fun with the rest of the new year. You have been conducting a tremendous job.

I intended to write you a little word to be able to thank you once again for your precious basics you've contributed at this time. This is really unbelievably generous with people like you giving extensively what exactly many people would've marketed for an ebook to generate some cash for themselves, precisely considering that you might have tried it if you desired. Those techniques also served like the good way to fully grasp other individuals have a similar keenness really like my personal own to realize a little more on the topic of this issue. I am sure there are millions of more enjoyable sessions ahead for many who read through your blog.

I enjoy you because of all your work on this web page. My mom loves managing investigations and it is easy to understand why. My partner and i hear all relating to the compelling manner you provide very important guidelines through the web site and therefore foster contribution from other people on this issue plus our own daughter is really starting to learn a great deal. Have fun with the rest of the year. Your carrying out a fantastic job.

I have to show thanks to this writer for bailing me out of this type of situation. Right after scouting throughout the the web and meeting recommendations that were not beneficial, I figured my entire life was well over. Living devoid of the approaches to the issues you have solved as a result of your main guide is a serious case, and the ones that might have badly affected my entire career if I had not come across the blog. Your own personal skills and kindness in dealing with almost everything was important. I'm not sure what I would have done if I had not come across such a subject like this. I am able to at this point look forward to my future. Thanks a lot so much for the impressive and amazing help. I will not think twice to recommend your site to anyone who should get care on this situation.

I not to mention my guys have already been reading the nice thoughts located on the website while all of the sudden I got an awful suspicion I never thanked the site owner for those strategies. All the ladies are actually for that reason happy to see them and now have in reality been making the most of them. Appreciation for really being considerably thoughtful as well as for figuring out variety of decent information millions of individuals are really eager to be aware of. My personal honest apologies for not expressing gratitude to earlier.

Thanks a lot for providing individuals with such a splendid chance to read in detail from this blog. It can be so great and as well , packed with amusement for me personally and my office friends to search your site no less than 3 times in a week to read the newest secrets you will have. And indeed, we're certainly pleased for the exceptional information you give. Selected two areas in this post are easily the finest we have all ever had.

I have to show my thanks to you just for rescuing me from this problem. Right after scouting through the world wide web and coming across tips which were not productive, I was thinking my entire life was done. Existing without the approaches to the problems you have sorted out by way of your posting is a serious case, as well as those that would have badly damaged my career if I had not noticed your blog post. Your primary mastery and kindness in maneuvering every item was helpful. I don't know what I would have done if I had not come across such a solution like this. I can also at this moment relish my future. Thanks very much for your expert and sensible help. I won't hesitate to endorse the sites to any individual who should receive guidelines about this situation.

I actually wanted to develop a small message in order to express gratitude to you for the amazing information you are posting on this website. My time-consuming internet search has at the end been honored with incredibly good facts and techniques to go over with my great friends. I would state that that many of us website visitors are extremely fortunate to be in a superb site with very many outstanding individuals with valuable suggestions. I feel pretty happy to have seen your web pages and look forward to some more exciting times reading here. Thanks once again for a lot of things.

I must express thanks to you for rescuing me from this type of setting. After surfing around throughout the the net and coming across tricks that were not beneficial, I believed my entire life was well over. Living without the solutions to the problems you have fixed by way of your entire review is a crucial case, as well as ones which could have in a wrong way damaged my entire career if I hadn't encountered your website. That talents and kindness in taking care of almost everything was valuable. I don't know what I would have done if I had not encountered such a step like this. I'm able to at this point look forward to my future. Thanks for your time so much for the specialized and results-oriented guide. I will not be reluctant to refer your web blog to any individual who ought to have direction about this area.

Needed to create you this very little note to say thank you yet again just for the pretty guidelines you have shared at this time. It is unbelievably generous of you to allow without restraint all a few people could have offered as an ebook to earn some money for their own end, even more so seeing that you could have done it in the event you decided. These strategies likewise acted to be the easy way to be certain that most people have the same desire like my very own to find out a little more in regard to this condition. I am certain there are many more enjoyable moments in the future for people who scan your blog.

I needed to put you one very little remark to be able to thank you very much again for all the pleasant knowledge you have shown on this site. This is certainly unbelievably generous with you to convey openly what some people might have sold as an e book to help with making some profit for themselves, precisely considering the fact that you might well have tried it if you ever considered necessary. These suggestions likewise acted like the fantastic way to comprehend most people have the same dreams the same as my very own to figure out great deal more when it comes to this issue. I am certain there are a lot more enjoyable opportunities ahead for many who scan your website.

A lot of thanks for all of your hard work on this web page. Gloria enjoys doing research and it is easy to see why. We all notice all of the lively way you offer advantageous tips and hints by means of the web blog and as well as cause response from people on that matter then our own daughter has always been being taught a great deal. Take advantage of the rest of the year. You are conducting a glorious job.

A lot of thanks for each of your effort on this web site. Ellie delights in managing research and it's really easy to understand why. My partner and i notice all concerning the lively tactic you render important tactics through this website and in addition cause participation from others on this content and our favorite daughter has always been becoming educated a great deal. Have fun with the remaining portion of the new year. Your performing a tremendous job.

Add new comment

The content of this field is kept private and will not be shown publicly.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.