×

无线电气候监测器

消耗积分:0 | 格式:zip | 大小:0.00 MB | 2023-06-30

吴藩

分享资料个

描述

您将能够在Node-RED中查看包含温度、湿度、环境光和大气压力的仪表板,并使用Blynk云和移动应用程序查看智能手机上的数据。

块概念

 

poYBAGOX-ZmANs1FAAAzE0rFpBM421.png
 

1.构建硬件

你需要一个气候监测套件,组装很容易,唯一可能出错的是迷你电池模块,你实际上可以把错误的一面朝上。

pYYBAGOX-Z2AKGtzAAC7NAFsQZY853.png
 

 

2.刷机固件

  • 下载HARDWARIO 游乐场,
  • 将固件闪存到核心模块
  • 固件名称:bcf-radio-climate-monitor
  • 文档中显示了如何刷写固件。
pYYBAGOX-geABCAyAADK8z3sXF8688.png
 

3. 配对核心模块

您需要将 Core 模块与您正在使用的 Radio dongle 配对,按照下面的说明查看它是如何完成的。

pYYBAGOX-hKAOcv0AABTXbHj3dc790.png
 
  • 单击开始配对加密狗上的 LED 应开始闪烁
  • 将要配对的设备连接到计算机或插入电池。
  • 等待设备出现在表格中
  • 它应该使用别名添加设备:climate-monitor:0
pYYBAGOX-hSAQkY_AACDIjCdtJw542.png
 

4. 进口流程

  • 切换到功能选项卡
  • 导入此项目的流程。只需复制所有内容,转到Menu -> Import -> Clipboard d 并将其粘贴到那里。
  • 导入后点击右上角的部署以上传更改。
[{"id":"4914605c.76972","type":"mqtt in","z":"28050251.59dc0e","name":"","topic":"node/climate-monitor:0/lux-meter/0:0/illuminance","qos":"2","broker":"58254712.b61068","x":230,"y":520,"wires":[["431157f1.546248"]]},{"id":"dcf5bf8d.a0242","type":"mqtt in","z":"28050251.59dc0e","name":"","topic":"node/climate-monitor:0/thermometer/0:0/temperature","qos":"2","broker":"58254712.b61068","x":240,"y":580,"wires":[["be96b6aa.eed098"]]},{"id":"2ac2eae7.308486","type":"mqtt in","z":"28050251.59dc0e","name":"","topic":"node/climate-monitor:0/hygrometer/0:4/relative-humidity","qos":"2","broker":"58254712.b61068","x":250,"y":640,"wires":[["dbe4b438.be4ef8"]]},{"id":"431157f1.546248","type":"blynk-ws-out-write","z":"28050251.59dc0e","name":"Pin V0 - Write","pin":0,"pinmode":0,"client":"1b003066.8ca2c","x":659,"y":520,"wires":[]},{"id":"be96b6aa.eed098","type":"blynk-ws-out-write","z":"28050251.59dc0e","name":"","pin":"1","pinmode":0,"client":"1b003066.8ca2c","x":659,"y":580,"wires":[]},{"id":"dbe4b438.be4ef8","type":"blynk-ws-out-write","z":"28050251.59dc0e","name":"","pin":"2","pinmode":0,"client":"1b003066.8ca2c","x":659,"y":640,"wires":[]},{"id":"58254712.b61068","type":"mqtt-broker","z":"","broker":"127.0.0.1","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""},{"id":"1b003066.8ca2c","type":"blynk-ws-client","z":"","name":"","path":"ws://blynk-cloud.com/websockets","key":"","dbg_all":false,"dbg_read":false,"dbg_write":false,"dbg_notify":false,"dbg_mail":false,"dbg_prop":false,"dbg_low":false,"dbg_pins":""}]
[{"id":"4914605c.76972","type":"mqtt in","z":"28050251.59dc0e","name":"","topic":"node/climate-monitor:0/lux-meter/0:0/illuminance","qos":"2","broker":"58254712.b61068","x":230,"y":520,"wires":[["431157f1.546248"]]},{"id":"dcf5bf8d.a0242","type":"mqtt in","z":"28050251.59dc0e","name":"","topic":"node/climate-monitor:0/thermometer/0:0/temperature","qos":"2","broker":"58254712.b61068","x":240,"y":580,"wires":[["be96b6aa.eed098"]]},{"id":"2ac2eae7.308486","type":"mqtt in","z":"28050251.59dc0e","name":"","topic":"node/climate-monitor:0/hygrometer/0:4/relative-humidity","qos":"2","broker":"58254712.b61068","x":250,"y":640,"wires":[["dbe4b438.be4ef8"]]},{"id":"431157f1.546248","type":"blynk-ws-out-write","z":"28050251.59dc0e","name":"Pin V0 - Write","pin":0,"pinmode":0,"client":"1b003066.8ca2c","x":659,"y":520,"wires":[]},{"id":"be96b6aa.eed098","type":"blynk-ws-out-write","z":"28050251.59dc0e","name":"","pin":"1","pinmode":0,"client":"1b003066.8ca2c","x":659,"y":580,"wires":[]},{"id":"dbe4b438.be4ef8","type":"blynk-ws-out-write","z":"28050251.59dc0e","name":"","pin":"2","pinmode":0,"client":"1b003066.8ca2c","x":659,"y":640,"wires":[]},{"id":"58254712.b61068","type":"mqtt-broker","z":"","broker":"127.0.0.1","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""},{"id":"1b003066.8ca2c","type":"blynk-ws-client","z":"","name":"","path":"ws://blynk-cloud.com/websockets","key":"","dbg_all":false,"dbg_read":false,"dbg_write":false,"dbg_notify":false,"dbg_mail":false,"dbg_prop":false,"dbg_low":false,"dbg_pins":""}]
poYBAGOX-heACZymAABLjVwhENI734.png
 

5. Blynk 集成

该项目应该与 Blynk 一起使用。HARDWARIO 教程中解释了如何设置blynk。

如果您完成了整个教程,您的手机中应该有一个下载的 Blynk 应用程序。

点击右上角的二维码图标,扫描以下二维码。

poYBAGOX-hmALwFwAAAZc7EZxTU663.png
 

您将需要一个 Auth Token 来设置 Blynk 和 Node-RED 连接,您可以通过应用程序将其通过电子邮件发送给您。

  • 单击刚刚导入的项目中的设置
poYBAGOX-iGAH2TkAABTmRIXMP4390.png
 
  • 点击电子邮件全部
poYBAGOX-iWACMweAABg7qwOp6E581.png
 
  • 现在点击项目中的 Play 启动它
poYBAGOX-iqAamsaAABHAej1rQw597.png
 
  • 您需要将电子邮件中的 Auth Token 放入您在上面教程中所做的 Blynk 服务器设置中。

6. 测试你的设备

如果你做的一切都正确,你应该看到这样的东西

pYYBAGOX-jCAVzOEAACYdMQjF8Y040.png
 

每次气候监测套件向 Node-RED 发送新数据时,这些值都会更新。

概括

完成此项目后,您可以进行一些基本的环境测量。您可以使用 HARDWARIO IoT 套件做更多事情。这只是一个让您了解环境的入门项目。

如果您想查看更多类似的入门项目,可以访问此类别中的项目。

随时问,我会尽力回答任何问题。

  • 访问hackster.io 上的 HARDWARIO 页面了解更多有趣的项目或直接访问他们的网站
  • 转到HARDWARIO 文档以了解有关其模块和平台其他可能性的更多信息。
  • 从 HARDWARIO Playground 尝试更多固件或编写自己的固件,很容易上手。
  • 因为一切都是开源的,你可以在GitHub 上获取所有固件,获得一些灵感并尝试制作自己的应用程序。
  • 获取您自己的HARDWARIO Hub来替换您在此项目中的计算机,以便您始终可以访问您的应用程序。
  • 在集成部分查看更多可与 HARDWARIO IoT Kit 一起使用的应用程序。

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

评论(0)
发评论

下载排行榜

全部0条评论

快来发表一下你的评论吧 !