描述
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);
}
}
螢幕擷取畫面





價錢
- 今天: 免費
- 最小值: 免費
- 最大值: 免費
追蹤票價
開發人員
- algologix
- 平台: Android 應用程式 (1)
- 清單: 0 + 0
- 點數: 0 + 68 ¡
- 排名: 0
- 評測: 0
- 折扣: 0
- 影片: 0
- RSS: 訂閱
點數
0 ☹️
排名
0 ☹️
清單
0 ☹️
評測
成為第一個評論 🌟
其他資訊
- 版本: 2.0
- 類別 :
Android 應用程式›工具 - OS:
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 ... ⥯
-
- Smart Switch : Phone Clone
- Android 應用程式: 工具 由: BallitoApps
- * 免費
- 清單: 0 + 0 排名: 0 評測: 0
- 點數: 0 + 0 版本: 6.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,414 (3.4) 版本: 108.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 + 106 (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 + 895 (3.3) 版本: 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,292 (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,212 (4.1) 版本: 4.1.1 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 應用程式: 工具 由: Kazmi Tech Solutions
- * 免費
- 清單: 0 + 0 排名: 0 評測: 0
- 點數: 0 + 0 版本: 1.2 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 : Data Transfer
- Android 應用程式: 工具 由: WE Studio Apps
- * * 免費
- 清單: 0 + 0 排名: 0 評測: 0
- 點數: 0 + 0 版本: New 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: 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 phone transfer
- Android 應用程式: 工具 由: Auxillary Cloning studio
- * * 免費
- 清單: 0 + 0 排名: 0 評測: 0
- 點數: 0 + 454 (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: Phone transfer
- Android 應用程式: 工具 由: Windrock Apps
- * 免費
- 清單: 0 + 0 排名: 0 評測: 0
- 點數: 0 + 239 (4.0) 版本: 2.40 Smart Switch: data transfer is a fantastic phone application designed for seamless and efficient copy my data smart share between phones. It's a quick share app for phone transfer, ... ⥯
-
- Smart Switch Mobile Transfer
- Android 應用程式: 工具 由: Cherry Ball
- * * 免費
- 清單: 0 + 0 排名: 0 評測: 0
- 點數: 0 + 379 (3.8) 版本: 1.93 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 ... ⥯