Measuring distances with SRF04 sonic module
Measuring device is combined of mini application module with Atmega128 microcontroller and two SFR04 sonic modules. Measuring principle is very simple. Measure time between sonic transmission and echo reception and then divide it by sound speed in this environment. Timing is explained in this diagram. Calculated distance is displayed on LCD screen. Sonic distance meter can measure distances from 3cm up to 3 meters and can reflect form 3 cm obstacles at 2 meter distance. I would say quite good addition to some robotic platform. Source codes are written for AVR-GCC compiler and can be downloaded form site. Continue reading