Tag Archives: hc-sr04

ATmega8 HC-SR04 Ultrasonic Sensor Interface Demo

Ultrasonic Rangefinder HC-SR04 Interfacing with ATmega8

In this article I will describe how to interface a Ultrasonic Range Finder Module with a AVR ATmega8 microcontroller. I will provide a HEX file which you can burn into your ATmega8 directly to quickly test this whole setup. Ultrasonic range finder modules helps find the exact distance to an object. This can have vast application in robotics. These are more expensive than IR based obstacle detectors but the advantage is that they give accurate distance to the obstacle and also their performance is not affected by the colour of obstacle. Ultrasonic Range Finder HC-SR04   Things Required   S. No. Item Image 1 28 PIN AVR Dev Board Contains the core AVR circuit including 5v regulator, reset, ISP. 2 16×2 LCD Board Alphanumeric LCD Module subsystem on board. 3 Single Pin Female to Female Burg Wires Used to interconnect the two boards. And the sensor.   4 USB AVR Programmer To upload the program to the development board. 5 Ultrasonic Range Finder Module 6   12V 1A Power Adapter.   Connect LCD Board Please read this article on interfacing alphanumeric lcd module with AVR microcontrollers. Interfacing LCD Modules with AVR Connect the LCD Board with the development board using single pin f/f burg wires according to the table given below.   LCD Board AVR Dev Board   1 R/W […]