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
Kendali Relay 8 Chanel Arduino Bluetooth icône

1.0 by Agung Hari Wahyudi


Aug 5, 2019

À propos de Kendali Relay 8 Chanel Arduino Bluetooth

Français

Application à contrôler des relais à 8 canaux avec Arduino et 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);

}

}

}

Quoi de neuf dans la dernière version 1.0

Last updated on Aug 5, 2019

Kendali Relay 8 Chanel

Chargement de la traduction...

Informations Application supplémentaires

Dernière version

Demande Kendali Relay 8 Chanel Arduino Bluetooth mise à jour 1.0

Telechargé par

بودي احمد

Nécessite Android

Android 4.0+

Voir plus

Kendali Relay 8 Chanel Arduino Bluetooth Captures d'écran

Charegement du commentaire...
Langues
Langues
Abonnez-vous à APKPure
Soyez le premier à avoir accès à la sortie précoce, aux nouvelles et aux guides des meilleurs jeux et applications Android.
Non merci
S'inscrire
Abonné avec succès!
Vous êtes maintenant souscrit à APKPure.
Abonnez-vous à APKPure
Soyez le premier à avoir accès à la sortie précoce, aux nouvelles et aux guides des meilleurs jeux et applications Android.
Non merci
S'inscrire
Succès!
Vous êtes maintenant souscrit à notre newsletter.