1 Star 0 Fork 0

DFRobot/DFRobot_EC

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

DFRobot_EC.py Library for Raspberry pi


This is the sample code for Gravity: Analog Electrical Conductivity Sensor / Meter Kit V2 (K=1.0), SKU: DFR0300.

Table of Contents

Installation

The Analog Electrical Conductivity Sensor should work with ADS1115 (https://github.com/DFRobot/DFRobot_ADS1115/tree/master/RaspberryPi/Python)

Run the program:


$> python DFRobot_ADS1115.py

$> python DFRobot_EC.py

Methods


/*
 * @brief Init The Analog Electrical Conductivity Sensor
 */
def begin(self);

/*
 * @brief Convert voltage to EC with temperature compensation
 */
def readEC(self,voltage,temperature);

/*
 * @brief Calibrate the calibration data
 */
def calibration(self,voltage,temperature);

/*
 * @brief Reset the calibration data to default value
 */
def reset(self);

Credits

Written by Jiawei Zhang, 2018. (Welcome to our website)

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

搜索帮助