SUB-PROJECT

pHenix

OPEN SOURCE pH METER — v0.1

Metrological-grade pH meter, fully open source. 100% Analog Devices architecture, sub-0.001 pH resolution, buildable for ~350 EUR. No more 3000 EUR black boxes.

< 0.001 pH
RESOLUTION
0-bit
ADC
0 fA
BIAS CURRENT
~0 EUR
TOTAL COST
OPEN-SOURCE
CERN-OHL-P v2

Schematic, Gerbers, BOM, firmware and docs published. Fork, modify, fabricate.

PRECISION
ADC 32-BIT + fA BUFFER

Full ADI architecture: ADA4530-1 + AD7177-2 + LTC6655. Resolution < 0.001 pH.

REPRODUCIBLE
6 ICs + 1 PROBE

Standard 4-layer PCB, assemblable in lab or via JLCPCB / PCBWay. Minimal BOM.

001 — FUNDAMENTALS

WHAT IS pH?

The chemistry behind hydrogen ion concentration and why measuring it precisely matters.

pH stands for "potential of hydrogen". It is a logarithmic scale that quantifies the acidity or basicity of an aqueous solution. Defined by Søren Sørensen in 1909, it measures the activity of hydrogen ions (H+) in solution.

pH = -log10( [H+] )

WHERE [H+] IS THE HYDROGEN ION CONCENTRATION IN MOL/L

Because the scale is logarithmic, each unit represents a 10-fold change in H+ concentration. A solution at pH 4 has 10x more H+ ions than pH 5, and 100x more than pH 6. This enormous dynamic range is why precision instrumentation is critical.

In pure water at 25°C, [H+] = [OH-] = 10⁻⁷ mol/L, giving pH = 7.0 (neutral). Adding an acid increases [H+] (lower pH), while adding a base decreases it (higher pH).

A 0.1 pH error at pH 5 corresponds to a 26% error in H+ concentration. At pH 2, it's a 26% error in a solution that's 100,000x more acidic than water. Precision matters at every point on the scale.

INTERACTIVE pH SCALE

DRAG THE SLIDER OR CLICK A SOLUTION TO SEE THE ELECTRODE RESPONSE

02468101214
pH VALUE
7.000
ELECTRODE mV
0.0
H+ CONC.
1.0e-7 M
ADC RAW (32-BIT)
2,147,483,648
TYPE
NEUTRAL
H+ vs OH-
EQUILIBRIUM
002 — THE SENSOR

THE pH GLASS ELECTRODE

A glass membrane that generates voltage proportional to hydrogen ion activity.

A pH glass electrode is a potentiometric sensor. Unlike resistometric sensors (like load cells), it generates its own voltage — no excitation needed. The voltage depends on the difference in H+ activity between the two sides of a special glass membrane.

The glass membrane (typically lithium-silicate glass, ~0.1 mm thick) has a unique property: when immersed in a solution, a hydrated gel layer forms on the surface. H+ ions from the solution exchange with alkali ions (Li+, Na+) in the gel, creating a charge separation — and therefore a measurable potential.

Inside the electrode, a reference solution of known pH (usually pH 7.0 buffer with KCl) bathes the inner side of the glass. The voltage across the membrane depends on the pH difference between the inner reference and the outer (unknown) solution.

KEY CHARACTERISTICS

  • Source impedance: 100-1000 MΩ — requires ultra-high impedance buffer
  • Theoretical slope: 59.16 mV/pH at 25°C (Nernst equation)
  • Response time: 1-30 seconds depending on glass type
  • Lifetime: 1-3 years (hydrated gel layer degrades over time)
  • Calibration: minimum 2-point (pH 4 and pH 7 buffers)

HOW A pH ELECTRODE WORKS

EMPTYAg/AgClGLASS
ELECTRODE VOLTAGE
+0.0 mV

Click the button to immerse the electrode in a pH 4.0 buffer solution and watch the voltage develop across the glass membrane.

003 — NERNST EQUATION

TEMPERATURE & THE NERNST EQUATION

Why temperature compensation is essential for accurate pH measurement.

The voltage generated by a pH electrode follows the Nernst equation. The slope of the response (mV per pH unit) depends directly on the absolute temperature. At 25°C, the ideal slope is 59.16 mV/pH. At 0°C it drops to 54.20 mV/pH, and at 80°C it rises to 70.07 mV/pH.

Without temperature compensation, a reading at 50°C would show a systematic error proportional to the temperature deviation. This is not about the solution's pH changing with temperature (it does, but that's a chemical reality), but about the electrode's sensitivity changing.

pHenix solves this with a NTC 30kΩ thermistor integrated into the InLab Expert Pro probe. The MAX32672 MCU reads the temperature via a second ADC channel and applies the Nernst correction in firmware, ensuring accurate readings from 0°C to 80°C.

TEMPERATURE IMPACT EXAMPLES

0°CIf you calibrate at 25°C and measure at 0°C without compensation, a pH 4.0 buffer reads as ~4.3
25°CReference temperature — no correction needed
80°CAt 80°C without compensation, pH 4.0 reads as ~3.5 — a massive error

NERNST EQUATION

E = E0 - (2.303 RT / F) x pH

R = GAS CONSTANT | T = TEMPERATURE (K) | F = FARADAY CONSTANT

TEMPERATURE25°C (298.15 K)
0°C25°C80°C
SLOPE
59.17
mV / pH
IDEAL @ 25°C
59.16
mV / pH

The slope changes with temperature: 0.0% deviation from the ideal 25°C value. This is why pHenix includes a NTC 30kΩ temperature sensor for automatic compensation.

004 — ARCHITECTURE

SIGNAL CHAIN

From glass electrode to digital value — every component chosen for a reason.

PROBEInLab Expert Pro
pH electrode generates EMF
BUFFERADA4530-1
fA-level input bias current
ADCAD7177-2
32-bit sigma-delta conversion
VREFLTC6655-2.5
0.25 ppm noise reference
MCUMAX32672
Cortex-M4F processing + UART
ADA4530-1
ELECTROMETER BUFFER

The pH electrode has an output impedance of 100-1000 MΩ. Drawing even picoamps of current would shift the voltage. The ADA4530-1 has an input bias of < 20 fA — 5000x less than a typical op-amp.

I_bias < 20 fA
AD7177-2
32-BIT SIGMA-DELTA ADC

With a 59 mV/pH slope and sub-0.001 pH target, we need to resolve ~59 µV. A 32-bit sigma-delta ADC with >24 noise-free bits gives us 0.15 µV resolution — 400x better than required.

> 24 noise-free bits
LTC6655-2.5
VOLTAGE REFERENCE

The ADC converts voltage relative to its reference. A noisy reference = noisy measurement. The LTC6655 has 0.25 ppm noise and < 2 ppm/°C drift — the ruler must be more precise than what it measures.

0.25 ppm noise
MAX32672
MICROCONTROLLER

ARM Cortex-M4F with FPU for Nernst equation and temperature compensation calculations. SPI at 50 MHz for ADC communication. UART output for datalogging. 1 MB flash for calibration data.

Cortex-M4F, 50 MHz SPI
LT3042
LDO ANALOG SUPPLY

Ultra-low noise (0.8 µVRMS) linear regulator for the analog signal chain. Power supply noise directly corrupts the measurement — this LDO is quieter than the signal we're measuring.

ADP7118
LDO DIGITAL SUPPLY

Separate supply for the MCU and digital logic. Isolating analog and digital power domains prevents switching noise from the processor from contaminating the measurement path.

005 — THE CRITICAL CHALLENGE

WHY FEMTOAMPS MATTER

The #1 design challenge in pH instrumentation: measuring voltage without drawing current.

A pH electrode is not like a battery — it has an internal resistance of 100 to 1000 MΩ. If the measurement circuit draws even 1 nA (one billionth of an amp) through a 500 MΩ electrode, it creates a voltage drop of:

V_error = I x R = 1 nA x 500 MΩ = 500 mV

= 8.5 pH UNITS OF ERROR!

That's why the ADA4530-1 is critical. With an input bias current of 20 fA (0.00002 nA), the error drops to:

V_error = 20 fA x 500 MΩ = 0.01 mV

= 0.0002 pH — NEGLIGIBLE

But achieving fA-level performance isn't just about the chip — the PCB itself leaks current across its surface (humidity, flux residue, contamination). This is where the guard ring technique becomes essential.

GUARD RING TECHNIQUE

SIGNALGUARD = V_SIGNALI_bias = 0.02 fANEGLIGIBLE LEAKAGE

The ADA4530-1 has an integrated guard ring. By driving the guard at the same potential as the signal, there is zero voltage difference across the PCB surface — so no leakage current can flow. Input bias stays at 20 fA.

006 — USE CASES

APPLICATIONS

CRAFT BREWING

Mash pH control during brewing

The wort pH during mashing must be between 5.2 and 5.6 for optimal enzymatic conversion. A 0.1 pH deviation alters the beer flavor profile. pHenix enables real-time monitoring with datalogging.

CRITICAL RANGE
5.2 — 5.6 pH
AQUACULTURE

L. vannamei shrimp farming

Litopenaeus vannamei shrimp require pH between 7.5 and 8.5. Below 7.0, mortality rate increases dramatically. UART output for automated 24/7 monitoring.

VITAL RANGE
7.5 — 8.5 pH
ELECTROCHEMISTRY

Cyclic voltammetry research

Experiments in phosphate buffer (PBS) requiring stable pH at 7.40 +/- 0.02. Auto temperature compensation and sub-mV resolution eliminate systematic uncertainties.

REQUIRED PRECISION
+/- 0.02 pH
HYDROPONICS / AQUAPONICS

NFT lettuce cultivation

In NFT (Nutrient Film Technique) systems, pH must stay between 5.5 and 6.5 for N, P, K, Fe absorption. pHenix coupled with a dosing pump (GPIO MAX32672) automates correction.

OPTIMAL RANGE
5.5 — 6.5 pH
PHARMA / COSMETICS

Emulsion quality control

Creams and injectable formulations must respect precise pH (5.5 skin, 7.4 IV). ISO 10523 norm: uncertainty < 0.05 pH. The ADA4530-1 + AD7177-2 chain exceeds this requirement.

ISO 10523
+/- 0.05 pH
ENVIRONMENT

River and groundwater monitoring

The EU Water Framework Directive (WFD) mandates pH monitoring of water bodies. pHenix on battery with datalogging enables autonomous field campaigns. CSV export for regulatory reports.

COMPLIANCE
DCE 2000/60
007 — BILL OF MATERIALS

COST TO BUILD

#REFERENCEFUNCTIONPRICE
1ADA4530-1Electrometer buffer~33 EUR
2AD7177-232-bit sigma-delta ADC~25 EUR
3LTC6655-2.5Voltage reference~12 EUR
4LT3042LDO analog~6 EUR
5ADP7118LDO digital~3 EUR
6MAX32672MCU ARM Cortex-M4F~5 EUR
7Passifs + PCBResistors, caps, PCB fab~18 EUR
TOTAL ELECTRONICS~102 EUR
pH PROBE
InLab Expert Pro
~250 EUR

Ag/AgCl, BNC, XEROLYT, NTC 30kΩ

TOTAL COST
~350 EUR

ALL INCLUSIVE, PROBE INCLUDED

VS COMMERCIAL INSTRUMENTS

2,000 — 5,000 EUR

METTLER TOLEDO, METROHM, HANNA

008 — SPECIFICATIONS

PERFORMANCE

RESOLUTION
< 0.001
pH
CALIBRATED ACCURACY
+/- 0.005
pH
ADC RESOLUTION
32
BITS
BIAS CURRENT
20
fA
VREF NOISE
0.25
ppm
MCU SPI
50
MHz

pHenix

OPEN SOURCE. PRECISION. ACCESSIBILITY.

VIEW ON GITHUB
OPEN THRUST LAB — pHENIXBACK TO LAB