Application to control relay 1 channel with Arduino and Bluetooth HC05

Latest Version

Version
Update
May 26, 2019
Developer
Category
Installs
10+

App APKs

Kendali Relay 1 Chanel Arduino Bluetooth APP

Wiring Diagram
Arduino dengan Bluetooth HC05
Arduino----------Bluetooth HC05
Tx----------------Rx
Rx----------------Tx
5V----------------5V
GND---------------GND

Arduino dengan Relay 1 Chanel
Arduino---------------Relay
2-----------------Relay 1
5V----------------5V
GND---------------GND

Relay menggunakan aktif LOW


Sketch Arduino

int DataBluetooth;

void setup() {
Serial.begin(9600);
pinMode(2,OUTPUT); //Relay 1
digitalWrite(2,HIGH);
}

void loop() {
if (Serial.available()){
DataBluetooth=Serial.read();

// Menyalakan Relay 1
if(DataBluetooth=='A'){
digitalWrite(2,LOW);
}

//Mematikan Relay 1
if(DataBluetooth=='B'){
digitalWrite(2,HIGH);
}
}
}
Read more

Advertisement