March 27, 2012
about 3 years ago
Ah, just wanted to mention this since I didn’t see it here. For those looking for a quick and relatively simple way to estimate the relationship between voltage output and distance. Take the readings on the graph from the datasheet or get them from your sensor (multiply the raw output readings by 5volts and divide by 1024 to get the result in volts. slightly longer but more likely to fit your sensor).
I then graphed those readings in Excel and and found the line of best fit that most accurately followed the curve between the stated operating distances of 20cm to 150cm. Excel popped out the equation.
See here: http://tinypic.com/r/2lddtvc/6
No public wish lists :(
Forgot your password?
No account? Register one!