Introduction

In this article, I will explain about controlling the LCD display by using BlueTooth (HC05). It will control and display the name that we have set in our mobile phone. And, I will show the demo of how it works.

List of Parts

Hardware Parts
  • Arduino Uno
  • Potentiometer
  • Bread Board
  • Resistor
  • BlueTooth (HC05).
  • Mobile Phone
  • Hook up wires
Software Required
  • Arduino IDE
  • Android App.

Parts Explanation

BlueTooth HC05
  • The BlueTooth HC05 is used to communicate the message from Arduino to the mobile phone.
  • It is a wireless device to send the message clearly.
    Figure1 - HC05

Connection

Arduino To Bluetooth Module(HC05)
  • In the Bluetooth, the Vcc should be connected to the 5v supply of the Arduino board.
  • In the Bluetooth, the Gnd should be connected to the Gnd supply of the Arduino board.
  • In the Bluetooth, the Tx should be connected to the Rx of the Arduino board.
  • In the Bluetooth, the Rx should be connected to the Tx of the Arduino board.
LCD Display To Arduino Uno
  • Fix the LCD in 16 to 2 of the bread board.
  • The 16 pin to the Gnd.
  • The 15 pin to the Vcc.
  • The 14 pin to the Digital pin 12.
  • The 13 pin to the Digital pin 11.
  • The 12 pin to the Digital pin 05.
  • The 11 pin to the Digital pin 04.
  • The 01 pin to the Gnd.
  • The 02 pin to the Vcc.
  • The 03 pin to the potentiometer.
  • The 04 pin to the Digital pin 03.
  • The 05 pin to the Gnd.
  • The 06 pin to the Digital pin 02.
    Figure 2 - LCD Display
Potentiometer To LCD Display
  • Connect the Arduino board to the LCD display as per the preceding figure.
  • The Vin should be connected to the LCD display in 03.
Programming For LCD Coding
  1. #include <LiquidCrystal.h>
  2. LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
  3. String readString;
  4. void setup() {
  5. Serial.begin(9600);
  6. lcd.begin(16, 2);
  7. }
  8. void loop() {
  9. while(Serial.available()){
  10. delay(50);
  11. char c=Serial.read();
  12. readString+=c;
  13. }
  14. if(readString.length()>0){
  15. Serial.println(readString);
  16. if (readString =="button_1"){
  17. lcd.clear();
  18. lcd.print("Mert Arduino");
  19. }
  20. if (readString =="button_2"){
  21. lcd.clear();
  22. lcd.print("Hello World");
  23. }
  24. if (readString =="button_3"){
  25. lcd.clear();
  26. lcd.print("Please Subscribe");
  27. }
  28. if (readString =="button_4"){
  29. lcd.clear();
  30. lcd.print("Youtube Channel");
  31. }
  32. readString="";
  33. }
  34. }
Explanation
  • It will be used to display the LCD connection by the above code that is uploaded to the Arduino Board.
  • It will simply connect and switch ON the LCD display.
  • The potentiometer is used to display and adjust.
  • Then we can upload the Bluetooth coding what we have done in the MIT App Inverter.
  • In the MIT App Inverter we can set the 4 buttons and Save the program.
OUTPUT
Figure 4 - Output1
Figure 5 - Output 2