1 Star 1 Fork 0

DFRobot/DFRobot_OzoneSensor

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

DFRobot_OzoneSensor

这是一款体积小巧的arduino兼容的臭氧传感器模组,可方便、准确地测量环境中臭氧气体的浓度。可广泛应用于便携式仪器仪表、空气质量监测设备、消毒柜、智能家居等设备场所。

效果图

产品链接(https://www.dfrobot.com.cn/goods-2672.html)

SKU:SEN0321

目录

概述

  • DFRobot推出的臭氧传感器采用电化学原理,出厂前已经过校准,可以准确测量环境中的臭氧浓度。
  • 并具有抗干扰、高稳定性、高灵敏度等特点。
  • 分辨率可达10ppb
  • 支持3.3~5.5V宽电压输入
  • 使用 I2C 输出
  • 兼容Arduino、ESP32、Raspberry Pi等主流设备
  • 空气中使用寿命长达两年

库安装

这里提供两种使用本库的方法:
1.打开Arduino IDE,在状态栏中的Tools--->Manager Libraries 搜索"DFRobot_OzoneSensor"并安装本库.
2.首先下载库文件,将其粘贴到\Arduino\libraries目录中,然后打开examples文件夹并在该文件夹中运行演示.

方法

 /**
   * @fn begin
   * @brief 初始化函数 
   * @param i2c 地址
   * @n     OZONE_ADDRESS_0  0x70
   * @n     OZONE_ADDRESS_1  0x71
   * @n     OZONE_ADDRESS_2  0x72
   * @n     OZONE_ADDRESS_3  0x73
   * @return bool 类型
   * @retval true 初始化成功
   * @retval false 初始化失败
   */
  bool begin(uint8_t addr = OZONE_ADDRESS_0);

  /**
   * @fn setModes
   * @brief 设置主动模式或被动模式
   * @param mode 
   * @n       MEASURE_MODE_AUTOMATIC   主动测量
   * @n       MEASURE_MODE_PASSIVE     问答测量
   * @return None
   */
  void setModes(uint8_t mode);

  /**
   * @fn readOzoneData
   * @brief 读取臭氧浓度
   * @param collectNum is 平滑数据参数,默认采集个数20
   * @n       COLLECT_NUMBER       采集个数
   * @return 臭氧浓度 ,单位(PPB).
   */
  int16_t readOzoneData(uint8_t collectNum = 20);

兼容性

主板 通过 未通过 未测试 备注
Arduino uno
Mega2560
Leonardo
ESP32
micro:bit

历史

  • 2019/10/10 - V1.0.0 版本
  • 2023/08/02 - V1.0.0 版本

创作者

Written by ZhixinLiu(zhixin.liu@dfrobot.com), 2020. (Welcome to our website)

MIT License Copyright (c) 2020 DFRobot 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.

简介

这是一款体积小巧的arduino兼容的臭氧传感器模组,可方便、准确地测量环境中臭氧气体的浓度。可广泛应用于便携式仪器仪表、空气质量监测设备、消毒柜、智能家居等设备场所。 展开 收起
C++ 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/dfrobot/DFRobot_OzoneSensor.git
git@gitee.com:dfrobot/DFRobot_OzoneSensor.git
dfrobot
DFRobot_OzoneSensor
DFRobot_OzoneSensor
master

搜索帮助

Cb406eda 1850385 E526c682 1850385