1 Star 0 Fork 0

DFRobot / DFRobot_PH

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

DFRobot_PH

这是 Gravity 的示例代码:模拟 pH 传感器/仪表套件 V2,SKU:SEN0161-V2

产品效果图

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

SKU: SEN0161-V2

目录

概述

模拟pH计V2专门用于测量溶液的pH,衡量溶液的酸碱程度,常用于鱼菜共生、水产养殖、环境水检测等领域。

库安装

这里有2种安装方法:

  1. 使用此库前,请首先下载库文件,将其粘贴到\Arduino\libraries目录中,然后打开examples文件夹并在该文件夹中运行演示。
  2. 直接在Arduino软件库管理中搜索下载 DFRobot_AHT20 库
    在运行此库的demo之前,你需要下载关联库: https://github.com/DFRobot/DFRobot_EC

方法

  /**
   * @fn calibration
   * @brief 使用校准参数校准PH计
   *
   * @param voltage     : 电压值
   * @param temperature : 环境温度值
   * @param cmd         : enterph -> 进入PH计校准模式
   * @n                   calph   -> 用标准缓冲液校准,自动识别两种缓冲液(4.0和7.0)
   * @n                   exitph  -> 保存校准参数并退出 PH 校准模式
   */
  void    calibration(float voltage, float temperature,char* cmd); 
  void    calibration(float voltage, float temperature);
  /**
   * @fn readPH
   * @brief 通过温度补偿将电压转换为 PH值
   *
   * @param voltage     : 电压值
   * @param temperature : 环境温度值
   * @return PH值
   */
  float   readPH(float voltage, float temperature); 
  /**
   * @fn begin
   * @brief 初始化模拟 pH 传感器
   */
  void begin();

兼容性

MCU Work Well Work Wrong Untested Remarks
Arduino Uno
Leonardo
Meag2560
esp32 series x

历史

  • 2018/11/06 - 1.0.0 版本

创作者

Written by Jiawei Zhang(jiawei.zhang@dfrobot.com), 2018. (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 pH Sensor / Meter Kit V2, SKU: SEN0161-V2 展开 收起
Python 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/dfrobot/DFRobot_PH.git
git@gitee.com:dfrobot/DFRobot_PH.git
dfrobot
DFRobot_PH
DFRobot_PH
master

搜索帮助