Hello.
This time we will make an exciting project using a Bluetooth module HC-05 and Arduino UNO R3
In this article, we are going to make a Bluetooth Noticeboard.
Such digital noticeboards can be utilized in various settings like restaurants, offices, and other workplaces to display information.
The main advantage of using this noticeboard is that you can change the text again and again as per your requirements, without wasting any time. Let us start the project. You can also read more articles on IoT and basic electronics published by us.
Description of Arduino Based Noticeboard
- You can display the text of your wish on the LCD screen by entering it on the mobile app.
- Open the play store on your Android device and download the Bluetooth serial app.
- Then install it and turn on the Bluetooth of your mobile phone.
- Pair it with the HC-05 Bluetooth and operate the application.
- It will display the text “wireless noticeboard” for the first few seconds and then starts to display the text provided by you.
- Download Bluetooth serial from the play store
Components Required
- Arduino UNO R3
- I2C module
- 16×2 LCD display module or combined LCD Display with I2C module
- HC-05 Bluetooth module
- Jumper wires and a breadboard
- USB cable for uploading the code
Circuit for Bluetooth Noticeboard
- Make the connections between the I2C module and 16×2 LCD. You can refer to our article for interfacing the I2C module with a 16×2 LCD module.
- Then join the VCC pin of the I2C module with the 5 volts pin of the Arduino and the GND pin of the I2C module with the GND pin of the Arduino.
- Connect the SDA and SCL pins of the I2C module with the SDA (analog-4) and SCL (analog-5) pins of the Arduino. Then take the Bluetooth module and connect its VCC pin with the 5 volts pin of the Arduino.
- Join the GND pin of the Bluetooth module with the GND pin of the Arduino.
- Attach the digital-2 pin of the Arduino with the Tx pin of the module, and the digital-3 pin of the Arduino with the Rx pin of the module.
- If the display did not work properly, then please check the address of your I2C module and update the code with the new address.
- Your circuit is complete now, and you can proceed with the next steps.
Code for Arduino based Bluetooth Noticeboard
NOTE: Please upload this code to the Arduino UNO. You have to install <LiquidCrystal_I2C.h> and <SoftwareSerial.h> libraries first. Check here how to install a zip library in the Arduino IDE.
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
int lcdColumns = 16;
int lcdRows = 2;
LiquidCrystal_I2C lcd(0x27, lcdColumns, lcdRows);
char Display;
String Word;
String messageStatic;
String messageToScroll;
int L1;
int L2;
void scrollText(int row, String message, int delayTime, int lcdColumns) {
for (int i=0; i < lcdColumns; i++) {
message = ” ” + message;
}
message = message + ” “;
for (int pos = 0; pos < message.length(); pos++) {
lcd.setCursor(0, row);
lcd.print(message.substring(pos, pos + lcdColumns));
delay(delayTime);
}
}
void setup()
{
lcd.init();
lcd.backlight();
lcd.begin(16,2);// Columnas y filas de LCD
Serial.begin(9600);
}
void loop() {
if(Serial.available())
{
Display = Serial.read();
Word = Word + Display;
if (Display == ‘*’) {
Serial.println(Word);
Serial.println();
L1 = Word.indexOf(‘,’);
messageStatic = Word.substring(0, L1);
L2 = Word.indexOf(‘,’, L1+1);
messageToScroll = Word.substring(L1+1, L2);
Serial.print(“messageStatic”);
Serial.println(messageStatic);
Serial.print(“messageToScroll”);
Serial.println(messageToScroll);
Word = “”;
lcd.setCursor(0,0);
lcd.print(messageStatic);
lcd.setCursor(0,1);
lcd.print(messageStatic);
}
}
}
Connecting the app:-
- Open the play store on your Android device and download the Bluetooth serial app.
- Open the phone Bluetooth setting and pair a new device
- Select hc-05 from there and pair it to the Bluetooth
- Enter the password 1234
- After connecting, open the serial app and connect the paired Bluetooth.
- Now write text and send.
We hope that you liked this project.
Check out our other projects:
- Automatic Toll Gate Using Arduino and HC-SR04 sensor
- Automatic Street Light using Light Sensor
- Automatic Dustbin using Arduino
- Fire Alarm Using Arduino
- Arduino Weather Station using DHT11 Sensor
Thanks for reading!