Project showcase
Bluetooth Controlled Home Light

Bluetooth Controlled Home Light

This is a simple project based on Arduino. In this project, an AC light can be controlled with the help of our Android phone.

  • 1,495 views
  • 1 comment
  • 10 respects

Components and supplies

Apps and online services

About this project

Objective

The objective of this project is to build up a system to operate an AC light by using our Android phone.

Connections

A) Connections between Bluetooth Module and Arduino

  • +5V(Arduino) to +5V(Bluetooth)
  • GND(Arduino) to GND(Bluetooth)
  • RX(Arduino) to TX(Bluetooth)
  • TX(Arduino) to RX(Bluetooth)

B) Connections between Relay and Arduino

  • +5V(Arduino) to VCC(Relay)
  • GND(Arduino) to GND(Relay)
  • Digital Pin 8(Arduino) to IN1(Relay)
  • Digital Pin 9(Arduino) to IN2(Relay)

C) Connections between Relay, Switch board and Bulb

  • NO(Normally Open) pin(Relay) to Bulb-1
  • Common pin(Relay) to Switch Board(Switch-1)
  • NO(Normally Open) pin(Relay) to Bulb-2
  • Common pin(Relay) to Switch Board(Switch-2)
  • GND(Bulb-1) to GND(AC Supply - Negative Terminal)
  • GND(Bulb-2) to GND(AC Supply - Negative Terminal)
  • Switch Board(Switch-1) to AC Supply - Positive Terminal
  • Switch Board(Switch-2) to AC Supply - Positive Terminal

Bluetooth Application Setup

We have used an Android Application named "Bluetooth Electronics"

Google Play Store Link: https://play.google.com/store/apps/details?id=com.keuwl.arduinobluetooth

  • First download and install the application from "Play Store"
  • Edit a new panel
  • Add 2 switches and edit their Turn On Status according to the code
  • Now click on the "Connect" button and select "Bluetooth Classic" option then click "Next" button
  • After that pair with this application with "HC-05 Bluetooth Module" and click "Done" button. Finally Click "Run" button to start working with this app.

Warning

  • Do not touch any wires while connecting the system with AC Supply
  • Do not disconnect any connections during powering up the system.
  • Complete all the connections properly.

Code

bluetoothControlledAC_Light.inoC/C++
int input1=8;
int input2=9;

void setup() {
 pinMode(input1, OUTPUT);
 pinMode(input2,OUTPUT);
 Serial.begin(9600);
 }
 
void loop() {
  
 if(Serial.available()>0)
   {     
      char data= Serial.read(); 
      switch(data)
      {
        case 'a': digitalWrite(input1, HIGH);
        break;
        
        case 'b': digitalWrite(input1, LOW);
        break;
        
        case 'c': digitalWrite(input2, HIGH);
        break;
        
        case 'd': digitalWrite(input2, LOW);
        break;
        
        default : break;
      }
      Serial.println(data);
   }
   delay(50);
}

Schematics

bluetoothControlled_AC_Ligh
All the connections has shown with this image
Uploads2ftmp2fc20a4fbd 63f0 446e bcd0 bc9040c5a7d92fbluetoothcontrolled ac light gdshnt2nwj

Comments

Similar projects you might like

Bluetooth Controlled Light Switch

Project showcase by The Instrumentation Crustaceans

  • 26,486 views
  • 4 comments
  • 27 respects

Bluetooth Controlled Servo

Project tutorial by JANAK13

  • 13,651 views
  • 18 comments
  • 39 respects

Bluetooth Controlled Car

Project tutorial by JANAK13

  • 13,454 views
  • 19 comments
  • 44 respects

Bluetooth Controlled Bot (Using Adafruit L293D Motor Driver)

Project showcase by Chandran N

  • 1,295 views
  • 0 comments
  • 13 respects

SmartPhone Controlled RGB MOOD Light

Project tutorial by Prajjwal Nag

  • 4,998 views
  • 1 comment
  • 8 respects

Bluetooth Controlled Pick And Place Robot

Project tutorial by Ahmed Ebrahem Ahmed

  • 12,453 views
  • 16 comments
  • 50 respects
Add projectSign up / Login