General

ORP probe with ADS1115

userHead PawelSmierciak 2024-02-28 09:06:31 173 Views2 Replies

hello

maybe someone could provide me some details how to calculate ORP with above hardware  and esp32

some part of my code:

 

 

ads.setGain(GAIN_ONE);

ads.begin();

 

orp_voltage = ads.readADC_SingleEnded(ORP_PIN) / 10;

 

how to calculate ORP level ?

right now i do it like this

 

    ORP = (orp_voltage / 5*1024)/1000;

 

but im not sure is it the good way

 

 

 

 

 

2024-02-28 14:04:24

problem solved  ;-) short description and code for ADS1115 + SEN0464

 

first you need to calibrate ;-) more info on the webpage :
https://wiki.dfrobot.com/Gravity_Analog_ORP_Sensor_PRO_SKU_SEN0464

 

most important part:
Remove the ORP probe and use wire to short-circuit the S+ and S- pins of the ORP signal converter

use below code to read calibration value :


Adafruit_ADS1115 ads;
ads.setGain(GAIN_ONE);
ads.begin();
voltage = ads.readADC_SingleEnded(ORP_PIN);

//you will have calibration value 
calibration = voltage * 0.125;


and you will use it in your program to read data :

 

Adafruit_ADS1115 ads;
ads.setGain(GAIN_ONE);
ads.begin();


voltage = ads.readADC_SingleEnded(ORP_PIN);

orp = voltage * 0.125;
orp = orp - calibration;

 

userHeadPic PawelSmierciak
2024-02-28 09:24:02

just to clarify i got SEN0464  ORP probe

 

userHeadPic PawelSmierciak