一、设计要求
1、雨滴传感器感受到雨滴会关窗
2、Wifi模块连接热点实现与web的传输
3、web实现远程控制窗户
二、零件部分
1、雨滴传感器

2、舵机
舵机对应模拟窗户状态(因懒惰,此处直接在百度百科上拿的舵机图)

3、esp8266_01 WIFI模块

4、实行平台 arduino
5、流程图

三、主要是用web通过HTTP请求把数据上传到数据端,这里的设置是应用8266WiFi模块与电脑连接手机热点,在arduino里做一个webserver,实现硬件和软件的连接。
webserver设置


web的连接
通过发生http请求与webserver进行交互,该系统数据层部分主要是把web收集到的数据通过到ESP8266 WiFi模块收集到的信号,以此来对舵机实现驱动。

四、实物图

web界面

串口实时输出界面


网友评论