# DFRobot_FRN20 **Repository Path**: dfrobot/DFRobot_FRN20 ## Basic Information - **Project Name**: DFRobot_FRN20 - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-02-11 - **Last Updated**: 2026-02-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # DFRobot_FRN20 - [English Version](./README.md) ## 概述 FRn20系列流量传感器采用MEMS热式原理对管路气体介质进行流量监测。本产品基于FR20系列升级,产品零点稳定性和全量程信号稳定性显著提高,适用于工业过程检测。 ![alt text](resources/images/FNR20.png) ## 产品链接 (https://www.dfrobot.com.cn/) ```text SKU: SEN0630 ``` ## 目录 - [概要](#概要) - [安装](#安装) - [方法](#方法) - [兼容性](#兼容性) - [历史](#历史) - [创作者](#创作者) ## 概要 本 Arduino/C++ 库为 FRN20 传感器提供驱动支持,包含读取原始/转换后流量数据以及加载设备参数(量程、偏移、转换系数)等功能。 ## 安装 1. 将本库复制到 Arduino 的 `libraries` 目录。 2. 在工程中包含头文件: ```cpp #include ``` ## 方法(Arduino C++ API) ```cpp /** * @fn DFRobot_FRN20 * @brief 构造函数,传入 I2C 总线对象(缺省 &Wire) */ DFRobot_FRN20(TwoWire *pWire = &Wire); /** * @fn begin * @brief 初始化 I2C 并检测设备 * @return byte 返回 `Wire.endTransmission()` 的结果(0 表示成功) */ byte begin(void); /** * @fn readMassFlowData * @brief 使用加载的参数将原始值转换为质量流量 * @return uint8_t 1 = 成功,0 = 失败 */ uint8_t readMassFlowData(void); ``` ## 兼容性 | Platform | Work Well | Work Wrong | Untested | Remarks | |----------|:---------:|:----------:|:--------:|---------| | Arduino UNO | √|| | | | Arduino MEGA2560 | √| || | | Arduino Leonardo | √| | | | | FireBeeetle-M0 | √| | | | | Firebeetle 2 ESP32-E | √| | | | | ESP8266 | √ | | | | | Micro:bit | √ | | | | ## 历史 - 2026/01/26 - 1.0.0 版本 ## 创作者 Written by PLELES (feng.yang@dfrobot.com),2026.(Welcome to our [website](https://www.dfrobot.com/))