Trying to connect pH sensor to esp32

As i connect bnc connector with pH it only shows 4095 and doesn't change on even changing offset
code:

int pH_Value; 
float Voltage;
 
void setup() 
{ 
  Serial.begin(115200);
  pinMode(pH_Value, INPUT); 
} 
 
void loop() 
{ 
  pH_Value = analogRead(34); 
  Voltage = pH_Value * (3.3 / 4095.0); 
  Serial.println(Voltage); 
  Serial.println(pH_Value);
  delay(500); 
}


i am using this amplifier as i connect probe to it directly goes to highest reading that is 4095 and even using ph offset screw didn't work
connected v+ to 3v3 of esp32
g to gnd
and po for input of data

That´s bad.

How we could help?

Hi, @ayush0448
Welcome to the forum.

Can you please post your code, using code tags?
Can we please have a circuit diagram?
An image of a hand drawn schematic will be fine, include ALL power supplies, component names and pin labels.

Can you please post a link to data/specs of the PH sensor?

Can you please tell us your electronics, programming, arduino, hardware experience?

Thanks.. Tom... :smiley: :+1: :coffee: :australia:

Hi @ayush0448
Welcome to the community
Pls read the following post to procced further

Kindly share us the code and circuit diagram

i have added more info see if it helps you understand my problem

Hi, @ayush0448

Thanks for the info. :+1:
A link to spec/data of the PH sensor would be good.

Please when adding requested information, place the information in a new post, editing old posts only confuses the flow of the thread.

Did the probe come with setup instructions and sample code?

What reading do you get if you remove the module and short the analog pin on the ESP32 to gnd?

Thanks. Tom.. :smiley: :+1: :coffee: :australia:

on shorting analog pin to gnd gives 0
E201-BNC.pdf (277.2 KB)
this is the only data sheet i got with it

Hi,
That is the probe specs, you need to find the module info.

This may help, it includes code and calibration instructions.

Tom... :smiley: :+1: :coffee: :australia:

Hi i have a same problem. Does your problem with ph sensor that alway show 4095 solved? Can you explain to me how to solve it because im doing my final years project and have a same problem.

Problems with electronics. The TLC4502 was faulty, its output hung up on the supply voltage, I replaced it with an LMC662. But it couldn't be calibrated either. The value of the resistance in the TLC4502 feedback circuit was 50k, it had to be reduced to 20k. The BNC connector contact was faulty, I had to cut it off and connect it by soldering. Everything else has been good... so far.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.