Check the IDE "Files > Examples > Sensors" directory for Ping sonar code example,and also the Arduino Playground for other sonar examples. I'm not familiar with US-100, so it probably works differently.The way the distance is displayed is determined by how you scale it and print it AFTERyou take the reading. See the Ping example above. 1" = 2.54 cm = 25.4 mm, it's justa scalefactor.
distances from 20-800mm in 1mm increments
Does anyone have any input on the way I want to measure from a given point by zeroing out the reading and increment inn from there?
Thanks Peter, I checked and it will do 2cm to 3m so I should be good.
You'll be very lucky to get anything like 1mm resolution, which equates to about 1/8th of a wavelength, or 3us at 40kHz.