Hello everyone,This is my another blog in which I made a simple but useful remote LCD.
Now you have question in your mind that what is basically all about?
In this,you can connect your phone to the Blutooth module of your Arduino,after that enter a text message and it will appear on the Arduino’s LCD.
Now you have question in your mind that what is basically all about?
In this,you can connect your phone to the Blutooth module of your Arduino,after that enter a text message and it will appear on the Arduino’s LCD.
Step 1: Requirement of Materials:
The various materials that are required to make this are:
•A breadbord.
•A LCD display and potmeter
•A Arduino UNO or MEGA.
•Some wires.
•A mobile phone Android, Windows or Apple.
Step 2: Stick the parts in the breadboard.
In this step,you don’t have to do much. Just put the parts in the breadboard.
Step 3: Connect the Bluetooth module.
After putting the parts in the breadboard,you will need to connect the Bluetooth module to the Arduino.
Module: Arduino
TX ====>pin1
RX ====>pin2
VCC ====>+5v
GND ===>GND
Step 4: Connect the LCD
Now you'll need to connect the LCD screen to the Arduino.
For this,you can see the image.
Turn on your Arduno and test if the LCD is working properly. You will see some black filled pixels on the screen.
Step 5: Upload the code.
Now you will need to upload the code to the Arduino.
Start up your Arduino Software and select the correct COM port and board.
Open the file added (Bluetooth Commander.ino) and press "upload"!
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
String inData;
void setup()
{
Serial.begin(9600);
lcd.begin(16, 2);
lcd.print("Welcome!");
delay(3000);
lcd.clear();
}
void loop()
{
int i=0;
char commandbuffer[100];
if(Serial.available())
{
delay(100);
while( Serial.available() && i< 99)
{
commandbuffer[i++] = Serial.read();
}
commandbuffer[i++]='\0';
}
if(i>0)
Serial.println((char*)commandbuffer);
lcd.print((char*)commandbuffer);
delay(1000);
lcd.clear();
}
Step 6: Set up your phone.
First you will need to pair to the Bluetooth network called HC-05 you can do this with password 1234.
Download from the phone store some app where you can send serial commands to the module.
I used Bluetooth Terminal for Android. When you have done that open the app click on connect to a device and tap on HC-05 it should connect now.
Step 7: Test it!
Now test it!
Just type some text into the commander and then the text will appear on the Arduino!
When you have a problem uploading the Arduino sketch try unplugging the Bluetooth module's TX and RX pins, upload then.
Post your comments and suggestions in the comments section Below!!!
No comments:
Post a Comment