Hey I'm days away from presenting my final project which is a prototype of a system that can monitor and control parameters that allow the correct performance of a pool. I'm working with an ESP32 wroom. I obviously have other sensors, but I'm currently focusing on the pH sensor, since it's the last component that I incorporated into my system and I only have a few days to make it work.
I've spent more than a month trying to calibrate it with no success at all, and mainly stuck on 3.3v or ADC: 4095 while adjusting the potentiometer. I have watched many YouTube videos of Arduino and esp32 users, but I'm still unable to calibrate the module. I'm sure that the problem is not the electrode, since I got to try it with a chemistry equipment that allowed me to make pH measurements using the electrode. I have read that the ESP32 only works with 3.3 volts, so I bought a converter that could turn that voltage into 5v, but still I haven't been able to calibrate. Right now I'm thinking about going ahead with other protocols or even investigate further on the ESP32's ADC.
I would really appreciate it if I could get some help, especially if you've faced similar issues and your were able to solve them. Feel free to answer in Spanish if that’s easier for you.
I'm tried using the following sketch to callibrate the module with the potentiometer:
For informed help, please post a complete circuit diagram, with all pins, parts and connections clearly labeled (hand drawn is preferred), links to the module data sheets or product pages, and a detailed description of the problems you are having.
Posting instructions can be found in the "How to get the best out of this forum" post, linked at the head of every forum category.
Please post LINKS to the documents and product pages, rather than illegible photos or screenshots. Going by the photo of the one-page product documentation, this was not a very wise purchase decision.
We need to see a wiring diagram.
Edit: I found the thing on Amazon. The product description is nonsensical, and the complaints by reviewers indicate major problems.
Choose a pH sensor from a supplier that supports their products, has a decent customer base and reviews, and offers intelligible assembly and operating instructions. Consider the DFRobot series, which comes with good instructions and calibration solutions.
Converter of what?
First , you need to power the module by 5v and the easiest way is using a 5v power supply rather than "converter". Next, you have to convert module output from 0-5 to 0-3.3v range and it can be achieved with resistor delimiter.
Please show a detailed wiring diagram of your connection. Some photos of setup also could be useful. Also please indicate what is your esp32 board.