Categories

Temperature compensation for an Arduino ultrasonic distance sensor

Posted on Friday, May 30th, 2014 in Arduino, sensors by DP

TempUSCloseUp

Sverre Holm writes:

Ultrasonic distance sensors can find the range out to 2-4 meters and are popular in e.g. robotics. Here I look at how the accuracy can be improved by compensating for the variation of speed of sound with temperature. It actually varies quite a lot in air and around 0 C it is:
c = 331.3 + 0.606 * T
where c is in m/s and T is in C. The formula is good to up to at least +/-30 C. There is also a dependence of humidity, but as it is so small it is neglected here.

Via the contact form.

This entry was posted on Friday, May 30th, 2014 at 11:00 am and is filed under Arduino, sensors. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

One Response to “Temperature compensation for an Arduino ultrasonic distance sensor”

  1. Johne132 says:

    Very informative post.Really thank you! Awesome. ccedgfekkbdc

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • KH: So Romanians use old ICs too, a bit reminiscent of Dilshan's projects. I'm vaguely disappointed by the liberal use of float data and float calculations....
  • Max: This is of course no "0-30V" supply - the single-supply standard LM723 schematic can't go all the way down to zero, which is why I...
  • KH: A power-off current draw of 4mA for the Sony A6000 is a defect, product recall territory. It hits the camera battery with unacceptable wear and...
  • Olav Storstrøm: Please add 9-pin D-sub RJ45 and RJ12 connectors! Thanks!
  • KH: Hydroponics is like home automation. Every year you have folks who start projects like these and think it will take off and become a big...