Ok guys this is what I did. When I think of a voltage divider I think of 2 resistors thus divide by 2 which does not get it done. So what I did was use a 3 resistor voltage divider to divide by 3 which puts me under 5v max output. The highest ph reading I need is a little over 10 for calibration purposes. Dividing the 0 - 10V ph reading by 3 gives me .00333 volt change for every hundredth in ph degree. So then to figure my Vref+ I used this (vref+ / 1024 = .00333)
Now my variable that is read from the ad port is my exact ph +/- a hundredth, which I can live with since measuring ph is pretty much a joke anyways.
My next question is, what is a good way to make a non drifting precision regulator. Accurate to the mV and will hold voltage in rm temp. I hate using pots and caps on LM317 regulators it always seems like they drift allot, is there a better way.
Bookmarks