Introduction: LCD Display Via Bluetooth
Hi, guys!! I'm Sridhar Janardhan back with another ibles.Today I am going to teach you how to send data from mobile to Arduino and display using it an LCD.This is achieved by using HC-05 Bluetooth module.
Step 1: Components Required:
The components required for this ibles are:
- Arduino Uno
- Breadboard
- LCD
- Bluetooth module
- Jumper Wires
Let's start to connect the Bluetooth module
Step 2: Bluetooth Module Connection:
The Bluetooth module is used for transmitting data wirelessly from the transmitter to receiver.The hc-05 module works on the same principle but on the different operation.let me explain the basic pins of the Bluetooth module
The HC-05 Bluetooth module has four pins:
- TX pin - Transmitting pin which is used to transmit the data
- RX pin - the pin that receives data from the receiver.
- VCC pin -power supply pin
- GND pin - power supply pin
The connection of the module is as follows:
- TX pin to the RX pin of Arduino
- RX pin to the TX pin of Arduino
- VCC pin to the Positive railings of the breadboard
- GND pin to the negative railings of the breadboard
Step 3: LCD Interface:
Interfacing an LCD to an Arduino is hectic as it has much connection and also spoils the beauty of the circuit by its ugly wire.To avoid these stuff I2C is used.
The connection of the LCD is as follows:
- VCC- to the positive railing of the breadboard.
- GND- to the negative railing of the breadboard.
- SDA- To Arduino analog pin A4.
- SDL- To Arduino analog pin A5.
Now let's start coding.
Step 4: Coding
#include <LiquidCrystal_I2C>
LiquidCrystal_I2C lcd(0x3f, 16, 2);
void setup() {
lcd.begin();
Serial.begin(115200);
}
void loop() {
if(Serial.available()){
lcd.write(Serial.read());
}
}