The following example programs are available to demonstrate the basic principles for using sonar distance sensors:
Example program that demonstrates the use of a 4-pin sonar distance sensor. The program reads the distance every 100ms and displays the result on the LCD.
Example program that demonstrates the use of a 3-pin sonar distance sensor. The program reads the distance every 100ms and displays the result on the LCD.