December 15, 2010
about 3 years ago
Using the datasheet, we did a fourth degree approximation to get a close fitting formula to find the distance in cm from the voltage. Here is the formula we used:
Distance = 16.2537 * x4 - 129.893 * x3 + 382.268 * x2 - 512.611 * x + 306.439
*Where x=Voltage read on ADC and Distance is in cm.
Forgot your password?
No account? Register one!