代码拉取完成,页面将自动刷新
这是 Gravity 的示例代码:模拟 pH 传感器/仪表套件 V2,SKU:SEN0161-V2
SKU: SEN0161-V2
模拟pH计V2专门用于测量溶液的pH,衡量溶液的酸碱程度,常用于鱼菜共生、水产养殖、环境水检测等领域。
这里有2种安装方法:
/**
* @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 |
Written by Jiawei Zhang(jiawei.zhang@dfrobot.com), 2018. (Welcome to our website)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。