Use APKPure App
Get Kendali Relay 8 Chanel Arduino Bluetooth old version APK for Android
Application to control 8 channel relays with Arduino and Bluetooth HC05
Wiring Diagram
Arduino dengan Bluetooth HC05
Arduino----------Bluetooth HC05
Tx----------------Rx
Rx----------------Tx
5V----------------5V
GND---------------GND
Arduino dengan Relay 8 Chanel
Arduino---------------Relay
2-----------------Relay 1
3-----------------Relay 2
4-----------------Relay 3
5-----------------Relay 4
6-----------------Relay 5
7-----------------Relay 6
8-----------------Relay 7
9-----------------Relay 8
Sketch Arduino
int DataBluetooth;
void setup() {
Serial.begin(9600);
pinMode(2,OUTPUT); //Relay 1
pinMode(3,OUTPUT); //Relay 2
pinMode(4,OUTPUT); //Relay 3
pinMode(5,OUTPUT); //Relay 4
pinMode(6,OUTPUT); //Relay 5
pinMode(7,OUTPUT); //Relay 6
pinMode(8,OUTPUT); //Relay 7
pinMode(9,OUTPUT); //Relay 8
digitalWrite(2,HIGH);
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
digitalWrite(5,HIGH);
digitalWrite(6,HIGH);
digitalWrite(7,HIGH);
digitalWrite(8,HIGH);
digitalWrite(9,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);
}
// Menyalakan Relay 2
if(DataBluetooth=='C'){
digitalWrite(3,LOW);
}
//Mematikan Relay 2
if(DataBluetooth=='D'){
digitalWrite(3,HIGH);
}
// Menyalakan Relay 3
if(DataBluetooth=='E'){
digitalWrite(4,LOW);
}
//Mematikan Relay 3
if(DataBluetooth=='F'){
digitalWrite(4,HIGH);
}
// Menyalakan Relay 4
if(DataBluetooth=='G'){
digitalWrite(5,LOW);
}
//Mematikan Relay 4
if(DataBluetooth=='H'){
digitalWrite(5,HIGH);
}
// Menyalakan Relay 5
if(DataBluetooth=='I'){
digitalWrite(6,LOW);
}
//Mematikan Relay 5
if(DataBluetooth=='J'){
digitalWrite(6,HIGH);
}
// Menyalakan Relay 6
if(DataBluetooth=='K'){
digitalWrite(7,LOW);
}
//Mematikan Relay 6
if(DataBluetooth=='L'){
digitalWrite(7,HIGH);
}
// Menyalakan Relay 7
if(DataBluetooth=='M'){
digitalWrite(8,LOW);
}
//Mematikan Relay 7
if(DataBluetooth=='N'){
digitalWrite(8,HIGH);
}
// Menyalakan Relay 8
if(DataBluetooth=='O'){
digitalWrite(9,LOW);
}
//Mematikan Relay 8
if(DataBluetooth=='P'){
digitalWrite(9,HIGH);
}
}
}
Last updated on Aug 5, 2019
Kendali Relay 8 Chanel
Uploaded by
بودي احمد
Requires Android
Android 4.0+
Category
Report
Kendali Relay 8 Chanel Arduino Bluetooth
1.0 by Agung Hari Wahyudi
Aug 5, 2019