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
第一时间获取热门安卓游戏应用的首发体验,最新资讯和玩法教程。
不,谢谢
订阅
成功!
您已订阅我们的邮件通知。