Can anyone suggest the best way to generate an ac square wave, i.e. alternating polarities, at 2 - 3kHz?
My project is to measure conductivity (salinity) of seawater while trying to avoid electrolysis as much as possible. My concept is to take an ADC reading during the positive portion of the cycle and convert that into a reasonable salinity reading. The readings will occur spaced at 10-15 min intervals using short bursts of the ac signal for the measurement. I'm hoping to minimize electrode wear by using standard gold plated header pins as the electrodes with the knowledge that they will need to be replaced every so often.
I looked at PWMOUT, but can't see how I could set that up on two pins to run at 180 degrees of each other. Probably obvious, but I'm not seeing it.
Thanks,
John
My project is to measure conductivity (salinity) of seawater while trying to avoid electrolysis as much as possible. My concept is to take an ADC reading during the positive portion of the cycle and convert that into a reasonable salinity reading. The readings will occur spaced at 10-15 min intervals using short bursts of the ac signal for the measurement. I'm hoping to minimize electrode wear by using standard gold plated header pins as the electrodes with the knowledge that they will need to be replaced every so often.
I looked at PWMOUT, but can't see how I could set that up on two pins to run at 180 degrees of each other. Probably obvious, but I'm not seeing it.
Thanks,
John