Yeah, I learned to do that with input readings back when I was in my teens. My dad had rigged up our Apple ][+ PC with a potentiometer on the railing of the floating dock behind our house (with a little mechanical linkage to amplify the rotation angle). The 200' 22awg wire between the PC and the dock was buried in conduit in a trench along with an 110V AC power cable. The potentiometer readings were quite unstable unless you used mathematical smoothing. After employing mathematical smoothing, we were able to write a BASIC program to predict upcoming tides.
|