pH Sensor =================== .. figure:: /_static/products/ledong-module/static/images/ph_sensor.png :width: 55% :align: center 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.** .. code-block:: python 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) .. figure:: /_static/products/ledong-module/static/examples/ph2_sensor.png :width: 100% :align: center