SlideShare a Scribd company logo
1 of 17
ULTRASONIC SENSOR
An ultrasonic sensor is an instrument that measures the distance to
an object using ultrasonic sound waves.
An ultrasonic sensor uses a transducer to send and receive
ultrasonic pulses that relay back information about an object’s
proximity.
High-frequency sound waves reflect from boundaries to produce
distinct echo patterns.
Presented by :
◦ Maria Vannesa Belenario
◦ Waad Jamal Almuqalbi
◦ Jeran Rai
LAWS OF PHYSICS OF ULTRASONIC
WAVES
Sound waves are having specific frequencies or number
of oscillations per second. Humans can detect sounds in
a frequency range from about 20Hz to 20 KHz. However
the frequency range normally employed in ultrasonic
detection is 100 KHz to 50MHz. The velocity of
ultrasound at a particular time and temperature is
constant in a medium.
WORKING PRINCIPLE
When an electrical pulse of high voltage is applied to the
ultrasonic transducer it vibrates across a specific spectrum of
frequencies and generates a burst of sound waves. Whenever any
obstacle comes ahead of the ultrasonic sensor the sound waves
will reflect back in the form of echo and generates an electric
pulse. It calculates the time taken between sending sound waves
and receiving echo. The echo patterns will be compared with the
patterns of sound waves to determine detected signal’s
condition.
WORKING PRINCIPLE
HC-SR04 ULTRASONIC SENSOR
As shown in picture, the HC-SR04 Ultrasonic
sensor is a 4 pin module, whose pin names are Vcc,
Trigger, Echo and Ground respectively. This sensor
is a very popular sensor used in many applications
where measuring distance or sensing objects are
required. The module has two eyes like projects in
the front which forms the Ultrasonic transmitter and
Receiver.
HC-SR04
Pin Number Pin Name Description
1 Vcc The Vcc pin powers the sensor, typically with +5V
2 Trigger Trigger pin is an Input pin. This pin has to be kept high for
10µs to initialize measurement by sending Ultrasonic wave.
3 Echo Echo pin is an Output pin. This pin goes high for a period of
time which will be equal to the time taken for the Ultrasonic
wave to return back to the sensor.
4 Ground This pin is connected to the Ground of the system.
HC-SR04 CHARACTERISTICS
◦ Supply voltage: 5V (DC).
◦ Supply current: 15mA.
◦ Modulation frequency: 40Hz.
◦ Output: 0 – 5V (Output high when obstacle detected in range).
◦ Beam Angle: Max 15 degree.
◦ Theoretical measuring Distance: 2cm – 400cm.
◦ Accuracy: 0.3cm.
HC-SR04 OPERATION
◦ The Ultrasonic transmitter transmits an ultrasonic wave, this wave
travels in air and when it gets objected by any material it gets reflected
back toward the sensor this reflected wave is observed by the
Ultrasonic receiver module as shown in the picture below
HC-SR04 OPERATION
Power the Sensor using a regulated +5V through the Vcc ad
Ground pins of the sensor. The current consumed by the sensor
is less than 15mA and hence can be directly powered by the on
board 5V pins (If available). The Trigger and the Echo pins are
both I/O pins and hence they can be connected to I/O pins of
the microcontroller.
To start the measurement, the trigger pin has to be made high for
10uS and then turned off. This action will trigger an ultrasonic
wave at frequency of 40Hz from the transmitter and the receiver
will wait for the wave to return.
HC-SR04 OPERATION
Once the wave is returned after it getting reflected by any object the Echo
pin goes high for a particular amount of time which will be equal to the
time taken for the wave to return back to the sensor.
The amount of time during which the Echo pin stays high is measured by
the MCU/MPU as it gives the information about the time taken for the wave
to return back to the Sensor. Using this information the distance is
measured as explained in the above head.
HC-SR04 is commonly used with both microcontroller and microprocessor
platforms like Arduino, ARM, PIC, Raspberry Pie etc
SIMPLE ARDUINO C PROGRAMMING
FOR DISTANCE MEASUREMENT
1. // defines pins numbers
2. const int trigPin = 12;
3. const int echoPin = 11;
4. // defines variables
5. long duration;
6. int distance;
7. void setup() {
8. pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output
9. pinMode(echoPin, INPUT); // Sets the echoPin as an Input
10. Serial.begin(9600); // Starts the serial communication
11. }
SIMPLE ARDUINO C PROGRAMMING
FOR DISTANCE MEASUREMENT
12. void loop() {
13. // Clears the trigPin
14. digitalWrite(trigPin, LOW);
15. delayMicroseconds(2);
16. // Sets the trigPin on HIGH state for 10 micro seconds
17. digitalWrite(trigPin, HIGH);
18. delayMicroseconds(10);
19. digitalWrite(trigPin, LOW);
20. // Reads the echoPin, returns the sound wave travel time in microseconds
21. duration = pulseIn(echoPin, HIGH);
SIMPLE ARDUINO C PROGRAMMING
FOR DISTANCE MEASUREMENT
22. // Calculating the distance
23. distance= (duration*0.034)/2; //Speed of sound in air at standard condition = 0.034cm/µs
24. // Prints the distance on the Serial Monitor
25. Serial.print("Distance: ");
26. Serial.println(distance);
Note : In line 23, the numerator is divided by 2 to account for the fact that the ultrasonic wave travels
double the distance from transmitter to object and again bounce back to receiver striking object.
INTERFACING ULTRASONIC SENSOR
WITH ARDUINO
MARIA&JERAN
APPLICATION OF ULTRASONIC
SENSOR
 Proximity Detection.
 Liquid Level Sensing.
 Obstacle Detection.
 Ranging/Distance Measurement.
 Anti Collision system.
 Contouring or Profiling.
 Presence Detection.
 Product Counting and Sorting.
 Anti Intrusion System.
 Medical Imaging.
◦
ADVANTGES OF ULTRASONIC SENSOR
 Its small size makes it easy to integrate into projects.
 Ultrasonics can easily integrate with any type of controller.
 Its high frequency, sensitivity, and power make it easy to detect objects.
 It have greater accuracy than many other methods at measuring thickness
and depth of a parallel surface.
 Ultrasonics are easy to use and not dangerous during operation.
 An inexpensive option.
“Somewhere in me is a curiosity
sensor. I want to know what's over the
next hill. You know, people can live
longer without food than without
information. Without information,
you'd go crazy.”

More Related Content

What's hot

What's hot (20)

electronics seminar ppt
electronics seminar pptelectronics seminar ppt
electronics seminar ppt
 
Obstacle detection using ultra sonic sensor
Obstacle detection using ultra sonic sensorObstacle detection using ultra sonic sensor
Obstacle detection using ultra sonic sensor
 
Distance measurement using Ultrasonic sensor on Arduino Uno
Distance measurement using Ultrasonic sensor on Arduino UnoDistance measurement using Ultrasonic sensor on Arduino Uno
Distance measurement using Ultrasonic sensor on Arduino Uno
 
Ultrasonic radar using 8051
Ultrasonic radar using 8051Ultrasonic radar using 8051
Ultrasonic radar using 8051
 
Hart communication protocol
Hart communication protocolHart communication protocol
Hart communication protocol
 
Missile detection and automatic destroy system
Missile detection and automatic destroy system Missile detection and automatic destroy system
Missile detection and automatic destroy system
 
Obstacle Avoidance ROBOT using ARDUINO
Obstacle Avoidance ROBOT using ARDUINOObstacle Avoidance ROBOT using ARDUINO
Obstacle Avoidance ROBOT using ARDUINO
 
Successive Approximation ADC
Successive Approximation ADC Successive Approximation ADC
Successive Approximation ADC
 
Ultrasonic radar mini project
Ultrasonic radar  mini projectUltrasonic radar  mini project
Ultrasonic radar mini project
 
Fire fighting robot ppt
Fire fighting robot pptFire fighting robot ppt
Fire fighting robot ppt
 
Distance Measurement by Ultrasonic Sensor
Distance Measurement by Ultrasonic SensorDistance Measurement by Ultrasonic Sensor
Distance Measurement by Ultrasonic Sensor
 
Microprocessor ppt
Microprocessor pptMicroprocessor ppt
Microprocessor ppt
 
Emi unit iii ppt
Emi unit iii pptEmi unit iii ppt
Emi unit iii ppt
 
Introduction to Node MCU
Introduction to Node MCUIntroduction to Node MCU
Introduction to Node MCU
 
OBSTACLE AVOIDING CAR
OBSTACLE AVOIDING CAROBSTACLE AVOIDING CAR
OBSTACLE AVOIDING CAR
 
Obstacle avoiding robot(Lab report)
Obstacle  avoiding  robot(Lab report)Obstacle  avoiding  robot(Lab report)
Obstacle avoiding robot(Lab report)
 
Automatic railway gate control
Automatic railway gate controlAutomatic railway gate control
Automatic railway gate control
 
Successive approximation adc
Successive approximation adcSuccessive approximation adc
Successive approximation adc
 
Carrier and chopper amplifiers
Carrier and chopper amplifiers Carrier and chopper amplifiers
Carrier and chopper amplifiers
 
Feedback amplifiers
Feedback amplifiersFeedback amplifiers
Feedback amplifiers
 

Similar to Ultrasonic sensor

Ultrasonic waves experiment system
Ultrasonic waves experiment systemUltrasonic waves experiment system
Ultrasonic waves experiment system
MidoOoz
 
2014_04_msw_a4_format (2)
2014_04_msw_a4_format (2)2014_04_msw_a4_format (2)
2014_04_msw_a4_format (2)
saransh kumar
 

Similar to Ultrasonic sensor (20)

ULTRASONIC SENSOR.pdf
ULTRASONIC SENSOR.pdfULTRASONIC SENSOR.pdf
ULTRASONIC SENSOR.pdf
 
Ultrasonic_Based_Security_System
Ultrasonic_Based_Security_SystemUltrasonic_Based_Security_System
Ultrasonic_Based_Security_System
 
Ultrasonic
UltrasonicUltrasonic
Ultrasonic
 
Ultrasonictransducer 120914042111-phpapp01
Ultrasonictransducer 120914042111-phpapp01Ultrasonictransducer 120914042111-phpapp01
Ultrasonictransducer 120914042111-phpapp01
 
object detection using ultra sonic sensors
object detection using ultra sonic sensorsobject detection using ultra sonic sensors
object detection using ultra sonic sensors
 
Hc sr04
Hc sr04Hc sr04
Hc sr04
 
ultrasonic sensor.pptx
ultrasonic sensor.pptxultrasonic sensor.pptx
ultrasonic sensor.pptx
 
Hcsr04
Hcsr04Hcsr04
Hcsr04
 
Hcsr04
Hcsr04Hcsr04
Hcsr04
 
IRJET- Distance Measurement with the Help of Ultrasonic Sensor
IRJET-  	  Distance Measurement with the Help of Ultrasonic SensorIRJET-  	  Distance Measurement with the Help of Ultrasonic Sensor
IRJET- Distance Measurement with the Help of Ultrasonic Sensor
 
FinalProject
FinalProjectFinalProject
FinalProject
 
Ultrasonic waves experiment system
Ultrasonic waves experiment systemUltrasonic waves experiment system
Ultrasonic waves experiment system
 
Design of Microcontroller Based Multi-Frequency Ultrasonic Pulser Receiver
Design of Microcontroller Based Multi-Frequency Ultrasonic Pulser ReceiverDesign of Microcontroller Based Multi-Frequency Ultrasonic Pulser Receiver
Design of Microcontroller Based Multi-Frequency Ultrasonic Pulser Receiver
 
Arduino-with-Ultrasonic-sensor.pdf
Arduino-with-Ultrasonic-sensor.pdfArduino-with-Ultrasonic-sensor.pdf
Arduino-with-Ultrasonic-sensor.pdf
 
SONAR
SONARSONAR
SONAR
 
A report on ultrasonic distance measurement
A report on ultrasonic distance measurementA report on ultrasonic distance measurement
A report on ultrasonic distance measurement
 
2014_04_msw_a4_format (2)
2014_04_msw_a4_format (2)2014_04_msw_a4_format (2)
2014_04_msw_a4_format (2)
 
Ultrsonic sensor_Arduino_DRKG.pptx
Ultrsonic sensor_Arduino_DRKG.pptxUltrsonic sensor_Arduino_DRKG.pptx
Ultrsonic sensor_Arduino_DRKG.pptx
 
ultrasonic sensor.pptx
ultrasonic sensor.pptxultrasonic sensor.pptx
ultrasonic sensor.pptx
 
SENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATIONSENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATION
 

Recently uploaded

"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptx
hublikarsn
 

Recently uploaded (20)

S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Path loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata ModelPath loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata Model
 
fitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptfitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .ppt
 
Memory Interfacing of 8086 with DMA 8257
Memory Interfacing of 8086 with DMA 8257Memory Interfacing of 8086 with DMA 8257
Memory Interfacing of 8086 with DMA 8257
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)
 
Signal Processing and Linear System Analysis
Signal Processing and Linear System AnalysisSignal Processing and Linear System Analysis
Signal Processing and Linear System Analysis
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Post office management system project ..pdf
Post office management system project ..pdfPost office management system project ..pdf
Post office management system project ..pdf
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptx
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 

Ultrasonic sensor

  • 1. ULTRASONIC SENSOR An ultrasonic sensor is an instrument that measures the distance to an object using ultrasonic sound waves. An ultrasonic sensor uses a transducer to send and receive ultrasonic pulses that relay back information about an object’s proximity. High-frequency sound waves reflect from boundaries to produce distinct echo patterns. Presented by : ◦ Maria Vannesa Belenario ◦ Waad Jamal Almuqalbi ◦ Jeran Rai
  • 2. LAWS OF PHYSICS OF ULTRASONIC WAVES Sound waves are having specific frequencies or number of oscillations per second. Humans can detect sounds in a frequency range from about 20Hz to 20 KHz. However the frequency range normally employed in ultrasonic detection is 100 KHz to 50MHz. The velocity of ultrasound at a particular time and temperature is constant in a medium.
  • 3. WORKING PRINCIPLE When an electrical pulse of high voltage is applied to the ultrasonic transducer it vibrates across a specific spectrum of frequencies and generates a burst of sound waves. Whenever any obstacle comes ahead of the ultrasonic sensor the sound waves will reflect back in the form of echo and generates an electric pulse. It calculates the time taken between sending sound waves and receiving echo. The echo patterns will be compared with the patterns of sound waves to determine detected signal’s condition.
  • 5. HC-SR04 ULTRASONIC SENSOR As shown in picture, the HC-SR04 Ultrasonic sensor is a 4 pin module, whose pin names are Vcc, Trigger, Echo and Ground respectively. This sensor is a very popular sensor used in many applications where measuring distance or sensing objects are required. The module has two eyes like projects in the front which forms the Ultrasonic transmitter and Receiver.
  • 6. HC-SR04 Pin Number Pin Name Description 1 Vcc The Vcc pin powers the sensor, typically with +5V 2 Trigger Trigger pin is an Input pin. This pin has to be kept high for 10µs to initialize measurement by sending Ultrasonic wave. 3 Echo Echo pin is an Output pin. This pin goes high for a period of time which will be equal to the time taken for the Ultrasonic wave to return back to the sensor. 4 Ground This pin is connected to the Ground of the system.
  • 7. HC-SR04 CHARACTERISTICS ◦ Supply voltage: 5V (DC). ◦ Supply current: 15mA. ◦ Modulation frequency: 40Hz. ◦ Output: 0 – 5V (Output high when obstacle detected in range). ◦ Beam Angle: Max 15 degree. ◦ Theoretical measuring Distance: 2cm – 400cm. ◦ Accuracy: 0.3cm.
  • 8. HC-SR04 OPERATION ◦ The Ultrasonic transmitter transmits an ultrasonic wave, this wave travels in air and when it gets objected by any material it gets reflected back toward the sensor this reflected wave is observed by the Ultrasonic receiver module as shown in the picture below
  • 9. HC-SR04 OPERATION Power the Sensor using a regulated +5V through the Vcc ad Ground pins of the sensor. The current consumed by the sensor is less than 15mA and hence can be directly powered by the on board 5V pins (If available). The Trigger and the Echo pins are both I/O pins and hence they can be connected to I/O pins of the microcontroller. To start the measurement, the trigger pin has to be made high for 10uS and then turned off. This action will trigger an ultrasonic wave at frequency of 40Hz from the transmitter and the receiver will wait for the wave to return.
  • 10. HC-SR04 OPERATION Once the wave is returned after it getting reflected by any object the Echo pin goes high for a particular amount of time which will be equal to the time taken for the wave to return back to the sensor. The amount of time during which the Echo pin stays high is measured by the MCU/MPU as it gives the information about the time taken for the wave to return back to the Sensor. Using this information the distance is measured as explained in the above head. HC-SR04 is commonly used with both microcontroller and microprocessor platforms like Arduino, ARM, PIC, Raspberry Pie etc
  • 11. SIMPLE ARDUINO C PROGRAMMING FOR DISTANCE MEASUREMENT 1. // defines pins numbers 2. const int trigPin = 12; 3. const int echoPin = 11; 4. // defines variables 5. long duration; 6. int distance; 7. void setup() { 8. pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output 9. pinMode(echoPin, INPUT); // Sets the echoPin as an Input 10. Serial.begin(9600); // Starts the serial communication 11. }
  • 12. SIMPLE ARDUINO C PROGRAMMING FOR DISTANCE MEASUREMENT 12. void loop() { 13. // Clears the trigPin 14. digitalWrite(trigPin, LOW); 15. delayMicroseconds(2); 16. // Sets the trigPin on HIGH state for 10 micro seconds 17. digitalWrite(trigPin, HIGH); 18. delayMicroseconds(10); 19. digitalWrite(trigPin, LOW); 20. // Reads the echoPin, returns the sound wave travel time in microseconds 21. duration = pulseIn(echoPin, HIGH);
  • 13. SIMPLE ARDUINO C PROGRAMMING FOR DISTANCE MEASUREMENT 22. // Calculating the distance 23. distance= (duration*0.034)/2; //Speed of sound in air at standard condition = 0.034cm/µs 24. // Prints the distance on the Serial Monitor 25. Serial.print("Distance: "); 26. Serial.println(distance); Note : In line 23, the numerator is divided by 2 to account for the fact that the ultrasonic wave travels double the distance from transmitter to object and again bounce back to receiver striking object.
  • 14. INTERFACING ULTRASONIC SENSOR WITH ARDUINO MARIA&JERAN
  • 15. APPLICATION OF ULTRASONIC SENSOR  Proximity Detection.  Liquid Level Sensing.  Obstacle Detection.  Ranging/Distance Measurement.  Anti Collision system.  Contouring or Profiling.  Presence Detection.  Product Counting and Sorting.  Anti Intrusion System.  Medical Imaging. ◦
  • 16. ADVANTGES OF ULTRASONIC SENSOR  Its small size makes it easy to integrate into projects.  Ultrasonics can easily integrate with any type of controller.  Its high frequency, sensitivity, and power make it easy to detect objects.  It have greater accuracy than many other methods at measuring thickness and depth of a parallel surface.  Ultrasonics are easy to use and not dangerous during operation.  An inexpensive option.
  • 17. “Somewhere in me is a curiosity sensor. I want to know what's over the next hill. You know, people can live longer without food than without information. Without information, you'd go crazy.”