SlideShare a Scribd company logo
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 : 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

Interrupt in real time system
Interrupt in real time system Interrupt in real time system
Interrupt in real time system
ali jawad
 
2 Robot Actuators and drive systems.ppt
2 Robot Actuators and drive systems.ppt2 Robot Actuators and drive systems.ppt
2 Robot Actuators and drive systems.ppt
MUST
 
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
Aswin KP
 
Noise in bio electric signals
Noise in bio electric signalsNoise in bio electric signals
Noise in bio electric signals
SLIET
 
Fire sensing robo
Fire sensing roboFire sensing robo
Fire sensing robo
avinash yada
 
DHT11 Digital Temperature and Humidity Sensor
DHT11 Digital Temperature and Humidity SensorDHT11 Digital Temperature and Humidity Sensor
DHT11 Digital Temperature and Humidity Sensor
Raghav Shetty
 
Line follower robot
Line follower robotLine follower robot
Line follower robot
Rohit Dadoriya
 
Level measurement
Level measurementLevel measurement
Level measurement
Srinivasa Rao
 
Static characteristics - Mechanical Measurements
Static characteristics - Mechanical MeasurementsStatic characteristics - Mechanical Measurements
Static characteristics - Mechanical Measurements
Ameya Nijasure
 
Linear Variable Differential Transducer(LVDT)
Linear Variable Differential Transducer(LVDT)Linear Variable Differential Transducer(LVDT)
Linear Variable Differential Transducer(LVDT)
Epuri Chiranjeevi
 
Rs232 485 fundamental
Rs232 485 fundamentalRs232 485 fundamental
Rs232 485 fundamental
rounak077
 
Distance Measurement by Ultrasonic Sensor
Distance Measurement by Ultrasonic SensorDistance Measurement by Ultrasonic Sensor
Distance Measurement by Ultrasonic Sensor
Edgefxkits & Solutions
 
Rs232 protocal
Rs232 protocalRs232 protocal
Project Report Distance measurement system
Project Report Distance measurement systemProject Report Distance measurement system
Project Report Distance measurement system
kurkute1994
 
Fingerprint base security system
Fingerprint base security systemFingerprint base security system
Fingerprint base security system
praful borad
 
Introduction to msp430
Introduction to msp430Introduction to msp430
Introduction to msp430
Harsha herle
 
Industrial robot
Industrial robotIndustrial robot
Industrial robot
Jatin Garg
 
Line follower robot
Line follower robotLine follower robot
Line follower robot
Priya Hada
 
Obstacle Avoidance Robot
Obstacle Avoidance RobotObstacle Avoidance Robot
Obstacle Avoidance Robot
Yash Sati
 
fire fighting robot
fire fighting robotfire fighting robot
fire fighting robot
ranjitha mudhiraj
 

What's hot (20)

Interrupt in real time system
Interrupt in real time system Interrupt in real time system
Interrupt in real time system
 
2 Robot Actuators and drive systems.ppt
2 Robot Actuators and drive systems.ppt2 Robot Actuators and drive systems.ppt
2 Robot Actuators and drive systems.ppt
 
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
 
Noise in bio electric signals
Noise in bio electric signalsNoise in bio electric signals
Noise in bio electric signals
 
Fire sensing robo
Fire sensing roboFire sensing robo
Fire sensing robo
 
DHT11 Digital Temperature and Humidity Sensor
DHT11 Digital Temperature and Humidity SensorDHT11 Digital Temperature and Humidity Sensor
DHT11 Digital Temperature and Humidity Sensor
 
Line follower robot
Line follower robotLine follower robot
Line follower robot
 
Level measurement
Level measurementLevel measurement
Level measurement
 
Static characteristics - Mechanical Measurements
Static characteristics - Mechanical MeasurementsStatic characteristics - Mechanical Measurements
Static characteristics - Mechanical Measurements
 
Linear Variable Differential Transducer(LVDT)
Linear Variable Differential Transducer(LVDT)Linear Variable Differential Transducer(LVDT)
Linear Variable Differential Transducer(LVDT)
 
Rs232 485 fundamental
Rs232 485 fundamentalRs232 485 fundamental
Rs232 485 fundamental
 
Distance Measurement by Ultrasonic Sensor
Distance Measurement by Ultrasonic SensorDistance Measurement by Ultrasonic Sensor
Distance Measurement by Ultrasonic Sensor
 
Rs232 protocal
Rs232 protocalRs232 protocal
Rs232 protocal
 
Project Report Distance measurement system
Project Report Distance measurement systemProject Report Distance measurement system
Project Report Distance measurement system
 
Fingerprint base security system
Fingerprint base security systemFingerprint base security system
Fingerprint base security system
 
Introduction to msp430
Introduction to msp430Introduction to msp430
Introduction to msp430
 
Industrial robot
Industrial robotIndustrial robot
Industrial robot
 
Line follower robot
Line follower robotLine follower robot
Line follower robot
 
Obstacle Avoidance Robot
Obstacle Avoidance RobotObstacle Avoidance Robot
Obstacle Avoidance Robot
 
fire fighting robot
fire fighting robotfire fighting robot
fire fighting robot
 

Similar to ULTRASONIC SENSOR.pdf

Ultrasonic_Based_Security_System
Ultrasonic_Based_Security_SystemUltrasonic_Based_Security_System
Ultrasonic_Based_Security_System
Syed Mohd Mehdi Rizvi
 
Ultrasonic
UltrasonicUltrasonic
Ultrasonic
Atiq Shaikh
 
Ultrasonictransducer 120914042111-phpapp01
Ultrasonictransducer 120914042111-phpapp01Ultrasonictransducer 120914042111-phpapp01
Ultrasonictransducer 120914042111-phpapp01
Ahmad Masood Khokhar
 
ultrasonic sensor.pptx
ultrasonic sensor.pptxultrasonic sensor.pptx
ultrasonic sensor.pptx
AiganymNurbek
 
object detection using ultra sonic sensors
object detection using ultra sonic sensorsobject detection using ultra sonic sensors
object detection using ultra sonic sensors
vijay kumar
 
Hc sr04
Hc sr04Hc sr04
Obstacle detection using ultra sonic sensor
Obstacle detection using ultra sonic sensorObstacle detection using ultra sonic sensor
Obstacle detection using ultra sonic sensor
satyashanker
 
Hcsr04
Hcsr04Hcsr04
Hcsr04
budi santoso
 
Hcsr04
Hcsr04Hcsr04
FinalProject
FinalProjectFinalProject
FinalProject
Lauren Capelluto
 
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
IRJET Journal
 
Ultrasonic waves experiment system
Ultrasonic waves experiment systemUltrasonic waves experiment system
Ultrasonic waves experiment system
MidoOoz
 
Arduino-with-Ultrasonic-sensor.pdf
Arduino-with-Ultrasonic-sensor.pdfArduino-with-Ultrasonic-sensor.pdf
Arduino-with-Ultrasonic-sensor.pdf
AshleyEvonneSerna
 
Final year Engineering project
Final year Engineering project Final year Engineering project
Final year Engineering project
VaibhavShukla740413
 
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
IJERA Editor
 
A report on ultrasonic distance measurement
A report on ultrasonic distance measurementA report on ultrasonic distance measurement
A report on ultrasonic distance measurement
itfakash
 
SONAR
SONARSONAR
ultrasonic sensor.pptx
ultrasonic sensor.pptxultrasonic sensor.pptx
ultrasonic sensor.pptx
anupsharma117511
 
Ultrsonic sensor_Arduino_DRKG.pptx
Ultrsonic sensor_Arduino_DRKG.pptxUltrsonic sensor_Arduino_DRKG.pptx
Ultrsonic sensor_Arduino_DRKG.pptx
KesavanGopal1
 
SENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATIONSENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATION
soma saikiran
 

Similar to ULTRASONIC SENSOR.pdf (20)

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
 
ultrasonic sensor.pptx
ultrasonic sensor.pptxultrasonic sensor.pptx
ultrasonic sensor.pptx
 
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
 
Obstacle detection using ultra sonic sensor
Obstacle detection using ultra sonic sensorObstacle detection using ultra sonic sensor
Obstacle detection using ultra sonic sensor
 
Hcsr04
Hcsr04Hcsr04
Hcsr04
 
Hcsr04
Hcsr04Hcsr04
Hcsr04
 
FinalProject
FinalProjectFinalProject
FinalProject
 
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
 
Ultrasonic waves experiment system
Ultrasonic waves experiment systemUltrasonic waves experiment system
Ultrasonic waves experiment system
 
Arduino-with-Ultrasonic-sensor.pdf
Arduino-with-Ultrasonic-sensor.pdfArduino-with-Ultrasonic-sensor.pdf
Arduino-with-Ultrasonic-sensor.pdf
 
Final year Engineering project
Final year Engineering project Final year Engineering project
Final year Engineering project
 
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
 
A report on ultrasonic distance measurement
A report on ultrasonic distance measurementA report on ultrasonic distance measurement
A report on ultrasonic distance measurement
 
SONAR
SONARSONAR
SONAR
 
ultrasonic sensor.pptx
ultrasonic sensor.pptxultrasonic sensor.pptx
ultrasonic sensor.pptx
 
Ultrsonic sensor_Arduino_DRKG.pptx
Ultrsonic sensor_Arduino_DRKG.pptxUltrsonic sensor_Arduino_DRKG.pptx
Ultrsonic sensor_Arduino_DRKG.pptx
 
SENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATIONSENSORS AND BLUETOOTH COMMUNICATION
SENSORS AND BLUETOOTH COMMUNICATION
 

Recently uploaded

Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
mahammadsalmanmech
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
RadiNasr
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
IJNSA Journal
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
Divyam548318
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
gerogepatton
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
nooriasukmaningtyas
 
Wearable antenna for antenna applications
Wearable antenna for antenna applicationsWearable antenna for antenna applications
Wearable antenna for antenna applications
Madhumitha Jayaram
 
Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
mamunhossenbd75
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
awadeshbabu
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
Mukeshwaran Balu
 

Recently uploaded (20)

Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
 
Wearable antenna for antenna applications
Wearable antenna for antenna applicationsWearable antenna for antenna applications
Wearable antenna for antenna applications
 
Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
 

ULTRASONIC SENSOR.pdf

  • 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 : 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.”