1 Star 1 Fork 1

铁熊 / ext-DFRobotHCHOSensor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

HCHO 甲醛传感器 Mind+ 用户库

链接

简介

  • 产品链接:https://www.dfrobot.com.cn/goods-1373.html
  • **介绍:**本扩展库为 DFRobot HCHO甲醛传感器(SEN0231)设计,支持 Mind+ 导入库,要求 Mind+ 软件版本为 1.6.2 及以上

导入教程

在 Mind+ 中选择用户库,然后输入网址或者点击“导入文件”即可。

import

以导入文件方式为例,点击“导入文件”,在弹出的资源管理器中,定位到库文件路径,然后选择config.json文件,即可完成导入。

import2

导入成功后,就会出现相应的传感器库可供选择

import3

点击相应的用户库进行选择,就会出现在“已加载”分类中,与自带库的操作一致。

import4

回到 Mind+ 主界面,这时就可以在“用户库”分类中看到刚才选择的传感器的对应图形模块。

import5

Blocks

示例

本示例将演示如何使用这款甲醛传感器来测量空气中甲醛的浓度值。 接线方式分两种,分别是 UART 模式与 DAC 模式。

UART 模式

使用UART模式前,请先将拨码开关切换到 UART 一端。

接线图:

wire_UART

Mind+示例程序:

DAC 模式

使用 DAC 模式前,请先将拨码开关切换到 DAC 一端。

DAC模式中,测量精度会受主控器ADC的位数、参考电压精度的影响,因此请使用高精度的电源给主控器供电,或者直接使用主控器的内部参考电压。而且主控器的ADC至少是10位。

接线图:

wire_DAC

Mind+示例程序:

License

MIT

硬件支持

MCU JavaScript Arduino MicroPython Remarks
micro:bit
mPython(掌控版)
Arduino Uno
Arduino Leonardo
Arduino Mega2560

鸣谢

感谢 DFRobot 李亮 老师提供技术支持。 感谢 王尧坤 老师帮助测试。

更新日志

  • V0.1.0 20200130 第一版发布
  • V0.2.1 20200131 更新支持 Arduino Leonardo、Mega2560,并修复串口顺序的 bug
  • V0.2.2 20200202 DAC模式下支持同时连接多个甲醛传感器
MIT License Copyright (c) 2020 ironpanda (Chen Zhongxian) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

本扩展库为 DFRobot HCHO甲醛传感器(SEN0231)设计,支持 Mind+ 导入库 展开 收起
Arduino
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Arduino
1
https://gitee.com/ironpanda/ext-DFRobotHCHOSensor.git
git@gitee.com:ironpanda/ext-DFRobotHCHOSensor.git
ironpanda
ext-DFRobotHCHOSensor
ext-DFRobotHCHOSensor
master

搜索帮助

14c37bed 8189591 565d56ea 8189591