Bluetooth Smart Switch icon

Bluetooth Smart Switch

2.0 for Android
3.1 | 10,000+ Installazioni

algologix

⚠️ You need 9Apps App to install .XAPK File. How to install XAPK?

Descrizione di Bluetooth Smart Switch

Codice sorgente e modalità PIN
Arduino Uno alla modalità Pin del modulo Bluetooth: RX Pin 10 e TX Pin 11.
Codice:
#include
SoftWareserial MySerial (10, 11) ; // Pin 10 = TX, PIN 11 = RX Bluetooth TX, RX
#Define rely1 2 // relè in1 collegato a Pinareut 2 Arduino
#Define rely2 3 // relè in2 collegato a Pinout 3 Arduino
#Define rely3 4 // relè in3 collegati a Pinareut 4 Arduino
#Define rely4 5 // relè in4 collegati a Pinareut 5 Arduino
Char Val;
Void Setup ()
{
Pinmode (relè1, output);
Pinmode (Relay2, uscita);
Pinmode (relè3, output);
Pinmode (relè4, output);
DigitalWrite (relè1, alto );
DigitalWrite (relè2, alta);
DigitalWrite (relè3, alta);
digitalwrite (relè4, alta);
myserial.begin (9600);
Seriale. Begin (9600);
}
Void Loop () {// dati CEK Serial da Bluetooth Android app
if (MySerial.Available ()> 0)
{
Val = myserial.lead ();
Serial.Println (VAL);
}
// relè è su
/ *
---> È possibile collegarsi a Relay Modul 4 Channel
Serial Data Invio da Arduino Bluetooth Relè 4ch.apk
Dati '1' - '4' a ON è ralay ch 1-4
dati 'A' - 'D' to off è ralay ch 1-4
Dati '9' a On All Ch 1-4
Dati 'I' to Off tutto ch 1-4
* /
IF (VAL == '1')
{
digitationwrite (relè1, basso);
}
Altro se (VAL == '2')
{
DigitalWrite (relè2, basso);
}
altro se (VAL == '3')
{
digitationwrite (relè3, basso);
}
altro se (VAL == '4')
{
DigitalWrite (relè4, basso);
}
// Relè tutto su
Altro se (VAL == '9')
{
digitationwrite (relè1, basso);
DigitalWrite (relè2, basso);
DigitalWrite (relè3, basso);
DigitalWrite (Relè4, Low);
}
}
}
} // relè è spento
altro se (VAL == 'A')
{
DigitalWrite (relè1, alta);
}
altro se (VAL == 'B')
{
DigitalWrite (relè2, alta);
}
altro se (val == 'c')
{
DigitalWrite (relè3, alto);
}
altro se (VAL == 'D')
{
DigitalWrite (relè4, alta);
}
// Relè Tutto Off
Else OFF (VAL == 'I')
{
digitationwrite (relè1, alto);
digitationwrite (relè2, alto);
digitalwrite (relè3, alta);
DigitalWrite (relè4, alta);
}
}

Cosa c'è di nuovo con Bluetooth Smart Switch 2.0

English

Informazione

  • Categoria:
    Strumenti
  • Versione corrente:
    2.0
  • Aggiornata:
    2018-12-15
  • Dimensioni:
    1.6MB
  • È necessario Android:
    Android 4.1 or later
  • Sviluppatore:
    algologix
  • ID:
    com.algologixbd.lightcontrol
  • Available on: