Change the world

Control Software

The following example programs are available to demonstrate the basic principles for using sonar distance sensors:

ex1_sonar_4pin_lcd.c

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.

 

ex2_sonar_3pin_lcd.c

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.