SparkFun Electronics will be closed in observance of memorial day on Monday, May 29th. We will resume normal business hours on Tuesday, May 30th. Any orders placed after 2pm Mountain Time on Friday, May 26th will process and ship out on Tuesday, May 30th.


Member Since: December 15, 2010

Country: United States

  • 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.