My first successes on this project! It's only in lab so far (using artificial seawater) and not in a real tank, as I'm still setting up my new one.
I now have a working phosphate electrode with a detection limit of 0.1ppm! It's based on a simple and cheap piece of cobalt wire.
I also have the final design of the sensor module electronics. Voltages will are converted to digital values for the microcontroller using a Dallas "1-wire" quad analog-to-digital converter (DS2450). Each input is buffered through a precision op-op stage (OPA4376).
It's only interferences are from pH and pO2, so I have added those, and calibrated for their effect... which is a just a small factor multiplied the voltage of the pH and pO2 electrodes and subtracted from the voltage reading on the PO4 electrode. That voltage is then converted to PO4 concentration by comparing it to the reference in the pH electrode and plugging it into a simple linear equation. There's a final adjustment for temperature, and that's it. That makes 4 inputs, utilizing all 4 channels on the ADC, plus an extra 1-wire temp sensor on the same bus. It's all digital after that, so can be arbitrarily far from the PC (or micro-controller in the final version).
It's easy, fast, only requires 3 wires (5V, ground & data) running from my laptop, and cost me a total of 20 bucks (plus the pH and oxygen electrodes, which is in keeping with the spirit of the project because these are desirable on their own anyway). I also plan on running the lights, and switching pumps on an off, all using this very same bus! I have prototypes for those as well (1-wire to 10V analog converter, and SSR drivers all based on "1-wire" 8-port digital switches). The connectors are just regular headphone jacks!
No pics yet cuz its just a pile of soldered bits and wires on a lab bench.
So far so good. If anyone wants instructions on the calibration scheme, just let me know. Next up: Conductivity + ORP. Then in order (and in pairs due to interferences): Ca + Mg, BiCarb + NH4, and NO3 + SO4. Then I'm done, unless something else pops up.