ORP Sensor Kit (501Z) & ESP8266 ESP-01 1M

Hi, I am using Home Assistant & ESPHome and I am using ESP8266 for flow meters (very nice as it has integrated counter) and other readings and would like to add the ORP sensor on it.
I connected +3.3V and GND from ESP + SIG to A0 analogiq input of ESP
Simple code for testing

sensor:

  - platform: adc
    pin: A0
    name: "Redox Meter Out"
    id: redox_meter_out
    accuracy_decimals: 6
    update_interval: 1s

I dont need 1 sec, jut for testing.
And I get strange results… zero values most of the time, and random values when I get one

[19:30:33][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:34][D][sensor:126]: 'Redox Meter OUT': Sending state 0.28516 V with 6 decimals of accuracy
[19:30:35][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:36][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:37][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:38][D][sensor:126]: 'Redox Meter OUT': Sending state 0.34082 V with 6 decimals of accuracy
[19:30:39][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:40][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:41][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:42][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:43][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:44][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:45][D][sensor:126]: 'Redox Meter OUT': Sending state 0.84570 V with 6 decimals of accuracy
[19:30:46][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:47][D][sensor:126]: 'Redox Meter OUT': Sending state 0.55176 V with 6 decimals of accuracy
[19:30:48][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:49][D][sensor:126]: 'Redox Meter OUT': Sending state 0.55371 V with 6 decimals of accuracy
[19:30:50][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:51][D][sensor:126]: 'Redox Meter OUT': Sending state 0.10547 V with 6 decimals of accuracy
[19:30:52][D][sensor:126]: 'Redox Meter OUT': Sending state 0.84570 V with 6 decimals of accuracy
[19:30:53][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:54][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:55][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:56][D][sensor:126]: 'Redox Meter OUT': Sending state 0.84570 V with 6 decimals of accuracy
[19:30:57][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy
[19:30:58][D][sensor:126]: 'Redox Meter OUT': Sending state 0.00000 V with 6 decimals of accuracy

Any idea what I did wrong ?
I have another ORP sensor on another ESP (same model), one yeard old, which is working nicely with same config (Redox Meter IN)

[19:35:40][D][sensor:126]: 'Redox Meter IN': Sending state 0.72363 V with 6 decimals of accuracy
[19:36:10][D][sensor:126]: 'Redox Meter IN': Sending state 0.72266 V with 6 decimals of accuracy
[19:36:40][D][sensor:126]: 'Redox Meter IN': Sending state 0.72266 V with 6 decimals of accuracy
etc

/Klona

Hi there,
I would think you need some delay in between reads? maybe
what firmware is in the ORP?
HTH
GL :slight_smile: PJ

Thks,
As far as i understand, the update_interval is timing between two measurement, not timing between 2 information sent.
For digital and counter it’s different, ESP store all digital impulses and do a count, and gives total result on the interval resquested.
On analogiq, it just do a read every update_interval so it should be good, even with 1 sec

I didnt connect the white wire NC as I understand that as “not used” but… I wonder…

Hi there,
Ah’ makes sense now… I see from the schematic it just a straight digital in NO i2c or anything.
Can you try a different Analog in?
GL :slight_smile: PJ

No, that’s a standard Grove thing, The NC on Pin two. (most of their devices have it that way.)
Typically used for I2C also and that way it maintains that compatibility on all “Their” stuff.
:v:

Pfff.
In my mind it was simple analog output, not I2C.
ESPHOME has I2C support, just need to identify proper component ESPHome: esphome::i2c::I2CDevice Class Reference
then discover good values.
I dont think I am good enough for that, wo will throw this ORP adapter away and get back to simple analog one. I got a pH/ORP 1130 Phidgets working, so will duplicate to be sure that time. (Adaptateur pH/ORP 1130 Phidgets - Capteurs analogiques Phidgets | GO TRONIC)

Thansk for your help

1 Like