Interfacing Ultrasonic Rangefinder with AVR

HC-SR04 sensor

In this tutorial, we are going to interface ultrasonic rangefinder with the all popular ATMEGA8. Ultrasonic rangefinder is used to find range of an obstacle or a wall from the sensor. However, when there are cheap methods available to find range like the IR sensor or even a combination of LED’s and LDR would do but the question is why we use a more costly sensor. The reason is:- IR sensors are not accurate Result varies from object to object Calibration is required Works good only for shot range Normally the IR sensors have a range from 30-80 cm or even less depending upon the manufacturer and also the LED’s used. However for an ultrasonic rangefinder, the distance can be measured accurately up to 400cm with an accuracy of 1cm. … Continue reading

The US2B Radar – the Truly Radar That will Put You on the Test

Have you ever think to develop a high-tech and sophisticated US2B radar by yourself? You might think that this totally a mission impossible project, then you is wrong here. Before you starting the task, you’re better prepare these following components: PIC18F4550 microchip (microcontroller) An ultrasonic range sensor A old bipolar stepper motor (This for the motor turning purpose) Below here is the figure for the finished radar with the USB missile launcher beside it. The stepper motor will turn the ultrasonic range finder in 360 degrees and reverse (Cool, isn’t it?). When two measurements have been made, the PIC will send out the data to the PC by using an asynchronous interrupt transfer. The timer in the PIC controls the stepping motor turning speed.