Recently, Jaime Andres Arteaga designed a simple C program to use a SRF05 ultrasonic sensor, low cost ultrasonic rangefinder up to 5 meters, with AVR ATmega32. The microcontroller sends a pulse trigger (10 us minimum) and then, the sensor produces a pulse that is proportional to the distance.
In this project, the SRF05 is connected in MODE 1. This mode uses separate trigger and echo pins, and is the simplest mode to use. To use this mode, just leave the mode pin unconnected – the SRF05 has an internal pull up resistor on this pin. This project is very useful for hobbyist who wants to build range finder project using AVR MCU.
SRF05 With ATmega32
Project Detail and Documentation