PH Meter Using Arduino Uno And LCD Display - Circuit Digest
The pH scale is used to measure the acidity and basicity of a liquid. It can have readings ranging from 0-14, where 0 shows the most acidic liquid and 14 shows the most basic liquid. 7 pH is for neutral substances that are neither acidic nor basic. Now, pH plays a very important role in our lives, and it is used in various applications. For example, it can be used in a swimming pool to check the quality of water. Similarly, pH measurement is used in a wide variety of applications like agriculture, wastewater treatment, industries, environmental monitoring, etc.
| pH Range | Substance Type | Common Examples |
| 0-6.9 | Acidic | Lemon juice (2.0), Coffee (5.0), Rainwater (6.2) |
| 7.0 | Neutral | Pure distilled water |
| 7.1-14 | Basic/Alkaline | Baking soda (9.0), Ammonia (11.0), Bleach (12.0) |
If you have just started to work with Arduino, do check out our Arduino Projects and Tutorials. We have a collection of almost 500+ Arduino projects with code, circuit diagrams, and detailed explanations, completely free for everyone to build and learn on their own.
In this project, we are going to make an Arduino pH Meter and learn how to measure the pH of a liquid solution using a gravity pH sensor and Arduino. Using a pH meter Arduino system, students can easily learn about acidity and alkalinity. A 16x2 LCD is used to show the pH value on the screen. We will also learn how to calibrate the pH sensor to determine the accuracy of the sensor. Once you're done with this, you might also want to take a look at this project: Smart Water Quality Monitoring System Using IoT.
Let’s get started!
pH Meter using Arduino Uno - Quick Overview
Build Time: 2-4 hours | Cost: $30-50 | Difficulty: Beginner-Intermediate
What You'll Learn: Analog sensor interfacing, I2C LCD display, pH sensor calibration, Arduino programming
Applications: Water quality monitoring, Aquarium management, Agricultural testing, Wastewater treatment
Table of Contents
- Components Required
- What is pH Value and Why Measure It?
- Gravity Analog pH Sensor Working
- Circuit Diagram and Connections
- Coding Guide
- Calibration
- GitHub Repository
- Testing
Components Required for the Arduino pH Meter
| Component | Quantity | Purpose in Project |
| Arduino Uno | 1 | Main microcontroller for pH measurement processing |
| 16×2 Alphanumeric LCD | 1 | Display pH values on screen |
| I2C Module for LCD | 1 | Simplifies LCD connection to Arduino |
| Gravity Analog pH Sensor | 1 | Measures pH value of liquid solutions |
| Connecting Wires | As needed | Connect components together |
| Breadboard | 1 | Prototype platform for circuit connections |
What is pH Value and Why Measure It?
The unit that we use to measure the acidity of a substance is called pH. The term “pH” is defined as the negative log of the hydrogen ion concentration. The range of pH can have values from 0 to 14. A pH value of 7 is neutral, as pure water has a pH value of exactly 7. Values lower than 7 are acidic, and values greater than 7 are basic or alkaline.

How Does a Gravity Analog pH Sensor Work?
An analog pH sensor is designed to measure the pH value of a solution and show the acidity or alkalinity of the substance. It is commonly used in various applications such as agriculture, wastewater treatment, industries, and environmental monitoring etc. The module has an on-board voltage regulator chip which supports the wide voltage supply of 3.3-5.5V DC, which is compatible with 5V and 3.3V of any control board like Arduino. The output signal is being filtered by hardware with low jitter.
Technical Features:
Signal Conversion Module:
- Supply Voltage: 3.3~5.5V
- BNC Probe Connector
- High Accuracy: ±0.1@25°C
- Detection Range: 0~14
PH electrode:
- Operating Temperature Range: 5~60°C
- Zero (Neutral) Point: 7±0.5
- Easy calibration
- Internal Resistance: <250MΩ

pH Signal Conversion Board:

Pin Description:
V+: 5V DC input
G: Ground pin
Po: pH analog output
Do: 3.3V DC output
To: Temperature output
pH Electrode Construction:

The construction of a pH sensor is shown above. The pH Sensor looks like a rod, usually made of a glass material, having a tip called “Glass membrane”. This membrane is filled with a buffer solution of known pH (typically pH = 7). This electrode design ensures an environment with the constant binding of H+ ions on the inside of the glass membrane. When the probe is dipped into the solution to be tested, hydrogen ions in the test solution start exchanging with other positively charged ions on the glass membrane, which creates an electrochemical potential across the membrane, which is fed to the electronic amplifier module, which measures the potential between both electrodes and converts it to pH units. The difference between these potentials determines the pH value based on the Nernst equation.
Nernst Equation:
The Nernst equation gives a relation between the cell potential of an electrochemical cell, temperature, reaction quotient, and the standard cell potential. In non-standard conditions, the Nernst equation is used to calculate cell potentials in an electrochemical cell. The Nernst equation can also be used to calculate the total electromotive force (EMF) for a full electrochemical cell. This equation is used to calculate the PH value of a solution as well. The glass electrode response is governed by the Nernst Equation can be given as:
E = E0 - 2.3 (RT/nF) ln Q Where Q= Reaction coefficient E = mV output from the electrode E0 = Zero offset for the electrode R = Ideal gas constant= 8.314 J/mol-K T = Temperature in ºK F = Faraday constant = 95,484.56 C/mol N = Ionic ChargeArduino pH Meter Circuit Diagram and Connections
The circuit diagram for this Arduino pH meter project is given below:

Connection of the pH Signal Conversion Board with Arduino:
The connection between Arduino and the pH signal conversion board is shown in the table below.
Arduino | PH Sensor Board |
5V | V+ |
GND | G |
A0 | Po |

Từ khóa » Ph4502c 3.3v
-
Use 5V PH Sensor With 3.3V NodeMCU - Arduino Stack Exchange
-
[PDF] How To Use A PH Probe And Sensor
-
Calibration Problem PH-4502C With ESP32 - Arduino Forum
-
Arduino PH-meter Using PH-4502C | Web, Mobile & IoT - CimpleO
-
Ph4502c Liquid Ph Value Detection Detect Sensor Module ...
-
PH4502C PH Meter –
-
Raspberry Pi 4 Won't Boot While PH4502c Is Connected To ADS1115
-
How Can I Map 0-5 Adc Range To ESP32 0-3.3v Range #3 - GitHub
-
PH Sensor Issue - EnviroDIY
-
Cheap PH Meter For Raspberry Pi With ADS1115 And PH4502C
-
ADS1115 Unstable Measurements - Mycodo - Radical DIY Forum
-
Analog PH Sensor -> Arduino Uno -> ESP8266 (Wemos D1 Mini)
-
I Want To Map Analog Pins On 5volt Between 0 To 1023 (10 Bit ...