Bluetooth Control for Arduino

4.1 (643)

Tools | 1.9MB

Die Beschreibung von

Arduino Bluetooth Relay 4CH App ist Android-Anwendungen, mit der das 4-Kanal-Relay-Modul über Bluetooth mit Bluetooth-Serial-Kommunikationsmodul-Unterstützung HC-05, HC-06 oder HC-07 verwendet wird, mit Arduino oder AVR
I bin Testen Sie mit der Arduino-Uno- und seriellen Kommunikationsbibliothek, um RX PIN 10 und TX PIN 11 zu verbinden.
Sie können Arduino Uno oder Arduino Leonardo etc verwenden ...
Fitur App:
-
-control 4 Kanal auf / aus Ralay
-control All Channel on
-control All Channel Off
-Download Dateiprogramm arduino_bluetooth_ralay_4ch.ino
-Download Datei Tutorial PDF mit Schemmatic
Download-Datei:
-arduino-Projekt-Reißverschluss: https://goo.gl/vq1n9d
-tutorial- & schematische Verdrahtung PDF: https://goo.gl/b2uvy1
oder Sie können das Programm hier kaufen Arduino IDE
/ *
Relay in1 mit PINOUT 2 Arduino
Relais in2 Ange Verbindung mit PINOUT 3 Arduino
Relais in3 Anschluss an Pinout 4 Arduino
Relais in4 mit Piniumung 5 Arduino
---> Sie können mit Relay MODUL 4 CHANNE verbunden L
Serielle Daten Senden von Arduino Bluetooth Relay 4CH.APK
Daten '1' - '4' auf ON ist Ralay CH 1-4
Daten 'A' - 'D' to Off ist Ralay CH 1-4
Daten '9' auf ALL CH 1-4
Daten 'I' zu von ALL CH 1-4
* /
#include
Softwareserial MySerial (10, 11); // PIN10 RX, Pin 11 TX Anschluss an -> Bluetooth TX, RX
#define Relay1 2
#define Relay2 3
#define Relay3 4
#define Relay4 5
char val;
void setup () {
pinmode (Relay1, Ausgang);
pinmode (Relay2, Ausgang);
pinmode (Relay3, Ausgang);
pinmode ( Relay4, Ausgang);
Digitalwrite (Relay1, hoch);
Digitalwrite (Relay2, High);
Digitalwrite (Relay3, High);
Digitalwrite (Relay4, High);
mySerial. Beginnen (9600);
serial.begin (9600);
}
Void Loop () {
// cek Data Serial von Bluetooth Android App
IF (mySerial.Vailfable ()> 0) {
Val = mySerial.Read ();
serial.println (Val);
}
// Relais ist ein, wenn (Val == '1') {
digitalwrite (Relay1, Niedrig); }
sonst, wenn (Val == '2') {
digitalwrite (relay2, niedrig); }
sonst, wenn (val == '3') {
digitalwrite (Relay3, niedrig); }
sonst, wenn (Val == '4') {
digitalwrite (Relay4, niedrig); }
// Relais All On
, wenn (Val == '9') {
digitalwrite (Relay1, Niedrig);
Digitalwrite (Relay2, Niedrig);
Digitalwrite (Relay3, Niedrig);
digitalwrite (Relay4, Niedrig);
}
// Relais ist aus
, wenn (Val == 'A') {
digitalwrite (Relay1, hoch); }
sonst, wenn (val == 'b') {
digitalwrite (Relay2, hoch); }
sonst, wenn (val == 'c') {
digitalwrite (Relay3, hoch); }
sonst, wenn (val == 'd') {
digitalwrite (Relay4, hoch); }
// Relais ALLES OFF
Sonst if (Val == 'I') {
digitalwrite (Relay1, hoch);
digitalwrite (Relay2, hoch);
digitalwrite (Relay3, High);
Digitalwrite (Relay4, High);
}
}

Show More Less

Informationen

Aktualisiert:

Aktuelle Version: 1.1

Anforderungen: Android 3.2 or later

Rate

(643) Rate it
Share by

Empfehlungen für dich