Arduino 4 Relay Bluetooth 1.0



Publisher Description



CODE:

/*
Relay IN1 connected to PinOut 2 Arduino
Relay IN2 connected to PinOut 3 Arduino
Relay IN3 connected to PinOut 4 Arduino
Relay IN4 connected to PinOut 5 Arduino
--->you can connected to relay modul 4 channel

Serial data sending from Arduino 4 Relay.apk
data '1'-'4' to on is Ralay CH 1-4
data 'A'-'D' to off is Ralay CH 1-4
data '9' to on ALL CH 1-4
data 'I' to off ALL CH 1-4
*/

#include

#define relay1 2
#define relay2 3
#define relay3 4
#define relay4 5

char val;
void setup() {
pinMode(relay1,OUTPUT);
pinMode(relay2,OUTPUT);
pinMode(relay3,OUTPUT);
pinMode(relay4,OUTPUT);
digitalWrite(relay1,LOW);//H
digitalWrite(relay2,LOW);//H
digitalWrite(relay3,LOW);//H
digitalWrite(relay4,LOW);//H
mySerial.begin(9600);
Serial.begin(9600);
}

void loop() {
//chek data serial from bluetooth android App

val = mySerial.read();
Serial.println(val);
}
//Relay is on
if( val == '1' ) {
digitalWrite(relay1,HIGH); }//L
else if( val == '2' ) {
digitalWrite(relay2,HIGH); }//L
else if( val == '3' ) {
digitalWrite(relay3,HIGH); }//L
else if( val == '4' ) {
digitalWrite(relay4,HIGH); }//L
//relay all on
else if( val == '9' ) {
digitalWrite(relay1,HIGH);//L
digitalWrite(relay2,HIGH);//L
digitalWrite(relay3,HIGH);//L
digitalWrite(relay4,HIGH);//L
}
//relay is off
else if( val == 'A' ) {
digitalWrite(relay1,LOW); }//H
else if( val == 'B' ) {
digitalWrite(relay2,LOW); }//H
else if( val == 'C' ) {
digitalWrite(relay3,LOW); }//H
else if( val == 'D' ) {
digitalWrite(relay4,LOW); }//H
//relay all off
else if( val == 'I' ) {
digitalWrite(relay1,LOW);//H
digitalWrite(relay2,LOW);//H
digitalWrite(relay3,LOW);//H
digitalWrite(relay4,LOW);//H
}

}



About Arduino 4 Relay Bluetooth

Arduino 4 Relay Bluetooth is a free app for Android published in the Teaching & Training Tools list of apps, part of Education.

The company that develops Arduino 4 Relay Bluetooth is Jan Erik Andresen / Andronesen-flyfoto.com. The latest version released by its developer is 1.0. This app was rated by 3 users of our site and has an average rating of 5.0.

To install Arduino 4 Relay Bluetooth on your Android device, just click the green Continue To App button above to start the installation process. The app is listed on our website since 2016-10-31 and was downloaded 174 times. We have already checked if the download link is safe, however for your own protection we recommend that you scan the downloaded app with your antivirus. Your antivirus may detect the Arduino 4 Relay Bluetooth as malware as malware if the download link to appinventor.ai_andjan1964.Arduino_4_Relays is broken.

How to install Arduino 4 Relay Bluetooth on your Android device:

  • Click on the Continue To App button on our website. This will redirect you to Google Play.
  • Once the Arduino 4 Relay Bluetooth is shown in the Google Play listing of your Android device, you can start its download and installation. Tap on the Install button located below the search bar and to the right of the app icon.
  • A pop-up window with the permissions required by Arduino 4 Relay Bluetooth will be shown. Click on Accept to continue the process.
  • Arduino 4 Relay Bluetooth will be downloaded onto your device, displaying a progress. Once the download completes, the installation will start and you'll get a notification after the installation is finished.



RELATED PROGRAMS
Our Recommendations






BarCode2D-PNG


Click stars to rate this APP!

Users Rating:  
  5.0/5     3
Downloads: 174
Updated At: 2024-03-28
Publisher: Jan Erik Andresen / Andronesen-flyfoto.com
Operating System: Android
License Type: Free