akk47
Published © SHL

Home automation: Bluetooth lighting system

This is a cool project, I made a bluetooth powered lighting system in which you can switch on and off lights by just a tap.

AdvancedFull instructions provided1,557
Home automation: Bluetooth lighting system

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Solderless Breadboard Full Size
Solderless Breadboard Full Size
×1
Jumper wires (generic)
Jumper wires (generic)
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1
High Brightness LED, White
High Brightness LED, White
×2

Software apps and online services

Arduino IDE
Arduino IDE
fritzing
Bluetooth electronics

Hand tools and fabrication machines

butter paper

Story

Read more

Schematics

Scheamatics -

Code

Code for bluetooth lighting system

C/C++
const int ledPin=7;

void setup() {
  pinMode(ledPin,OUTPUT);
  Serial.begin(9600);

}

void loop() {
  if(Serial.available()>0){
    int data = Serial.read();
    Serial.println(data);
    
    switch(data){
      case '1': digitalWrite(ledPin,HIGH);
       break;
      case '0': digitalWrite(ledPin,LOW);
       break;
    }
  }

}

Credits

akk47
7 projects • 9 followers
Contact

Comments

Please log in or sign up to comment.