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.

IntermediateFull instructions provided3 hours4,960
Bluetooth Controlled Home Light

Things used in this project

Hardware components

Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
4-CHANNEL RELAY CONTROLLER FOR I2C
ControlEverything.com 4-CHANNEL RELAY CONTROLLER FOR I2C
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1
LED Light Bulb, Frosted GLS
LED Light Bulb, Frosted GLS
×1
Power Supply Accessory, Interchangeable AC Input Plug
Power Supply Accessory, Interchangeable AC Input Plug
×1
Breadboard (generic)
Breadboard (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Rocker Switch, Non Illuminated
Rocker Switch, Non Illuminated
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

bluetoothControlled_AC_Ligh

All the connections has shown with this image

microcontrollerBasedACLightControl

Code

bluetoothControlledAC_Light.ino

C/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);
}

Bluetooth Controlled AC Light

Credits

Khaled Md. Saifullah

Khaled Md. Saifullah

3 projects • 6 followers
Technology and robotics fascinate me a lot. I love to build up different types of projects that are related to our daily life.
Shahadat Hossain Afridi

Shahadat Hossain Afridi

1 project • 3 followers

Comments