Τετάρτη, 28 Ιανουαρίου 2015

Ultrasonic Distance Detector

Here are two similar projects based on the famous ATmega 328 microcontroller which was programmed through the Arduino IDE. The Ultrasonic module is based upon two sonars, one sends the sound signal and the other receive it, when an obstacle is in front of  them the sound which is being send from the trigger's pin is received by the echo's pin and through a mathematical process we get the distance between the sensor and the obstacle. Human ear can't hear ultrasonics, because they are being emitted at 40 khz (more over from 20 khz which is the maximum level human ear can perceive). On the other hand, animals such as dogs, cats etc. can recognize these sounds. These 2 projects are very similar with the difference one has as a display an LCD with and I2C protocol, and the other an LED bar.

code for the Distance Detecor with LCD : https://www.dropbox.com/s/qtiocgw0268zvko/Ultrasonic_distance4.ino?dl=0

code for the Distance Detecor with LEDS : https://www.dropbox.com/s/zxfi155oxtwlvjb/Ultrasonic_distance3.ino?dl=0

Δεν υπάρχουν σχόλια:

Δημοσίευση σχολίου