A Bluetooth-controlled light using Arduino offers a versatile solution for remotely managing lighting systems through a smartphone or other Bluetooth-enabled device. By integrating an Arduino board with a Bluetooth module and LEDs, users can control the lights' on/off status, brightness levels, and even colors via a mobile application. The Arduino interprets commands received via Bluetooth and executes corresponding actions, such as toggling digital outputs for switching lights or adjusting PWM signals to control brightness. This project is highly customizable, making it suitable for diverse applications like home automation, mood lighting, or decorative setups, providing users with convenient and flexible control over their lighting environment.
Circuit Diagram :-
Code :-
// By Arduino Techy
//
char Incoming_value = 0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(13,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
if (Serial.available() > 0)
{
Incoming_value = Serial.read();
Serial.print(Incoming_value);
Serial.print("/n");
if (Incoming_value == '1')
digitalWrite(13,HIGH);
else if(Incoming_value == '0')
digitalWrite(13,LOW);
}
}