View Single Post
Old 04-22-14, 07:30 PM   #30
where2
DIY Geek
 
Join Date: Apr 2013
Location: Sunny Florida
Posts: 401
Thanks: 74
Thanked 83 Times in 73 Posts
Default

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.
where2 is offline   Reply With Quote