I went here http://en.wikipedia.org/wiki/Tide and found more info than I knew existed about tides and tide data.
I went here http://en.wikipedia.org/wiki/Tide and found more info than I knew existed about tides and tide data.
I used a DAC (digital to analog converter) formed with an R2R ladder on a PIC port, to generate a near perfect sine wave.
Generate the values you need with a spreadsheet using the Excel SIN function, put them in a software table, then periodically go get the values from the table one at a time, and write them to the port, with appropriate delays between writes.
You might add a capacitor to the output of the ladder for smoothing.
Last edited by J. Mark Wolf; - 18th December 2012 at 13:41.
Thanks J. I'm not interested in the analog voltages only sending serial values - but the Excel idea is a good one. I'm no guru with Excel but will learn from this and give it a go.
Regards,
Bill
Bookmarks