SlideShare a Scribd company logo
1 of 8
Interfacing Ultrasonic
Rangefinder with AVR MCUs
Prepared by:
Kushagra Ganeriwal (130010111009)
Kamlesh Desai (130010111006)
Sweetu Ratnani (130010111048)
Guided by:
Prof. AsifIqbal Thakor
IR and Their Drawbacks
• Obstacle detecting sensors are one of the most basic type of sensors that electronic hobbyists
use. There are several methods to make cheap obstacle sensors. These simple sensors are made
using a IR Rx/Tx pair or Normal LED and LDR pair.
• These sensor may be useful for simple requirement but they have following drawbacks :-
1) Can’t say anything about the real distance of obstacle.
2) Give different result for different coloured obstacles.
3) Need calibration (like setting up a variable resistor).
• To solve these problems we have IR Range Finder Module but they have small range.
1) Sharp GP2D12 Distance Measurement Sensor has a maximum range of 80cm
2) Sharp GP2D120 Distance Measurement Sensor has a maximum range of 30cm only.
Why Ultrasonic ?
• An Ultrasonic Range Finder Module uses ultrasonic waves (inaudible to humans) to measure distance.
These module consist of an Ultrasonic Transmitter (Tx) that emits the ultrasonic wave, the waves after
striking any obstacle bounces back and reach the Ultrasonic Receiver (Rx).
• By measuring the time it take for the whole process to complete and using simple arithmetic we can
measure the distance to the obstacle. The Ultrasonic Range Finder Modules has a wide operating range
of 1cm to 400cm with an accuracy of 1cm. These specifications makes it ideal for distance
measurement application.
• These can be used for :-
1) Contact less measurement of liquid level in tanks (even 4m deep tank!)
2) Radars for robot.
3) Obstacle sensing in Robotics.
4) Speed check in roads.
Handheld units that can be pointed on vehicles to measure their speed.
Fixed unit installed in check booths that can click pictures of over speeding vehicles
Characteristics and Advantages
• The reason for using ultrasonic wave are:-
• The speed of Ultra Sonic waves is 343m/s which is not too fast for MCUs to measure accurately.
Compare this with speed of electromagnetic waves (like light or radio waves) which is
30,00,00,000 m/s! So it takes only 20ns (nano second) to go and bounce back from an obstacle
which is 3m away! An AVR running at 16MIPS(maximum for most AVRs) takes 62ns to execute a
single instruction.
• Ultrasonic waves travels more narrow, like a beam than normal sound wave.
• This property helps the sensor detect the obstacles that are exactly in line with it only.
• The sensors can be rotated with steppers or servo motors to get a "image" of obstacle in the
surrounding area (like a radar).
Ultrasonic Range Finder Interface.
• Modules are designed to be used for microcontroller based applications hence optimized for it.
The interface is a single pin called SIG (signal). The MCU is connected to the Ultrasonic Range
Finder Module by a single i/o line. The steps required to read distance are :-
• Microcontroller make the i/o line output. The i/o line is made low Wait for 10uS
• Make the i/o line high.  Wait for 15uS Make the i/o line low Wait for 20uS Now make it
input 
• Module will keep it low. Wait till it is low, as soon as it becomes high start the timer. After that
wait till it is high, as soon as it becomes low copy the timer value and stop the timer.
• Finally we have the time required for the wave to go hit the obstacle and come back to the
module.
If the pulse width is in microseconds, the distance can be calculated by the following formula :-
• Distance in cm = Pulse width/58
• Distance in inches = Pulse width/148
Hardware for Ultrasonic Range Finder
• The test circuit will be built around ATmega32 microcontroller.
• The output device will be a 16×2 lcd module.
• The circuit will have the following :-
1) ATmega32 MCU
2) 16MHz Crystal
3) Reset Circuit.
4) 5v Power Supply Circuit.
5) ISP (For programming)
6) LCD Module.
7) LCD Module Contrast adjust pot.
SCHEMATIC
Interfacing ultrasonic rangefinder with avr mc us

More Related Content

What's hot

Ultrasonic sensor
Ultrasonic sensorUltrasonic sensor
Ultrasonic sensorAdarsh Raj
 
Radar System with Arduino Processor
Radar System with Arduino ProcessorRadar System with Arduino Processor
Radar System with Arduino ProcessorMelek Sönmez
 
Ultrasonic based distance measurement system
Ultrasonic based distance measurement systemUltrasonic based distance measurement system
Ultrasonic based distance measurement systemMrinal Sharma
 
ULTRASONIC SENSOR DISTANCE CALCULATE
ULTRASONIC SENSOR DISTANCE CALCULATEULTRASONIC SENSOR DISTANCE CALCULATE
ULTRASONIC SENSOR DISTANCE CALCULATETechno Electronics
 
Radar system using arduino
Radar system using arduinoRadar system using arduino
Radar system using arduinoFaisal Kabir
 
Personal radar ppt 1
Personal radar ppt 1Personal radar ppt 1
Personal radar ppt 1Ronak Vyas
 
Obstacle detection using ultra sonic sensor
Obstacle detection using ultra sonic sensorObstacle detection using ultra sonic sensor
Obstacle detection using ultra sonic sensorsatyashanker
 
HC-SR04 Ultrasonic sensor with Arduino
HC-SR04 Ultrasonic sensor with ArduinoHC-SR04 Ultrasonic sensor with Arduino
HC-SR04 Ultrasonic sensor with Arduinoyeokm1
 
B.Tech.Final Year ECE Project Report on Ultrasonic distance measure robot
B.Tech.Final Year ECE Project Report on Ultrasonic distance measure robotB.Tech.Final Year ECE Project Report on Ultrasonic distance measure robot
B.Tech.Final Year ECE Project Report on Ultrasonic distance measure robotSushant Shankar
 
Short Range Radar System using Arduino Uno
Short Range Radar System using Arduino UnoShort Range Radar System using Arduino Uno
Short Range Radar System using Arduino UnoIRJET Journal
 
object detection using ultra sonic sensors
object detection using ultra sonic sensorsobject detection using ultra sonic sensors
object detection using ultra sonic sensorsvijay kumar
 
A Modified Radar With Missile Tracking and Automatic Destruction
A Modified Radar With Missile Tracking and  Automatic DestructionA Modified Radar With Missile Tracking and  Automatic Destruction
A Modified Radar With Missile Tracking and Automatic Destructionsanjay kushwaha
 
Hc sr04 users-manual
Hc sr04 users-manualHc sr04 users-manual
Hc sr04 users-manualnguyen nam
 
IRJET- Automatic Luggage Follower
IRJET- Automatic Luggage FollowerIRJET- Automatic Luggage Follower
IRJET- Automatic Luggage FollowerIRJET Journal
 
Project Report Distance measurement system
Project Report Distance measurement systemProject Report Distance measurement system
Project Report Distance measurement systemkurkute1994
 
Ultrasound Sensor
Ultrasound SensorUltrasound Sensor
Ultrasound Sensorklee4vp
 

What's hot (20)

Ultrasonic sensor
Ultrasonic sensorUltrasonic sensor
Ultrasonic sensor
 
ppt
pptppt
ppt
 
Radar System with Arduino Processor
Radar System with Arduino ProcessorRadar System with Arduino Processor
Radar System with Arduino Processor
 
Ultrasonic based distance measurement system
Ultrasonic based distance measurement systemUltrasonic based distance measurement system
Ultrasonic based distance measurement system
 
ULTRASONIC SENSOR DISTANCE CALCULATE
ULTRASONIC SENSOR DISTANCE CALCULATEULTRASONIC SENSOR DISTANCE CALCULATE
ULTRASONIC SENSOR DISTANCE CALCULATE
 
Radar system using arduino
Radar system using arduinoRadar system using arduino
Radar system using arduino
 
Personal radar ppt 1
Personal radar ppt 1Personal radar ppt 1
Personal radar ppt 1
 
4th-Yr-PROJECT-REPORT
4th-Yr-PROJECT-REPORT4th-Yr-PROJECT-REPORT
4th-Yr-PROJECT-REPORT
 
Obstacle detection using ultra sonic sensor
Obstacle detection using ultra sonic sensorObstacle detection using ultra sonic sensor
Obstacle detection using ultra sonic sensor
 
Final year Engineering project
Final year Engineering project Final year Engineering project
Final year Engineering project
 
HC-SR04 Ultrasonic sensor with Arduino
HC-SR04 Ultrasonic sensor with ArduinoHC-SR04 Ultrasonic sensor with Arduino
HC-SR04 Ultrasonic sensor with Arduino
 
Ultrasonic range finder
Ultrasonic range finderUltrasonic range finder
Ultrasonic range finder
 
B.Tech.Final Year ECE Project Report on Ultrasonic distance measure robot
B.Tech.Final Year ECE Project Report on Ultrasonic distance measure robotB.Tech.Final Year ECE Project Report on Ultrasonic distance measure robot
B.Tech.Final Year ECE Project Report on Ultrasonic distance measure robot
 
Short Range Radar System using Arduino Uno
Short Range Radar System using Arduino UnoShort Range Radar System using Arduino Uno
Short Range Radar System using Arduino Uno
 
object detection using ultra sonic sensors
object detection using ultra sonic sensorsobject detection using ultra sonic sensors
object detection using ultra sonic sensors
 
A Modified Radar With Missile Tracking and Automatic Destruction
A Modified Radar With Missile Tracking and  Automatic DestructionA Modified Radar With Missile Tracking and  Automatic Destruction
A Modified Radar With Missile Tracking and Automatic Destruction
 
Hc sr04 users-manual
Hc sr04 users-manualHc sr04 users-manual
Hc sr04 users-manual
 
IRJET- Automatic Luggage Follower
IRJET- Automatic Luggage FollowerIRJET- Automatic Luggage Follower
IRJET- Automatic Luggage Follower
 
Project Report Distance measurement system
Project Report Distance measurement systemProject Report Distance measurement system
Project Report Distance measurement system
 
Ultrasound Sensor
Ultrasound SensorUltrasound Sensor
Ultrasound Sensor
 

Similar to Interfacing ultrasonic rangefinder with avr mc us

Security System Based on Ultrasonic Sensor Technology
Security System Based on Ultrasonic Sensor TechnologySecurity System Based on Ultrasonic Sensor Technology
Security System Based on Ultrasonic Sensor TechnologyIOSR Journals
 
Ultrasonic sensors
Ultrasonic sensorsUltrasonic sensors
Ultrasonic sensorsAnCh24
 
Visually imparied_Arudino.pptx
Visually imparied_Arudino.pptxVisually imparied_Arudino.pptx
Visually imparied_Arudino.pptxIsi India
 
IRJET- Iot Based Route Assistance for Visually Challenged
IRJET- Iot Based Route Assistance for Visually ChallengedIRJET- Iot Based Route Assistance for Visually Challenged
IRJET- Iot Based Route Assistance for Visually ChallengedIRJET Journal
 
Physical prototyping lab5-complex_sensors
Physical prototyping lab5-complex_sensorsPhysical prototyping lab5-complex_sensors
Physical prototyping lab5-complex_sensorsTony Olsson.
 
Arduino Blind Aid
Arduino Blind AidArduino Blind Aid
Arduino Blind AidRohithND
 
Radar using ultrasonic sensor and arduino.pptx
Radar using ultrasonic sensor and arduino.pptxRadar using ultrasonic sensor and arduino.pptx
Radar using ultrasonic sensor and arduino.pptxrobel38
 
Impediment detection robot using Arduino
Impediment detection robot using ArduinoImpediment detection robot using Arduino
Impediment detection robot using ArduinoAyush Chhangani
 
Self Obstacle Avoiding Rover
Self Obstacle Avoiding RoverSelf Obstacle Avoiding Rover
Self Obstacle Avoiding RoverEmam Hasan
 
IRJET- Smart Guide Stick For Blind
IRJET- Smart Guide Stick For BlindIRJET- Smart Guide Stick For Blind
IRJET- Smart Guide Stick For BlindIRJET Journal
 
Microcontroller Based Obstacle Detection Device Using Voice Signal for the V...
Microcontroller Based Obstacle Detection Device Using Voice  Signal for the V...Microcontroller Based Obstacle Detection Device Using Voice  Signal for the V...
Microcontroller Based Obstacle Detection Device Using Voice Signal for the V...IJMER
 
Senior Project Student's Presentation on Design of EMG Signal Recording System
Senior Project Student's Presentation on Design of EMG Signal Recording SystemSenior Project Student's Presentation on Design of EMG Signal Recording System
Senior Project Student's Presentation on Design of EMG Signal Recording SystemMd Kafiul Islam
 
Smart walking Stick for blinds
Smart walking Stick for blindsSmart walking Stick for blinds
Smart walking Stick for blindsAmbikaR4
 
Secure Surveillance Using Virtual Intelligent Agent With Dominating
Secure Surveillance Using Virtual Intelligent Agent With DominatingSecure Surveillance Using Virtual Intelligent Agent With Dominating
Secure Surveillance Using Virtual Intelligent Agent With Dominatingsindhuls
 

Similar to Interfacing ultrasonic rangefinder with avr mc us (20)

Security System Based on Ultrasonic Sensor Technology
Security System Based on Ultrasonic Sensor TechnologySecurity System Based on Ultrasonic Sensor Technology
Security System Based on Ultrasonic Sensor Technology
 
Ultrasonic sensors
Ultrasonic sensorsUltrasonic sensors
Ultrasonic sensors
 
Visually imparied_Arudino.pptx
Visually imparied_Arudino.pptxVisually imparied_Arudino.pptx
Visually imparied_Arudino.pptx
 
IRJET- Iot Based Route Assistance for Visually Challenged
IRJET- Iot Based Route Assistance for Visually ChallengedIRJET- Iot Based Route Assistance for Visually Challenged
IRJET- Iot Based Route Assistance for Visually Challenged
 
Physical prototyping lab5-complex_sensors
Physical prototyping lab5-complex_sensorsPhysical prototyping lab5-complex_sensors
Physical prototyping lab5-complex_sensors
 
Ultrasonic_Based_Security_System
Ultrasonic_Based_Security_SystemUltrasonic_Based_Security_System
Ultrasonic_Based_Security_System
 
Mb1003 hrlv max sonar-ez0 ultrasonic rangefinder
Mb1003 hrlv max sonar-ez0 ultrasonic rangefinder Mb1003 hrlv max sonar-ez0 ultrasonic rangefinder
Mb1003 hrlv max sonar-ez0 ultrasonic rangefinder
 
Arduino Blind Aid
Arduino Blind AidArduino Blind Aid
Arduino Blind Aid
 
Sensor technology
Sensor technologySensor technology
Sensor technology
 
Radar using ultrasonic sensor and arduino.pptx
Radar using ultrasonic sensor and arduino.pptxRadar using ultrasonic sensor and arduino.pptx
Radar using ultrasonic sensor and arduino.pptx
 
Radar
RadarRadar
Radar
 
Impediment detection robot using Arduino
Impediment detection robot using ArduinoImpediment detection robot using Arduino
Impediment detection robot using Arduino
 
Self Obstacle Avoiding Rover
Self Obstacle Avoiding RoverSelf Obstacle Avoiding Rover
Self Obstacle Avoiding Rover
 
IRJET- Smart Guide Stick For Blind
IRJET- Smart Guide Stick For BlindIRJET- Smart Guide Stick For Blind
IRJET- Smart Guide Stick For Blind
 
Microcontroller Based Obstacle Detection Device Using Voice Signal for the V...
Microcontroller Based Obstacle Detection Device Using Voice  Signal for the V...Microcontroller Based Obstacle Detection Device Using Voice  Signal for the V...
Microcontroller Based Obstacle Detection Device Using Voice Signal for the V...
 
Senior Project Student's Presentation on Design of EMG Signal Recording System
Senior Project Student's Presentation on Design of EMG Signal Recording SystemSenior Project Student's Presentation on Design of EMG Signal Recording System
Senior Project Student's Presentation on Design of EMG Signal Recording System
 
Smart walking Stick for blinds
Smart walking Stick for blindsSmart walking Stick for blinds
Smart walking Stick for blinds
 
ULTRASONIC PERIPATETIC SCANNER FOR AUTONOMOUS TEST BENCH USING RASPBERRY Pi
ULTRASONIC PERIPATETIC SCANNER FOR AUTONOMOUS TEST BENCH USING RASPBERRY PiULTRASONIC PERIPATETIC SCANNER FOR AUTONOMOUS TEST BENCH USING RASPBERRY Pi
ULTRASONIC PERIPATETIC SCANNER FOR AUTONOMOUS TEST BENCH USING RASPBERRY Pi
 
Secure Surveillance Using Virtual Intelligent Agent With Dominating
Secure Surveillance Using Virtual Intelligent Agent With DominatingSecure Surveillance Using Virtual Intelligent Agent With Dominating
Secure Surveillance Using Virtual Intelligent Agent With Dominating
 
B010320711
B010320711B010320711
B010320711
 

More from Kushagra Ganeriwal (12)

Fm generation
Fm generationFm generation
Fm generation
 
7 segment interface with avr microcontroller
7 segment interface with avr microcontroller7 segment interface with avr microcontroller
7 segment interface with avr microcontroller
 
Mci ppt
Mci pptMci ppt
Mci ppt
 
History of computer crime
History of computer crimeHistory of computer crime
History of computer crime
 
Conductors
ConductorsConductors
Conductors
 
Curl
CurlCurl
Curl
 
Coulomb's law and its applications
Coulomb's law and its applicationsCoulomb's law and its applications
Coulomb's law and its applications
 
Wireshark
WiresharkWireshark
Wireshark
 
Noise
NoiseNoise
Noise
 
electronic mixer
electronic mixerelectronic mixer
electronic mixer
 
auditorium
auditoriumauditorium
auditorium
 
Prac3 LOUDSPEAKER
Prac3 LOUDSPEAKERPrac3 LOUDSPEAKER
Prac3 LOUDSPEAKER
 

Recently uploaded

Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 

Recently uploaded (20)

DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 

Interfacing ultrasonic rangefinder with avr mc us

  • 1. Interfacing Ultrasonic Rangefinder with AVR MCUs Prepared by: Kushagra Ganeriwal (130010111009) Kamlesh Desai (130010111006) Sweetu Ratnani (130010111048) Guided by: Prof. AsifIqbal Thakor
  • 2. IR and Their Drawbacks • Obstacle detecting sensors are one of the most basic type of sensors that electronic hobbyists use. There are several methods to make cheap obstacle sensors. These simple sensors are made using a IR Rx/Tx pair or Normal LED and LDR pair. • These sensor may be useful for simple requirement but they have following drawbacks :- 1) Can’t say anything about the real distance of obstacle. 2) Give different result for different coloured obstacles. 3) Need calibration (like setting up a variable resistor). • To solve these problems we have IR Range Finder Module but they have small range. 1) Sharp GP2D12 Distance Measurement Sensor has a maximum range of 80cm 2) Sharp GP2D120 Distance Measurement Sensor has a maximum range of 30cm only.
  • 3. Why Ultrasonic ? • An Ultrasonic Range Finder Module uses ultrasonic waves (inaudible to humans) to measure distance. These module consist of an Ultrasonic Transmitter (Tx) that emits the ultrasonic wave, the waves after striking any obstacle bounces back and reach the Ultrasonic Receiver (Rx). • By measuring the time it take for the whole process to complete and using simple arithmetic we can measure the distance to the obstacle. The Ultrasonic Range Finder Modules has a wide operating range of 1cm to 400cm with an accuracy of 1cm. These specifications makes it ideal for distance measurement application. • These can be used for :- 1) Contact less measurement of liquid level in tanks (even 4m deep tank!) 2) Radars for robot. 3) Obstacle sensing in Robotics. 4) Speed check in roads. Handheld units that can be pointed on vehicles to measure their speed. Fixed unit installed in check booths that can click pictures of over speeding vehicles
  • 4. Characteristics and Advantages • The reason for using ultrasonic wave are:- • The speed of Ultra Sonic waves is 343m/s which is not too fast for MCUs to measure accurately. Compare this with speed of electromagnetic waves (like light or radio waves) which is 30,00,00,000 m/s! So it takes only 20ns (nano second) to go and bounce back from an obstacle which is 3m away! An AVR running at 16MIPS(maximum for most AVRs) takes 62ns to execute a single instruction. • Ultrasonic waves travels more narrow, like a beam than normal sound wave. • This property helps the sensor detect the obstacles that are exactly in line with it only. • The sensors can be rotated with steppers or servo motors to get a "image" of obstacle in the surrounding area (like a radar).
  • 5. Ultrasonic Range Finder Interface. • Modules are designed to be used for microcontroller based applications hence optimized for it. The interface is a single pin called SIG (signal). The MCU is connected to the Ultrasonic Range Finder Module by a single i/o line. The steps required to read distance are :- • Microcontroller make the i/o line output. The i/o line is made low Wait for 10uS • Make the i/o line high.  Wait for 15uS Make the i/o line low Wait for 20uS Now make it input  • Module will keep it low. Wait till it is low, as soon as it becomes high start the timer. After that wait till it is high, as soon as it becomes low copy the timer value and stop the timer. • Finally we have the time required for the wave to go hit the obstacle and come back to the module. If the pulse width is in microseconds, the distance can be calculated by the following formula :- • Distance in cm = Pulse width/58 • Distance in inches = Pulse width/148
  • 6. Hardware for Ultrasonic Range Finder • The test circuit will be built around ATmega32 microcontroller. • The output device will be a 16×2 lcd module. • The circuit will have the following :- 1) ATmega32 MCU 2) 16MHz Crystal 3) Reset Circuit. 4) 5v Power Supply Circuit. 5) ISP (For programming) 6) LCD Module. 7) LCD Module Contrast adjust pot.