PH sensor with DS18B20 temp compensation on PIC

phpicsensortemperature

I am trying to build a circuit that interfaces a standard pH electrode to a PIC (18F4550). I need the PIC to also use a DS18B20 for temp reading and use that data to correct the pH reading. I thought this should be OK with only software coding in the PIC since the temp data will already be digital. I have seen many schematics for the pH probe amplification but their temperature compensation seems to involve thermistors of some sort and is handled at the ADC end; or they're considering a probe with both the sample and a reference electrode lead (which I'm not using). My electrode has the single bnc connection.

Any suggestions on how to integrate the DS18B20 data into a correction routine?

Also, any experience recommendations on the ADC Amp would be SUPER helpful too. There are quite a few in the fA input biasing range, I can't decide. I'd prefer to avoid the guardrings if possible.

EDIT1: OK, thanks all for the advice. I have taken the lazy way out and bought the atlas scientific sensor interface board. It is a uart board that can do the calculations itself. I just have to figure out how to get the temp data sent to it by uart. I posted a separate question about that (atlas code was confusing). But this process should be much easier. Also, considering some other advice, I've switched to the 18f46k20.

Best Answer

Look up my answer on PH probe interfacing.

I've used LMC6001 and it works, it has a reference design in a datasheet. Be aware that PCB board has some leakage too, so that could ruin your measuremetns.

I've desoldered an input lead of DIP package of the frontend opamp and soldered it directly to BNC so it does not touch anything and there is only air and BNC isolation around the input signal.

Otherwise, I was getting wrong results. This is how I measured opamp input current. No matter how vigoriously I cleaned the PCB (the friend whom I was helping with this probe is a chemist, he knows some things about cleaning stuff), too much current was going into opamp input untill I connected the input lead directly to BNC.