• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Analog IC Tips

Analog IC Design, Products, Tools Layout

  • Products
    • Amplifiers
    • Clocks & Timing
    • Data Converters
    • EMI/RFI
    • Interface & Isolation
    • MEMS & Sensors
  • Applications
    • Audio
    • Automotive/Transportation
    • Industrial
    • IoT
    • Medical
    • Telecommunications
    • Wireless
  • Learn
    • eBooks / Tech Tips
    • FAQs
    • EE Learning Center
    • EE Training Days
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Design Guide Library
    • Digital Issues
    • Engineering Diversity & Inclusion
    • LEAP Awards
    • Podcasts
    • White Papers
    • DesignFast
  • Video
    • EE Videos
    • Teardown Videos
  • EE Forums
    • EDABoard.com
    • Electro-Tech-Online.com
  • Engineering Training Days
  • Advertise
  • Subscribe

Design an analog front end for a pH probe

December 1, 2023 By WTWH Editor

pH probes, with their bipolar voltage outputs and high output impedance, need signal conditioning through an analog front end to make them compatible with measurement circuits such as A/D converters.

By Marian Hryntsiv, Renesas Electronics

People who work in healthcare, food and beverage, water treatment, chemical processing, agriculture, and environmental monitoring rely on pH meters to make decisions about hydrogen-ion activity (pH) in water-based solutions. The main component of any pH meter is a pH electrode, a pH probe. These probes need analog circuits to condition their high output impedance to A/D converters and make the signals unipolar.

A pH probe (Figure 1) generates a voltage based on the activity of hydrogen ions (H+). A voltage arises when two liquids with contrasting pH values meet on opposing sides of a thin glass membrane. The pH electrode operates as a passive sensor without the need for external excitation voltage or current. Categorized as a bipolar sensor due to its capacity to yield an output that fluctuates both above and below the reference point, a pH probe generates a voltage output that’s linear with respect to the pH level of the solution under examination. The pH probe’s source impedance typically ranges from roughly 10 MΩ to 1000 MΩ due to the substantial resistance of the thin glass bulb.

Figure 1. A pH probe produces an output voltage proportional to hydrogen ion activity in a water-based solution (Image: Marian Hryntsiv).

To design a conditioning circuit for the pH probe’s output signal, you need to understand its characteristics. Firstly, because the pH electrode generates a bipolar signal and many applications operate on a single power supply, the analog front end must perform signal level shifting. Secondly, given the high impedance of the electrode, the circuit needs a high-input impedance buffer. Lastly, to account for variations in the electrode’s sensitivity to temperature, you need to measure the solution’s temperature. Figure 2 shows a general schematic of the pH probe analog signal-conditioning circuit. Here’s how to use the AnalogPAK SLG47004 as an analog front-end for a pH probe.

Figure 2. The basic circuit diagram. OpAmp0 shifts the electrode’s output signal while OpAmp1 lowers the signal’s high impedance (Image: Marian Hryntsiv).

The circuit uses a 250 MΩ pH electrode. As a rule, operational amplifiers with a tiny bias current (about tens of femtoamperes or even less) are used as buffer amplifiers for such sensors. Unfortunately, such precise amplifiers have considerable voltage-offset error. A trimming function compensates for the offset error caused by bias current.

The transfer function of the pH electrode is:

Where:
pH(X) is pH of unknown solution(X)
pH(S) is pH of standard solution = 7
ES is the electric potential at the reference or standard electrode.
EX is the electric potential at the pH-measuring electrode.
F is the Faraday constant = 9.6485309×104 C mol-1
R is the universal gas constant = 8.314510 J K-1 mol-1
T is the water solution temperature in Kelvin.

Figure 3 shows the pH scale based on the transfer function for T = 25°С.

Figure 3. This pH scale is based on water temperature at 25°С (Image: Marian Hryntsiv).

Circuit design
Figure 4 shows a general schematic of the analog front-end for the pH probe based on the SLG47004. Figure 5 shows an internal design of the signal-conditioning circuit for the pH electrode in the GreenPAK Designer software. The “Power Up” button applies power to the circuit. The delay macrocell DLY4 works as a debounce filter to eliminate switch bouncing. DFF2 latches the voltage level and toggles it each time the button is pressed, transitioning between working mode and sleep mode.

Figure 4. General Schematic of Analog Front-End for pH Probe Based on SLG47004 (Image: Marian Hryntsiv).
Figure 5. This analog front-end circuit conditions the high-impedance output of a pH probe (Image: Marian Hryntsiv).

As evident from the pH scale, the signal from the electrode can reach down to -411 mV. Therefore, a 512-mV offset voltage is sufficient to ensure that the signal from the electrode is always positive. Amplifier OpAmp0 provides this 512-mV offset voltage, achieved through a high-drive voltage reference macrocell called HD Buffer that uses the shared voltage reference source VREF OpAmp0. The HD Buffer output produces an accurate 1.024 V, which is then halved by a 51 kΩ resistor divider to yield 512 mV. Amplifier OpAmp0 is configured for unity gain and applies this 512-mV voltage to bias the reference electrode of the pH electrode, maintaining a low impedance. Consequently, the pH-measuring electrode produces a voltage superimposed upon this 512-mV bias voltage. Essentially, the circuit transforms the bipolar pH-electrode signal into a unipolar signal suitable for use in a single-supply system.

The second amplifier, OpAmp1, operates as a unity-gain buffer for the pH electrode’s output. This high-input-impedance buffer between the pH electrode and the measurement device ensures the circuit’s compatibility with a wide range of measurement instruments, including those with lower input impedance. In most applications, the voltage output from the pH electrode is sufficiently high for direct use, eliminating the need for extra amplification. If, however, you need amplification, you can adjust this circuit by introducing gain resistors to OpAmp1.

The SLG47004 has a built-in temperature sensor to measure the solution’s temperature, allowing for adjustments that compensate for sensitivity variations due to temperature.

Auto-trim
When using a pH meter for the first time, you must calibrate it. There is a special calibration button that initiates this process. You should also perform periodic calibrations. For example, if the pH meter operates continuously, it should be calibrated after a week of operation.

For calibration, the SLG47004 has an Auto-Trim function. The key macrocell responsible for the Auto-Trim is the Chopper Analog Comparator. The Chopper ACMP uses OpAmp1’s output signal as voltage feedback and compares it with the desired 512 mV. During calibration, the pH electrode should be immersed in a buffer solution with a neutral (7.0) pH level. Buffer solutions maintain a constant pH value when small amounts of and acid or base are added to them. In this scenario, OpAmp1’s output voltage should match 512 mV because the voltage at the pH electrode’s output is 0 mV. If these two voltages do not match, the chopper comparator adjusts the rheostat’s RH0 resistance by controlling the Up/Down and CLK rheostat inputs. At the end of the Auto-Trim process, the voltage at OpAmp1’s output will be 512 mV.

Use the Calibrate button to start the calibration. The delay macrocell DLY3 functions as a debounce filter to eliminate switch bouncing. The CNT/DLY1 works as a one-shot, creating a 250 ms pulse because the maximum duration of the Auto-Trim process is calculated as rheostat code divided by the clock rate, which is 512/2048 = 250 ms. The trim process begins with the rising edge on the Set input of Rheostat 0. After receiving a ready signal from the analog blocks, the clock pulses for the internal counter of the rheostat are enabled. The counter counts up or down depending on the level at the Up/Down input. Figure 6 shows the auto-trim waveforms.

Figure 6. Performing a calibration causes a counter to count up or down to adjust the circuit’s output voltage (upper trace) (Image: Marian Hryntsiv).

The internal counter stores the rheostat’s current value, which you can program into the GreenPAK’s MTP NVM by setting logic high at the program input. This input is rising-edge sensitive and has no effect when the Auto-Trim process is active. To meet these requirements, a falling-edge detector generates a short pulse on the falling edge of the pulse in Figure 6. This ensures that programming takes place after the Auto-Trim is completed. The SLG47004’s ability to program and store rheostat values is useful in this situation. That’s because it allows for the use of the stored rheostat value each time the pH meter is turned on, without the need to perform the Auto-Trim every time.

Testing
The system using this circuit was initially calibrated using the Auto-Trim function with a buffer liquid of pH 7 (neutral). That produced the 512-mV output shown in Figure 6. To test the meter readings, we then used buffer liquid with a pH value of 4, resulting in a measured voltage of 676 mV. Therefore, 676 – 512 = 164 mV is the voltage attributed to the pH electrode. Because the electrode’s sensitivity at 25°C is 59.16 mV, then 164/59.16 = 2.77. Because neutral liquid has a pH value of 7, the measured liquid’s pH is 7 – 2.77 = 4.23 pH.

Considering that the buffer fluid may have some error (often indicated on the solution bottle), the electrode has its offset error, and no temperature compensation was applied, the results are reasonably acceptable. Test results for distilled water (pH = 7), diluted water with acid (pH = 4), and diluted water with base (pH = 11) are shown in Figure 7.

Figure 7. These plots show the security’s output voltages at pH 4, pH7, and pH 11(Image: Marian Hryntsiv).

Conclusion
When used in analog applications, the SLG47004 lets you include an op-amp with a very low bias current or offset voltage. The SLG47004’s Auto-Trim function minimizes bias error, something needed for applications such as pH probe signal conditioning. The SLG47004’s in-system programmability lets you place an unprogrammed IC onto the PCB and modify its configuration or lets you add new functions during the production phase by programming the multi-time programmable memory.

You can download our free GreenPAK Designer software to open the .aap file and view the proposed circuit design. Use the GreenPAK development tools to freeze the design into your own custom IC.

You may also like:

  • filters
    What are reflectionless filters? Part 1: context
  • bandpass filters
    An overview of filters and their parameters, Part 1: Context

  • Filters, Part 1: Analog, switched, and digital filters

  • Unity-gain difference amp precisely level shifts and buffers small difference…

Filed Under: Amplifiers, Analog Front End, FAQ, Featured Tagged With: FAQ, renesaselectronics

Primary Sidebar

Featured Contributions

Design a circuit for ultra-low power sensor applications

Active baluns bridge the microwave and digital worlds

Managing design complexity and global collaboration with IP-centric design

PCB design best practices for ECAD/MCAD collaboration

Open RAN networks pass the time

More Featured Contributions

EE TECH TOOLBOX

“ee
Tech Toolbox: 5G Technology
This Tech Toolbox covers the basics of 5G technology plus a story about how engineers designed and built a prototype DSL router mostly from old cellphone parts. Download this first 5G/wired/wireless communications Tech Toolbox to learn more!

EE LEARNING CENTER

EE Learning Center
“analog
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

EE ENGINEERING TRAINING DAYS

engineering

RSS Current EDABoard.com discussions

  • Snubbers in Flyback Converters
  • The Analog Gods Hate Me
  • Dynacord enter protect
  • IGBTs without negative gate drive
  • Industrial Relay Board Design for Motorcycle Use

RSS Current Electro-Tech-Online.com Discussions

  • Current sources in parallel...
  • Need Help with TDA7294 Stereo Amplifier
  • Comparator hard to find without digikey
  • Pic18f25q10 osccon1 settings swordfish basic
  • Data is not transferring to Data register of SPI in MG32F157VCT6
“bills

Design Fast

Component Selection Made Simple.

Try it Today
design fast globle

Footer

Analog IC Tips

EE WORLD ONLINE NETWORK

  • 5G Technology World
  • EE World Online
  • Engineers Garage
  • Battery Power Tips
  • Connector Tips
  • DesignFast
  • EDA Board Forums
  • Electro Tech Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips

ANALOG IC TIPS

  • Subscribe to our newsletter
  • Advertise with us
  • Contact us
  • About us

Copyright © 2025 · WTWH Media LLC and its licensors. All rights reserved.
The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media.

Privacy Policy