Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
brillianttechnoz
Published © GPL3+

Controlling led using HC-05 bluetooth module

Controlling and led using bluetooth

BeginnerFull instructions provided1,978
Controlling led using HC-05 bluetooth module

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Resistor 220 ohm
Resistor 220 ohm
×1
LED (generic)
LED (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1

Software apps and online services

arduino bluetooth controller

Story

Read more

Schematics

shematic for led bluetooth control

if you don't want resistor then you can directly connect it

Code

shematic for led bluetooth control

C/C++
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);
    }
}

Credits

brillianttechnoz

brillianttechnoz

3 projects • 3 followers

Comments