1 Star 0 Fork 0

DFRobot/DFRobot_EC10

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

DFRobot_EC10

DFRobot Gravity: 模拟电导率计(K=10)专用于测量高电导率的液体,如海水、浓盐水
等,量程达100ms/cm,可用于海洋渔场、海洋水族馆等海产养殖领域的水质检测。

Product Image

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

 DFR0300: Gravity: 模拟电导率计V2 (K=10) 新款电导率计

目录

概述

提供一个Arduino库,通过从DFR0300-H读取液体的电导率。

库安装

要使用这个库,首先下载库文件,将其粘贴到\Arduino\libraries目录中,然后打开示例文件夹并在文件夹中运行演示程序。

方法

  /*!
   * @fn DFRobot_EC10
   * @brief Constructor 
   */
  DFRobot_EC10();
  
  /*!
   * @fn ~DFRobot_EC10
   * @brief destructor 
   */
  ~DFRobot_EC10();

  /*!
   * @fn begin
   * @brief 传感器初始化
   */
  void begin();
  
  /*!
   * @fn calibration
   * @brief 传感器校准,为保证精度,初次使用的电极,或者使用了一段时间的电极,需要进行校准
   * @param voltage 模拟电导率计测量12.88ms/cm标准液所获得的电压
   * @param temperature 校准液体的温度
   * @param cmd 校准命令
   */
  void calibration(float voltage, float temperature,char* cmd);
  
  /*!
   * @fn calibration
   * @brief 传感器校准,为保证精度,初次使用的电极,或者使用了一段时间的电极,需要进行校准
   * @param voltage 模拟电导率计测量12.88ms/cm标准液所获得的电压
   * @param temperature 校准液体的温度
   */
  void calibration(float voltage, float temperature);   

  /*!
   * @fn readEC
   * @brief 获取液体的电导率
   * @param voltage 测得的模拟电压
   * @param temperature 待测液体的温度
   */
  float readEC(float voltage, float temperature); 

兼容性

MCU Work Well Work Wrong Untested Remarks
Arduino uno
FireBeetle-ESP8266
FireBeetle-ESP32
mpython
microbit

历史

  • 2020/05/05 - Version 1.0.0 released.

创作者

Written by fengli(li.feng@dfrobot.com), 2022.05.05 (Welcome to our website)

Copyright 2010 DFRobot Co.Ltd 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 library for Gravity: Analog Electrical Conductivity Sensor / Meter Kit (K=10), SKU: DFR0300-H 展开 收起
C++
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

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

搜索帮助

Cb406eda 1850385 E526c682 1850385