Project tutorial
Bluetooth control led with lcd led status display real time.

Bluetooth control led with lcd led status display real time.

Tthis project is going to show you how to make Bluetooth led control with lcd beside the Arduino sowing the new led status.

  • 22,057 views
  • 4 comments
  • 42 respects

Components and supplies

Apps and online services

About this project

Step#1: Connection.

Connect the TX and RX from the Bluetooth moduel to the Arduino and the VCC and GND.

Then connect the long pin of the led to pin 13 and the short one to GND.

Step#2: LCD Connection

connect the lcd to the Arduino as showed in the pic.

Step#3: connect the smartphone or the laptop with Bluetooth .

for laptop all you need is to connect the Bluetooth then open the serial on the Arduino IDE.

But for the smatphone you need to download an app from play store called ArduDroid or SENA BTerm

link:

https://play.google.com/store/apps/details?id=com.techbitar.android.Andruino

https://play.google.com/store/apps/details?id=com.sena.bterm

Step#4: The Arduino code.

when you send 0 the led turn OFF and when you send 1 the led turn ON

Code

bluetooth_led.inoC/C++
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int ledPin = 13; 
int state = 0;
int flag = 0; 
 
void setup() {
  pinMode(ledPin, OUTPUT);
 digitalWrite(ledPin, LOW);
  lcd.begin(16, 2);
 Serial.begin(9600); // Default connection rate for my BT module
lcd.setCursor(0, 1);
  lcd.print("By: Youssef Emad");
}

  
void loop() {

 if(Serial.available()){
 state = Serial.read();
 flag=0;
 }

 if (state == '0') {
 digitalWrite(ledPin, LOW);
 if(flag == 0){
 lcd.print("LED: off");
 delay(1000);
 lcd.clear();
 Serial.println("LED: off");
 flag = 1;
 }}
 else if (state == '1') {
 digitalWrite(ledPin, HIGH);
 if(flag == 0){
 lcd.print("LED: on");
  delay(1000);
 lcd.clear();
 Serial.println("LED: on");
 flag = 1;
 }}
}

 

Schematics

bluetooth-setup2.png
Bluetooth setup2
untitled.png
Untitled

Comments

Similar projects you might like

Lcd Display in Real Time.

Project tutorial by Youssef Sabaa

  • 20,145 views
  • 5 comments
  • 44 respects

Arduino Bluetooth Basic Tutorial

by Mayoogh Girish

  • 479,896 views
  • 49 comments
  • 284 respects

Using 16x2 LCD with Arduino

by Techmirtz

  • 19,422 views
  • 3 comments
  • 34 respects

Windows Remote Arduino

Project tutorial by Team Windows IoT

  • 166,223 views
  • 167 comments
  • 339 respects

OSEPP LCD and keypad shield

Project tutorial by Joe

  • 41,276 views
  • 27 comments
  • 55 respects

LCD (Liquid Crystal Display)

by MicroBob

  • 30,788 views
  • 41 comments
  • 101 respects
Add projectSign up / Login