Khaled Md SaifullahShahadat Hossain AfridiTaisir Jibian Rahi
Published

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 hours20,508
Bluetooth Controlled Home Light

Things used in this project

Hardware components

Arduino UNO
Arduino 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

18 projects • 44 followers
🦸Tech Enthusiast 👨🏾‍💻Programmer 📳IoT Specialist
Shahadat Hossain Afridi

Shahadat Hossain Afridi

2 projects • 6 followers
Taisir Jibian Rahi

Taisir Jibian Rahi

7 projects • 7 followers
Never regret in life.

Comments