Our website uses necessary cookies to enable basic functions and optional cookies to help us to enhance your user experience. Learn more about our cookie policy by clicking "Learn More".
Accept All Only Necessary Cookies
Icona Kendali Relay 8 Chanel Arduino Bluetooth

1.0 by Agung Hari Wahyudi


Aug 5, 2019

Informazioni su Kendali Relay 8 Chanel Arduino Bluetooth

Le domande per il controllo del relè 8 canali con Arduino e 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);

}

}

}

Novità nell'ultima versione 1.0

Last updated on Aug 5, 2019

Kendali Relay 8 Chanel

Traduzione in caricamento...

Informazioni APP aggiuntive

Ultima versione

Richiedi aggiornamento Kendali Relay 8 Chanel Arduino Bluetooth 1.0

Caricata da

بودي احمد

È necessario Android

Android 4.0+

Mostra Altro

Kendali Relay 8 Chanel Arduino Bluetooth Screenshot

Commento Loading...
Lingua
Iscriviti ad APKPure
Sii il primo ad accedere alla versione anticipata, alle notizie e alle guide dei migliori giochi e app Android.
No grazie
Iscrizione
Abbonato con successo!
Ora sei iscritto ad APKPure.
Iscriviti ad APKPure
Sii il primo ad accedere alla versione anticipata, alle notizie e alle guide dei migliori giochi e app Android.
No grazie
Iscrizione
Successo!
Ora sei iscritto alla nostra newsletter.