pH Sensor

../../../../_images/ph_sensor.png

Overview

I2C communication sensor for measuring the pH value (acidity/alkalinity) of a solution.

Technical Specifications

Operating voltage: VCC 3.3V -5V

Module dimensions: 24*48mm

Mounting: 2 plastic building block compatible through-holes

Measurement range: 0-14

Pin Definition

Pin

Definition

GND

Ground

VCC

Positive

SCL

I2C clock

SDA

I2C data

Usage Guide

  1. When programming, make sure the DIP switch address matches the address in the program!

  2. During measurement, connect the pH electrode to the module and place the probe into the solution being tested.

Example Code

Displays the pH sensor’s reading on the mPython Board OLED screen.

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)
../../../../_images/ph2_sensor.png