小狗监视器
标签:arduino
大长今大家 发布于 2018-02-05 15:10



小狗监视器
“噢!张三,你的小狗又出门了!”爱狗人士们,你们的妈妈或者爸爸是否对你们说过这句话。“小狗监视器”的出场,你随时随地都能知道你的小狗是否到处乱跑啦!
名称 |
单价 |
数量 |
总价 |
Arduino |
25 |
1 |
25 |
超声波 |
10 |
1 |
10 |
按键 |
5 |
1 |
5 |
蜂鸣器 |
1 |
1 |
1 |
Step 1:



测量你家的门有多宽,(小狗住的门)你家的狗(猫)有多高
Step 2: 写程序



写程序(由于超声波是一种以波的形式进行探测,有时会数据时大时小,因此,你需要用冒泡式程序选取中间值,程序如下)
登录以发表评论
说明不够详细啊,能加上楼主吗13723776917
双击66666666666666666666666666666