We use cookies and other technologies on this website to enhance your user experience.
By clicking any link on this page you are giving your consent to our Privacy Policy and Cookies Policy.

關於Arduino Home automation

通過Android手機控製家用電器

將此應用與微控制器(Arduino,Raspberry Pi,AVR,ARM等),HC-05藍牙模塊和中繼模塊配合使用,您可以使用智能手機遠程控製家用電器。

閱讀文檔:http://unciarobotics.com/project/home-automation-project-with-arduino-using-hc-05/

讀取通過藍牙傳輸的數據的基本Arduino代碼如下:

const int relay = 2; //連接繼電器的引腳

字符數據//變量以存儲數據

void setup(){

Serial.begin(9600); //開始串行通訊

pinMode(繼電器,輸出); //將繼電器引腳作為輸出

}

無效循環(){

if(Serial.available()> 0)//如果RX上有數據

{

數據= Serial.read(); //將其保存在變量中

如果(數據=='a')

{digitalWrite(relay,HIGH); //打開燈

Serial.println(“ Light ON”);

}

如果(數據=='b')

{digitalWrite(relay,LOW); //關燈

Serial.println(“ Light OFF”);

}

}

}

}

}

//複製將此代碼粘貼到Arduino IDE中,並在Serial Monitor上監視數據。

最新版本1.1.2更新日誌

Last updated on 2020年07月26日

Bug Fixes
Fixed: App crashed in lower platforms like marshmallow and Lolipop

翻譯中...

更多應用信息

最新版本

請求 Arduino Home automation 更新 1.1.2

上傳者

赵浩同

系統要求

Android 5.0+

更多

Arduino Home automation 螢幕截圖

語言
訂閱APKPure
第一時間獲取熱門安卓遊戲應用的首發體驗,最新資訊和玩法教程。
不,謝謝
訂閱
訂閱成功!
您已訂閱APKPure。
訂閱APKPure
第一時間獲取熱門安卓遊戲應用的首發體驗,最新資訊和玩法教程。
不,謝謝
訂閱
成功!
您已訂閱我們的郵件通知。