PH传感器
概述
用于检测量溶液PH值酸碱度的I2C通讯类的传感器
技术参数
工作电压: VCC 3.3V -5V
模块尺寸:24*48mm
固定安装:2个兼容塑料积木通孔
测量范围:0-14
引脚 定义
引脚 |
定义 |
|---|---|
GND |
电源 |
VCC |
正极 |
SCL |
I2C时钟 |
SDA |
I2C数据 |
使用教程
1、在程序编程中需要注意拨动开关地址和程序中的地址一致!
2、测量时,将PH电极接入模块,将电极探头放入被测溶液中。
示例程序
用掌控板OLED屏显示PH值传感器的测量值。
from mpython import *
from bluebit import *
import time
ledong_delveBit_PH = DelveBit(0x71)
while True:
oled.fill(0)
oled.DispChar(str(str('当前测量PH值:') + str(ledong_delveBit_PH.common_measure())), 0, 0, 1)
oled.show()
time.sleep(0.1)