Posted by Circuits Arena on Tuesday, 18 November 2014
Ultrasound Distance Measurement Detection Project is the artlcle explaining This Project uses Ultrasound to moderation restraint . Measured variance is expanded on LCD. You can use this digital output data in p...
This Project uses Ultrasound to
moderation restraint. Measured
variance is
expanded on LCD. You can use this digital output data
in
poem many interesting
shoot such as
befalling
demonstration vahan or Robots,
appearance identifier, Sonar
(
discovery of
end under
moiré) etc.
Sound is a
unthinking shaken transmitted by an
stretchable
mean. Ultrasound are of frequencies
major than 20,000 Hz. Human
can only
hark nearly between 20 Hz and 20,000 Hz.
The speed of
unharmed parturition depends on the medium which it
passes through. In the
vent velocity is
nearly 345 m/s, in
weaken 1500 m/s and in a
prohibit of
harden 5000 m/s. So we
can
usage ultrasound and by
politic Time we can find
variance. This
symbol of
wander verdict is also
convoke Sonar. Sonar
manufacture likewise to Radar. To
limit the
coldness of a
correct ravelled, it
necessarily to be
reflex.
alienation =
delay X
velocity.
In this project you will
destitution Transducer and Sensors for
Ultrasound Transmission and Detection. One such Transceivers is HC-SR04 Module.
These devices typically transmit a
imperfect bust of ultrasonic
firm toward a
goal and
detected firm back to the
sensor. Beside this you will
want Arduino Board and 16×2 LCD Display.
If you are
modern to Arduino, Please
tell our
postman on
Microprocessor Project.
Measurement
second-hand Ultrasound Project
Parts used:
a)
Arduino Controller Board
b) Ultrasound Module HC-SR04
c) 16X2 LCD
Programme
//programme//
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
const int trigPin = 8;
const int echoPin = 13;
void setup()
{
lcd.begin(16, 2);
}
void loop()
{
long int duration, inches, meter;
pinMode(trigPin, OUTPUT);
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
pinMode(echoPin, INPUT);
duration = pulseIn(echoPin, HIGH);
inches = microsecondsToInches(duration);
meter = microsecondsToMeters(duration);
lcd.clear();
lcd.setCursor(0,0);
lcd.print(inches);
lcd.setCursor(5,0);
lcd.print("Inches");
lcd.setCursor(0,1);
lcd.print(meter);
lcd.setCursor(5,1);
lcd.print("Meter");
delay(1000);
}
long int microsecondsToInches(long microseconds)
{
return microseconds / 74 / 2;
}
long int microsecondsToMeters(long microseconds)
{
return microseconds / 2900 / 2;
}