Arduino Based Wireless Notice Board Using Bluetooth and Android Application - uptongramemptere
Introduction: Arduino Based Radio Bulletin board Exploitation Bluetooth and Android Application
The ingurgitate you bequeath need:
Breadboard. HC-05 bluetooth module. 16x2 LCD display I2c Module Arduino UNO or Nano. Few wires. Cellphone from Android. That's all! First, oarlock your LCD with I2C board on the breadboard and power the breadboard by connecting a wire from "5V" (Positive) on your Arduino to the positive row connected the bread board and another one from "GND" (ground OR 0V) to the negative words. Then link the LCD to the I2C module and I2C to Arduino: I2C SCL pin 4 - Arduino pin A5 I2C SDA pin 3 - Arduino pin A4 I2C GND pin 2 – 0V I2C VCC pin 1 – 5V Then connect the Tx(Transmit) pin connected your Bluetooth module to the Rx (Receive) on the Arduino, and connect the Rx pin on your BT module to the Lone-Star State on the Arduino. Finally, power the BT module by copulative the VCC (or 5V) to the positive row connected the breadboard and connect the GND to the negative one on the breadboard. Now open humanoid app and goto Bluetooth setting and unite to Bluetooth is "ON" and select HC-05. And so simply compose your text in L1 & L2 row in the app through versatile and press air text Button and text should be printed on the LCD.
Trouble shooting of Bluetooth issue: Commove the Bluetooth in your device. Research for new twist. Tick on Hc05 at one time it appear. Go into the password "1234" or "0000". Mistreat 1: To print text to the LCD, the LCD I2C address should be 0x27 or 0x3F.
#include
LiquidCrystal_I2C LCD(0x27,16,2); // fixed the Liquid crystal display address to 0x27 for a 16 chars and 2 line exhibit
void setup() {
liquid crystal display.init(); // initialize the lcd // Print a message to the LCD.
lcd.backlight(); lcd.setCursor(0,0); lcd.print("Hello world");
liquid crystal display.setCursor(0,1);
lcd.print("Hello Earthly concern"); }
void loop() { }
Here the Final yield
Download Code Hither:
https://drive.google.com/drive/folders/1K4hHoZI1Xt...
Step 2: To black and white Scroll school tex to the LCD, the LCD I2C address should be 0x27 Beaver State 0x3F. #include
// set the LCD number of columns and rows int
lcdColumns = 16;
int lcdRows = 2;
// set Liquid crystal display address, number of columns and rows // if you don't have it off your display direct, lead an I2C scanner sketch
LiquidCrystal_I2C lcd(0x27, lcdColumns, lcdRows);
String messageStatic = "Dofbot.com";
String messageToScroll = "arduino, IoT, NODEMCU Projects done here";
// Function to ringlet text // The function acepts the following arguments: // row: row number where the text edition wish exist displayed //
subject matter: subject matter to scroll // delayTime: delay between each lineament shifting // lcdColumns: number of columns of your LCD void scrollText(int wrangle, String substance, int delayTime, int lcdColumns) { for (int i=0; i < lcdColumns; i++) { message = " " + message; } message = message + " "; for (int pos = 0; pos < message.duration(); pos++) { lcd.setCursor(0, row);
lcd.print(message.substring(pos, pos + lcdColumns));
delay(delayTime); } }
nullity setup(){ // initialise LCD lcd.init(); // trip out LCD backlight lcd.backlight(); }
void loop(){
// set cursor to first column, first row
lcd.setCursor(0, 0); // print static message
lcd.black and white(messageStatic); // print scrolling content
lcd.setCursor(0,1);
scrollText(1, messageToScroll, 250, lcdColumns); }
Download Code Here: https://drive.google.com/repulse/folders/1x5YoJn3vO...
Step 3: To print text to the LCD victimisation android app, the LCD I2C address should beryllium 0x27 or 0x3F. // Project by G Ramesh // dofbotindia@gmail.com // dofbot.com
#include
#include 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 wrangle, 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, run-in); lcd.print(subject matter.substring(pos, pos + lcdColumns)); hold up(delayTime); }
}
void setup() { lcd.init(); // initialize the liquid crystal display // Print a message to the LCD. lcd.backlight(); lcd.begin(16,2);// Columnas y filas Diamond State LCD Serial.begin(9600); }
void loop() {
if(Series.available()) { Exhibit = Sequent.read(); Word = Holy Writ + Display;
if (Display == '*') {
Serial.println(Word);
Sequential.println(); L1 = Tidings.indexOf(',');
messageStatic = Word.substring(0, L1); L2 = Word.indexOf(',', L1+1); messageToScroll = Scripture.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); // LCD.setCursor(0,1); // scrollText(1, messageToScroll, 250, lcdColumns); } } }
Download Computer code Here: https://drive.google.com/drive/folders/1nCTj7Jajh...
Download Mechanical man App Here:
https://drive.google.com/file out/d/1EyUCdOk0eEvBCo37P...
Be the Initiative to Share
Recommendations
-
Anything Goes Contest 2022
Source: https://www.instructables.com/Arduino-Based-Wireless-Notice-Board-Using-Bluetoot/
Posted by: uptongramemptere.blogspot.com

0 Response to "Arduino Based Wireless Notice Board Using Bluetooth and Android Application - uptongramemptere"
Post a Comment