1 Star 0 Fork 0

DFRobot/DFRobot_EC10

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
examples/EC10Test
resources/images
DFRobot_EC10.cpp
DFRobot_EC10.h
LICENSE
README.md
README_CN.md
keywords.txt
library.properties
克隆/下载
README.md 2.98 KB
一键复制 编辑 原始数据 按行查看 历史
fengli 提交于 3年前 . from cdjq after translate

DFRobot_EC10

DFRobot Gravity: analog electrical conductivity sensor/meter(K=10) is particularly used to measure the high electrical conductivity liquid, such as seawater, concentrated brine, etc. The measurement range is up to 100ms/cm. This product is suitable for the water quality application of mariculture, for example, marine fisheries, marine aquariums.

Product Image

Product Link (https://www.dfrobot.com/product-1797.html)

DFR0300-H: Gravity: Analog Electrical Conductivity Sensor / Meter(K=10)

Table of Contents

Summary

Provide an Arduino Library for users to read eletrical conductivity from DFR0300-H.

Installation

To use this library, first download the library file, paste it into the \Arduino\libraries directory, then open the examples folder and run the demo in the folder.

Methods

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

  /*!
   * @fn begin
   * @brief Init sensor 
   */
  void begin();
  
  /*!
   * @fn calibration
   * @brief Calibrate sensor. If the probe is used for the first time or hasn't been used for a long time, please calibrate it to improve accuracy. 
   * @param voltage  The voltage obtained when measuring standard buffer solution(12.88ms/cm)
   * @param temperature The calibration solution temperature 
   * @param cmd  Calibration command 
   */
  void calibration(float voltage, float temperature,char* cmd);
  
  /*!
   * @fn calibration
   * @brief Calibrate sensor. If the probe is used for the first time or hasn't been used for a long time, please calibrate it to improve accuracy. 
   * @param voltage The voltage obtained when measuring standard buffer solution(12.88ms/cm)
   * @param temperature The calibration solution temperature 
   */
  void calibration(float voltage, float temperature);   

  /*!
   * @fn readEC
   * @brief Get solution electrical conducitivity 
   * @param voltage  Measured analog voltage
   * @param temperature  Temeprature of the solution to be measured
   */
  float readEC(float voltage, float temperature); 

Compatibility

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

History

  • 2022/05/05 - Version 1.0.0 released.

Credits

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

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

搜索帮助