説明
Arduino UNO to Bluetooth module PIN Mode : RX pin 10 and TX pin 11.
Code:
#include
SoftwareSerial mySerial(10, 11); //Pin 10=TX, Pin 11=RX Bluetooth TX,RX
#define relay1 2 //Relay IN1 connected to PinOut 2 Arduino
#define relay2 3 //Relay IN2 connected to PinOut 3 Arduino
#define relay3 4 //Relay IN3 connected to PinOut 4 Arduino
#define relay4 5 //Relay IN4 connected to PinOut 5 Arduino
char val;
void setup()
{
pinMode(relay1,OUTPUT);
pinMode(relay2,OUTPUT);
pinMode(relay3,OUTPUT);
pinMode(relay4,OUTPUT);
digitalWrite(relay1,HIGH);
digitalWrite(relay2,HIGH);
digitalWrite(relay3,HIGH);
digitalWrite(relay4,HIGH);
mySerial.begin(9600);
Serial.begin(9600);
}
void loop() {//cek data serial from bluetooth android App
if( mySerial.available() >0 )
{
val = mySerial.read();
Serial.println(val);
}
//Relay is on
/*
--->you can connected to relay modul 4 channel
Serial data sending from Arduino Bluetooth Relay 4CH.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
*/
if( val == '1' )
{
digitalWrite(relay1,LOW);
}
else if( val == '2' )
{
digitalWrite(relay2,LOW);
}
else if( val == '3' )
{
digitalWrite(relay3,LOW);
}
else if( val == '4' )
{
digitalWrite(relay4,LOW);
}
//relay all on
else if( val == '9' )
{
digitalWrite(relay1,LOW);
digitalWrite(relay2,LOW);
digitalWrite(relay3,LOW);
digitalWrite(relay4,LOW);
}
//relay is off
else if( val == 'A' )
{
digitalWrite(relay1,HIGH);
}
else if( val == 'B' )
{
digitalWrite(relay2,HIGH);
}
else if( val == 'C' )
{
digitalWrite(relay3,HIGH);
}
else if( val == 'D' )
{
digitalWrite(relay4,HIGH);
}
//relay all off
else if( val == 'I' )
{
digitalWrite(relay1,HIGH);
digitalWrite(relay2,HIGH);
digitalWrite(relay3,HIGH);
digitalWrite(relay4,HIGH);
}
}
Ad
スクリーンショット





価格
- 今日: フリー
- 最小値: フリー
- 最大: フリー
料金のチェック
デベロッパー
- algologix
- プラットフォーム: Android アプリ (2)
- リスト: 0 + 0
- ポイント: 0 + 68 ¡
- ランキング: 0
- レビュー: 0
- 割引: 0
- 動画: 0
- RSS: 購読する
Ad
ポイント
0 ☹️
ランキング
0 ☹️
リスト
0 ☹️
- Bluetooth Smart Switch
レビュー
最初のクチコミを書こう 🌟
情報
- バージョン: 2.0
- カテゴリ:
Android アプリ›ツール - オペレーティング システム:
Android 4.1 - サイズ:
16 Mb - コンテンツのレーティング:
Everyone - Google Play 評価:
3.8(68) - アップデート:
- リリース日:
連絡先
- ウェブサイト:
http://algologixbd.com
- 🌟 シェア
- Google Play
あなたも好きかも
-
- RMG Bluetooth Smart Switch for
- Android アプリ: ツール 作者: RMG AUTOMATION
- フリー
- リスト: 0 + 0 ランキング: 0 レビュー: 0
- ポイント: 1 + 0 バージョン: 1.2 With the advent of app-based, wireless network through smart phone and tablet, the popularity of home automation had increased greatly in recent years. RMG automation introduces a ... ⥯
-
- Bluetooth mains switch
- Android アプリ: ツール 作者: Intelismart
- フリー
- リスト: 0 + 0 ランキング: 0 レビュー: 0
- ポイント: 0 + 0 バージョン: 3.0 Bluetooth Mains 2 Channel Switch uses long range class 1 Bluetooth technology to talk to your Smart Phone. *NO NEED TO CARRY EXTRA KEYS OR FOBS* Another advantage of our Switch is that ⥯
-
- Smart Switch : Phone Clone
- Android アプリ: ツール 作者: BallitoApps
- * フリー
- リスト: 0 + 0 ランキング: 0 レビュー: 0
- ポイント: 0 + 0 バージョン: 9.0 Smart Switch: Phone Clone app allows to transfer data between two android phones. It can be used to transfer all your files, apps, and settings from one android device to another Smart ⥯
-
- Smart switch - copy my data
- Android アプリ: ツール 作者: Simple things for life
- * * フリー
- リスト: 0 + 0 ランキング: 0 レビュー: 0
- ポイント: 1 + 4,878 (3.9) バージョン: 111.0 Check the Smart Switch app for quick transfer of personal data and settings between two gadgets! Our program is one of the best tools for transferring files between devices. File ... ⥯
-
- Smart Switch - Share Files
- Android アプリ: ツール 作者: StarsDev market
- * フリー
- リスト: 0 + 0 ランキング: 0 レビュー: 0
- ポイント: 0 + 108 (3.8) バージョン: 16.0 Smart Switch: Transfer Data: Copy all data and phone clone. Samsung Smart Switch makes it more easer to transfer photos , files and important data from your old mobile devices to your ... ⥯
-
- Bluetooth Smart Auto Connect
- Android アプリ: ツール 作者: Tech that app
- * * フリー
- リスト: 0 + 0 ランキング: 0 レビュー: 0
- ポイント: 0 + 1,102 (3.4) バージョン: 19.0 Looking for a Reliable Bluetooth Auto Connector? Bluetooth Smart Auto Connect is the ultimate solution for seamless Bluetooth pairing and reconnections. Designed to make your life ... ⥯
-
- Smart Switch - Files Transfer
- Android アプリ: ツール 作者: EchooByte
- * * フリー
- リスト: 0 + 0 ランキング: 0 レビュー: 0
- ポイント: 0 + 6,343 (4.1) バージョン: 6.14 Smart Switch is a Smart transfer app for all android devices to copy my data from one phone to another phone. Smart switch is a data transfer app to transfer and copy my data any kind ... ⥯
-
- Smart Switch Mobile: Transfer
- Android アプリ: ツール 作者: OZI Apps Global
- * * フリー
- リスト: 0 + 0 ランキング: 0 レビュー: 0
- ポイント: 0 + 4,284 (4.0) バージョン: 4.1.3 Smart switch mobile/Phone backup app helps transfer mobile data and switch from phone to another over WiFi network. Copy data from one phone to another with smart switch restore. Copy ... ⥯
-
- Smart Switch: Phone Clone App
- Android アプリ: ツール 作者: SMMAH Tech
- * * フリー
- リスト: 0 + 0 ランキング: 0 レビュー: 0
- ポイント: 0 + 0 バージョン: 1.11 Smart Switch: Phone Clone & Data Transfer is the fastest, safest, and easiest way to move to Android. Transfer everything apps, photos, videos, contacts, messages, and files securely ... ⥯
-
- Smart Switch: Copy My Data
- Android アプリ: ツール 作者: Send Files
- * フリー
- リスト: 0 + 0 ランキング: 0 レビュー: 0
- ポイント: 0 + 0 バージョン: 6.0 Smart switch Data phone clone is about transfer data from one android mobile to another android phone. Smart Switch transfer data makes data transfer very simple and comfortable for ... ⥯
-
- Smart switch : Data Transfer
- Android アプリ: ツール 作者: WE Studio Apps
- * * フリー
- リスト: 0 + 0 ランキング: 0 レビュー: 0
- ポイント: 0 + 0 バージョン: 1.13 Smart switch data transfer app allows you to transfer data easily from one phone to another.With the help of smart switch phone transfer app users can copy and send the data ... ⥯
-
- smart switch phone transfer
- Android アプリ: ツール 作者: Auxillary Cloning studio
- * * フリー
- リスト: 0 + 0 ランキング: 0 レビュー: 0
- ポイント: 0 + 456 (3.9) バージョン: 1.54 - Switch Mobile My Phone - Swift Data Transfer - Smart Switch Mobile app - switch mobile data transfer - transfer my data Clone phone, send data, smart mobile transfer with smart ... ⥯
-
- Smart Switch Mobile Transfer
- Android アプリ: ツール 作者: Cherry Ball
- * * フリー
- リスト: 0 + 0 ランキング: 0 レビュー: 0
- ポイント: 0 + 419 (3.8) バージョン: 1.94 Smart Switch Mobile Transfer Move Your Data in Minutes Switching to a new phone? Smart Switch My Phone makes it quick, secure, and effortless to transfer all your data i.e. contacts, ... ⥯
-
- Smart Switch: Data Transfer
- Android アプリ: ツール 作者: Key Stone
- * * フリー
- リスト: 0 + 0 ランキング: 0 レビュー: 0
- ポイント: 0 + 0 バージョン: 1.1.3 Smart Transfer: File Sharing Copy My Data application that helps you conveniently content transfer like your pictures, videos , and contacts from the phone-to-phone file transfer The ... ⥯