Devices & Components
Arduino Uno Rev3
LED (generic)
Jumper wires (generic)
HC-05 Bluetooth Module
Software & Tools
arduino bluetooth controller
Arduino IDE
Project description
Code
code for led bluetooth control
c_cpp
1char Incoming_value = 0; 2void setup() { 3 // put your setup code here, to run once: 4Serial.begin(9600); 5pinMode(13,OUTPUT); 6} 7 8void loop() { 9 // put your main code here, to run repeatedly: 10 if (Serial.available() > 0) 11 { 12 Incoming_value = Serial.read(); 13 Serial.print(Incoming_value); 14 Serial.print("/n"); 15 if (Incoming_value == '1') 16 digitalWrite(13,HIGH); 17 else if(Incoming_value == '0') 18 digitalWrite(13,LOW); 19 } 20}
code for led bluetooth control
c_cpp
1char Incoming_value = 0; 2void setup() { 3 // put your setup code here, to run once: 4Serial.begin(9600); 5pinMode(13,OUTPUT); 6} 7 8void loop() { 9 // put your main code here, to run repeatedly: 10 if (Serial.available() > 0) 11 { 12 Incoming_value = Serial.read(); 13 Serial.print(Incoming_value); 14 Serial.print("/n"); 15 if (Incoming_value == '1') 16 digitalWrite(13,HIGH); 17 else if(Incoming_value == '0') 18 digitalWrite(13,LOW); 19 } 20}
Downloadable files
Schematics for led bluetooth control
if you don't want resistor then you can directly connect it
Schematics for led bluetooth control

Comments
Only logged in users can leave comments