pH ORP DS18B20 Circuit
Table
| Sensor | Best Interface | Why it matches |
|---|---|---|
| EC / TDS / conductivity probe | Extra analog front-end + ADS1115 or separate IC | Common companion to pH/ORP for water quality. Needs AC excitation, so it is more complex than pH/ORP. |
| Dissolved Oxygen (DO) probe | Analog front-end + ADC | Useful for water quality. Probe type matters: galvanic/polarographic/optical. Analog DO needs careful conditioning. |
| Turbidity sensor | Analog or digital module | Easier add-on; can feed ESP32 ADC or ADS1115 if a channel is free. |
| Water temperature sensor, second DS18B20 | Same 1-Wire DQ bus | Very easy. Multiple DS18B20 sensors can share the same DQ line. |
| Water level / float switch | Digital GPIO | Simple safety/status input. Needs an extra J2 pin or separate connector. |
| Leak detector / wet contact sensor | Digital/analog GPIO | Useful for enclosure or tank monitoring. |
| Pressure sensor | I2C or analog | Useful if measuring pipe/tank pressure. Prefer I2C 3.3V sensors. |
| Flow sensor | Digital pulse GPIO | Useful for dosing/flow monitoring. Needs one ESP32 GPIO input. |
Table
| J2 Pin | Name | Direction | Purpose |
|---|---|---|---|
| 1 | 3.3V | Input | External 3.3V supply from ESP32 board or regulated source |
| 2 | GND | Common | Common ground with ESP32 and probes |
| 3 | ADS1115 SDA | Bidirectional | I2C data to ADS1115 module |
| 4 | ADS1115 SCL | Input to ADS1115 | I2C clock from ESP32 |
| 5 | DS18B20 DQ | Bidirectional | 1-Wire data for DS18B20 temperature probe |
Text
J2 pin 1 3.3V -> R15 10Ω -> FILTERED 3.3V FILTERED 3.3V -> C17 10µF to GND FILTERED 3.3V -> C18 100nF to GND
Table
| Measurement | ADS1115 Mode | Positive Input | Negative Input | Functional Net |
|---|---|---|---|---|
| pH | Differential | A0 | A1 | ADS1115 PH A0 - ADS1115 PH A1 |
| ORP | Differential | A2 | A3 | ADS1115 ORP A2 - ADS1115 ORP A3 |
Table
| Result | Value |
|---|---|
| Overall functional result | PASS |
| FILTERED 3.3V rail cutoff | ~778 Hz |
| Rail attenuation at 100 Hz | -0.0716 dB |
| Rail attenuation at 1 kHz | -4.221 dB |
| Rail attenuation at 10 kHz | -22.18 dB |
| Rail attenuation at 100 kHz | -42.16 dB |
| pH/ORP differential bandwidth | ~481.8 Hz |
| pH ADC range for ±414 mV probe input | A0 ≈ 1.236V to 2.064V, A1 ≈ 1.650V |
| ORP ADC range for ±1.0V probe input | A2 ≈ 0.650V to 2.650V, A3 ≈ 1.650V |
| Guard-ring verification | PH guard tied to PH REF; ORP guard tied to ORP REF; neither tied to GND |
Final 3.3V rail filter response
pH and ORP differential gain vs frequency
pH transient step response
Project
Current Design Scope
External Interface: J2
Power Architecture
Sensor Architecture
ADC Channel Map
Key Component Values
Simulation Summary
Firmware Requirements
Current Validation Status