chandan kumar
Published

Bluetooth Controlled Light Using Arduino with Single Relay

AC light can be controlled via HC-05 Bluetooth module using Arduino Uno and single-channel relay.

BeginnerShowcase (no instructions)2 hours4,985
Bluetooth Controlled Light Using Arduino with Single Relay

Things used in this project

Hardware components

Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1
Relay Module (Generic)
×1
Solderless Breadboard Half Size
Solderless Breadboard Half Size
×1
Male/Female Jumper Wires
Male/Female Jumper Wires
×1
9V battery (generic)
9V battery (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Custom parts and enclosures

xiaoying_video_1547794915684_TUrNhz8891.mp4

Bluetooth app

Schematics

fxod7oohtvicrin_small_0pkSk5oVzu.jpg

Code

F8QPPEZHTVICTWO.ino

Arduino
                       

#define RELAY1  7                        
void setup()

{    


Serial.begin(9600);
  pinMode(RELAY1, OUTPUT);       

}

  void loop()

{

   digitalWrite(RELAY1,0);           // Turns ON Relays 1
   Serial.println("Light ON");
   delay(2000);                                      // Wait 2 seconds

   digitalWrite(RELAY1,1);          // Turns Relay Off
   Serial.println("Light OFF");
   delay(2000);
   
}

Credits

chandan kumar

chandan kumar

2 projects • 7 followers
Embedded hobbyist

Comments