SlideShare a Scribd company logo
HOW TO INTERFACE ARDUINO WITH AN
ULTRASONIC SENSOR?
Source:
HCSR04 ULTRASONIC SENSOR PINOUT
Source:
The Ultrasonic Sensor has 4 pins:
- VCC, Trig, Echo and GND. The
Pinout explanation is given as
below
• HC-SR04 Ultrasonic Sensor
Pinout
• VCC - The supply pin of the HC-
SR04 Module.
• GND - This is the Ground pin of
the module
• Trig - This is the trigger pin of
the HC-SR04 module
• Echo - This is the echo pin of
the HC-SR04 sensor module.
WORKING PRINCIPLES OF
ULTRASONIC SENSOR
Source:
The ultrasonic sensor operates by emitting high-frequency sound waves and detecting their
reflections. It comprises a transducer, which both emits and receives ultrasonic waves,
along with signal processing circuitry to measure the time taken for the waves to travel and
return.
CIRCUIT CONNECTION OF
ULTRASONIC SENSOR
Source:
Connect the ultrasonic sensor's trig and echo pins to Arduino pins 4 and 5, respectively.
This configuration allows the Arduino to trigger the sensor and measure the time taken
for the echo pulse to return.
ULTRASONIC SENSOR AND LCD
DISPLAY
Source:
Arduino Code:
Initialize serial
communication, set up
trigger and echo pins,
measure echo pulse
duration, calculate
distance based on
sound speed, and
display on Serial
Monitor.
LCD Display Addition:
Connect I2C LCD
display to Arduino using
SDA, SCL, VCC, and
GND pins for real-time
distance display
alongside serial output.
WORKING OF ULTRASONIC
SENSOR WITH ARDUINO
Source:
THANK YOU!!
Source:
https://circuitdigest.com/microcontroller-projects/interface-arduino-with-
ultrasonic-sensor
Full Tutorial:

More Related Content

Similar to Discover How to Interface Ultrasonic Sensors with Arduino for Distance Measurement. (20)

HC-SR04 Ultrasonic sensor with Arduino
HC-SR04 Ultrasonic sensor with ArduinoHC-SR04 Ultrasonic sensor with Arduino
HC-SR04 Ultrasonic sensor with Arduino
yeokm1
 
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
 
ultrasonic sensor.pptx
ultrasonic sensor.pptxultrasonic sensor.pptx
ultrasonic sensor.pptx
anupsharma117511
 
Physics project.pptx
Physics project.pptxPhysics project.pptx
Physics project.pptx
CarryMinati95
 
81485Scanned.pptx
81485Scanned.pptx81485Scanned.pptx
81485Scanned.pptx
RudranshMittal
 
Arduino Ultrasonic Sensor
Arduino Ultrasonic SensorArduino Ultrasonic Sensor
Arduino Ultrasonic Sensor
ssuser25b6a51
 
Final year Engineering project
Final year Engineering project Final year Engineering project
Final year Engineering project
VaibhavShukla740413
 
avoiding accidents on ghat roads and u turns by using IOT
avoiding accidents on ghat roads and u turns by using IOTavoiding accidents on ghat roads and u turns by using IOT
avoiding accidents on ghat roads and u turns by using IOT
RaghuSmart3
 
Ultrasonic security system by arduino
Ultrasonic security system by arduinoUltrasonic security system by arduino
Ultrasonic security system by arduino
FarzanaMoli1
 
Copy-of-Building-a-Basic-Radar-System-with-Arduino-and-Ultrasonic-Sensor.pptx
Copy-of-Building-a-Basic-Radar-System-with-Arduino-and-Ultrasonic-Sensor.pptxCopy-of-Building-a-Basic-Radar-System-with-Arduino-and-Ultrasonic-Sensor.pptx
Copy-of-Building-a-Basic-Radar-System-with-Arduino-and-Ultrasonic-Sensor.pptx
DikshaSingh123383
 
Radar
RadarRadar
Radar
Praveen K
 
Obstacle detection using ultra sonic sensor
Obstacle detection using ultra sonic sensorObstacle detection using ultra sonic sensor
Obstacle detection using ultra sonic sensor
satyashanker
 
PPT Missile Radar System introduction.pptx
PPT Missile Radar System introduction.pptxPPT Missile Radar System introduction.pptx
PPT Missile Radar System introduction.pptx
dudddy736
 
Vex-Ultrasonic-Tutorial-new (1).pptx
Vex-Ultrasonic-Tutorial-new (1).pptxVex-Ultrasonic-Tutorial-new (1).pptx
Vex-Ultrasonic-Tutorial-new (1).pptx
TanKhanhDao
 
Computer networks unit III CHAPTER of frameworks
Computer networks unit III CHAPTER of frameworksComputer networks unit III CHAPTER of frameworks
Computer networks unit III CHAPTER of frameworks
manforlover7
 
Cs project ppt
Cs project pptCs project ppt
Cs project ppt
Engr umar
 
Ultrasonic-Radar-with-Arduino-project.pptx
Ultrasonic-Radar-with-Arduino-project.pptxUltrasonic-Radar-with-Arduino-project.pptx
Ultrasonic-Radar-with-Arduino-project.pptx
dishantghumi
 
REVIEW 2 ULTRASONIC DISTANCE MEASUREMENT finished.pptx
REVIEW 2 ULTRASONIC DISTANCE MEASUREMENT finished.pptxREVIEW 2 ULTRASONIC DISTANCE MEASUREMENT finished.pptx
REVIEW 2 ULTRASONIC DISTANCE MEASUREMENT finished.pptx
kdkumaran555
 
PIR AND ULTRASONIC PPT.pptx
PIR AND ULTRASONIC PPT.pptxPIR AND ULTRASONIC PPT.pptx
PIR AND ULTRASONIC PPT.pptx
varshanaira
 
Arduino radar system
Arduino radar systemArduino radar system
Arduino radar system
delhi technological university
 
HC-SR04 Ultrasonic sensor with Arduino
HC-SR04 Ultrasonic sensor with ArduinoHC-SR04 Ultrasonic sensor with Arduino
HC-SR04 Ultrasonic sensor with Arduino
yeokm1
 
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
 
Physics project.pptx
Physics project.pptxPhysics project.pptx
Physics project.pptx
CarryMinati95
 
Arduino Ultrasonic Sensor
Arduino Ultrasonic SensorArduino Ultrasonic Sensor
Arduino Ultrasonic Sensor
ssuser25b6a51
 
avoiding accidents on ghat roads and u turns by using IOT
avoiding accidents on ghat roads and u turns by using IOTavoiding accidents on ghat roads and u turns by using IOT
avoiding accidents on ghat roads and u turns by using IOT
RaghuSmart3
 
Ultrasonic security system by arduino
Ultrasonic security system by arduinoUltrasonic security system by arduino
Ultrasonic security system by arduino
FarzanaMoli1
 
Copy-of-Building-a-Basic-Radar-System-with-Arduino-and-Ultrasonic-Sensor.pptx
Copy-of-Building-a-Basic-Radar-System-with-Arduino-and-Ultrasonic-Sensor.pptxCopy-of-Building-a-Basic-Radar-System-with-Arduino-and-Ultrasonic-Sensor.pptx
Copy-of-Building-a-Basic-Radar-System-with-Arduino-and-Ultrasonic-Sensor.pptx
DikshaSingh123383
 
Obstacle detection using ultra sonic sensor
Obstacle detection using ultra sonic sensorObstacle detection using ultra sonic sensor
Obstacle detection using ultra sonic sensor
satyashanker
 
PPT Missile Radar System introduction.pptx
PPT Missile Radar System introduction.pptxPPT Missile Radar System introduction.pptx
PPT Missile Radar System introduction.pptx
dudddy736
 
Vex-Ultrasonic-Tutorial-new (1).pptx
Vex-Ultrasonic-Tutorial-new (1).pptxVex-Ultrasonic-Tutorial-new (1).pptx
Vex-Ultrasonic-Tutorial-new (1).pptx
TanKhanhDao
 
Computer networks unit III CHAPTER of frameworks
Computer networks unit III CHAPTER of frameworksComputer networks unit III CHAPTER of frameworks
Computer networks unit III CHAPTER of frameworks
manforlover7
 
Cs project ppt
Cs project pptCs project ppt
Cs project ppt
Engr umar
 
Ultrasonic-Radar-with-Arduino-project.pptx
Ultrasonic-Radar-with-Arduino-project.pptxUltrasonic-Radar-with-Arduino-project.pptx
Ultrasonic-Radar-with-Arduino-project.pptx
dishantghumi
 
REVIEW 2 ULTRASONIC DISTANCE MEASUREMENT finished.pptx
REVIEW 2 ULTRASONIC DISTANCE MEASUREMENT finished.pptxREVIEW 2 ULTRASONIC DISTANCE MEASUREMENT finished.pptx
REVIEW 2 ULTRASONIC DISTANCE MEASUREMENT finished.pptx
kdkumaran555
 
PIR AND ULTRASONIC PPT.pptx
PIR AND ULTRASONIC PPT.pptxPIR AND ULTRASONIC PPT.pptx
PIR AND ULTRASONIC PPT.pptx
varshanaira
 

More from CircuitDigest (20)

Understanding Amplitude Modulation : A Guide
Understanding Amplitude Modulation : A GuideUnderstanding Amplitude Modulation : A Guide
Understanding Amplitude Modulation : A Guide
CircuitDigest
 
Flip-Flop in Digital Electronics: Types, Truth Table, Logic Circuit and Pract...
Flip-Flop in Digital Electronics: Types, Truth Table, Logic Circuit and Pract...Flip-Flop in Digital Electronics: Types, Truth Table, Logic Circuit and Pract...
Flip-Flop in Digital Electronics: Types, Truth Table, Logic Circuit and Pract...
CircuitDigest
 
DIY Gesture Control ESP32 LiteWing Drone using Python
DIY Gesture Control ESP32 LiteWing Drone using  PythonDIY Gesture Control ESP32 LiteWing Drone using  Python
DIY Gesture Control ESP32 LiteWing Drone using Python
CircuitDigest
 
Build an IoT-based Weather Monitoring System Using Arduino?
Build an IoT-based Weather Monitoring System Using Arduino?Build an IoT-based Weather Monitoring System Using Arduino?
Build an IoT-based Weather Monitoring System Using Arduino?
CircuitDigest
 
Build a Smart Helmet using Arduino
Build a Smart Helmet using ArduinoBuild a Smart Helmet using Arduino
Build a Smart Helmet using Arduino
CircuitDigest
 
ESP32 Air Mouse using Bluetooth and MPU6050
ESP32 Air Mouse using Bluetooth and MPU6050ESP32 Air Mouse using Bluetooth and MPU6050
ESP32 Air Mouse using Bluetooth and MPU6050
CircuitDigest
 
Hand Gesture Recognition using ESP32 and Python
Hand Gesture Recognition using ESP32 and PythonHand Gesture Recognition using ESP32 and Python
Hand Gesture Recognition using ESP32 and Python
CircuitDigest
 
How to Build a Desktop Weather Station Using ESP32 and E-ink Display
How to Build a Desktop Weather Station Using ESP32 and E-ink DisplayHow to Build a Desktop Weather Station Using ESP32 and E-ink Display
How to Build a Desktop Weather Station Using ESP32 and E-ink Display
CircuitDigest
 
Interfacing PMW3901 Optical Flow Sensor with ESP32
Interfacing PMW3901 Optical Flow Sensor with ESP32Interfacing PMW3901 Optical Flow Sensor with ESP32
Interfacing PMW3901 Optical Flow Sensor with ESP32
CircuitDigest
 
Send SMS with Arduino UNO R4 via Internet
Send SMS with Arduino UNO R4 via InternetSend SMS with Arduino UNO R4 via Internet
Send SMS with Arduino UNO R4 via Internet
CircuitDigest
 
How to use nRF24L01 module with Arduino
How to use nRF24L01 module with ArduinoHow to use nRF24L01 module with Arduino
How to use nRF24L01 module with Arduino
CircuitDigest
 
Complete Overview of Current Transformer Types
Complete Overview of Current Transformer TypesComplete Overview of Current Transformer Types
Complete Overview of Current Transformer Types
CircuitDigest
 
How to build Blind Stick using Arduino Nano and Ultrasonic sensor
How to build Blind Stick using Arduino Nano and Ultrasonic sensorHow to build Blind Stick using Arduino Nano and Ultrasonic sensor
How to build Blind Stick using Arduino Nano and Ultrasonic sensor
CircuitDigest
 
How to Control Servo Motor using Arduino
How to Control Servo Motor using ArduinoHow to Control Servo Motor using Arduino
How to Control Servo Motor using Arduino
CircuitDigest
 
How to use L298N Motor Driver with Arduino?
How to use L298N Motor Driver with Arduino?How to use L298N Motor Driver with Arduino?
How to use L298N Motor Driver with Arduino?
CircuitDigest
 
How to Build a Bidirectional Counter Using Arduino and IR Sensors
How to Build a Bidirectional Counter Using Arduino and IR SensorsHow to Build a Bidirectional Counter Using Arduino and IR Sensors
How to Build a Bidirectional Counter Using Arduino and IR Sensors
CircuitDigest
 
How to Build a Maze Solving Robot Using Arduino
How to Build a Maze Solving Robot Using ArduinoHow to Build a Maze Solving Robot Using Arduino
How to Build a Maze Solving Robot Using Arduino
CircuitDigest
 
How to Make an RFID Door Lock System using Arduino
How to Make an RFID Door Lock System using ArduinoHow to Make an RFID Door Lock System using Arduino
How to Make an RFID Door Lock System using Arduino
CircuitDigest
 
How to Build a Speed Sensor using Arduino?
How to Build a Speed Sensor using Arduino?How to Build a Speed Sensor using Arduino?
How to Build a Speed Sensor using Arduino?
CircuitDigest
 
How to Build a Maze Solving Robot Using Arduino
How to Build a Maze Solving Robot Using ArduinoHow to Build a Maze Solving Robot Using Arduino
How to Build a Maze Solving Robot Using Arduino
CircuitDigest
 
Understanding Amplitude Modulation : A Guide
Understanding Amplitude Modulation : A GuideUnderstanding Amplitude Modulation : A Guide
Understanding Amplitude Modulation : A Guide
CircuitDigest
 
Flip-Flop in Digital Electronics: Types, Truth Table, Logic Circuit and Pract...
Flip-Flop in Digital Electronics: Types, Truth Table, Logic Circuit and Pract...Flip-Flop in Digital Electronics: Types, Truth Table, Logic Circuit and Pract...
Flip-Flop in Digital Electronics: Types, Truth Table, Logic Circuit and Pract...
CircuitDigest
 
DIY Gesture Control ESP32 LiteWing Drone using Python
DIY Gesture Control ESP32 LiteWing Drone using  PythonDIY Gesture Control ESP32 LiteWing Drone using  Python
DIY Gesture Control ESP32 LiteWing Drone using Python
CircuitDigest
 
Build an IoT-based Weather Monitoring System Using Arduino?
Build an IoT-based Weather Monitoring System Using Arduino?Build an IoT-based Weather Monitoring System Using Arduino?
Build an IoT-based Weather Monitoring System Using Arduino?
CircuitDigest
 
Build a Smart Helmet using Arduino
Build a Smart Helmet using ArduinoBuild a Smart Helmet using Arduino
Build a Smart Helmet using Arduino
CircuitDigest
 
ESP32 Air Mouse using Bluetooth and MPU6050
ESP32 Air Mouse using Bluetooth and MPU6050ESP32 Air Mouse using Bluetooth and MPU6050
ESP32 Air Mouse using Bluetooth and MPU6050
CircuitDigest
 
Hand Gesture Recognition using ESP32 and Python
Hand Gesture Recognition using ESP32 and PythonHand Gesture Recognition using ESP32 and Python
Hand Gesture Recognition using ESP32 and Python
CircuitDigest
 
How to Build a Desktop Weather Station Using ESP32 and E-ink Display
How to Build a Desktop Weather Station Using ESP32 and E-ink DisplayHow to Build a Desktop Weather Station Using ESP32 and E-ink Display
How to Build a Desktop Weather Station Using ESP32 and E-ink Display
CircuitDigest
 
Interfacing PMW3901 Optical Flow Sensor with ESP32
Interfacing PMW3901 Optical Flow Sensor with ESP32Interfacing PMW3901 Optical Flow Sensor with ESP32
Interfacing PMW3901 Optical Flow Sensor with ESP32
CircuitDigest
 
Send SMS with Arduino UNO R4 via Internet
Send SMS with Arduino UNO R4 via InternetSend SMS with Arduino UNO R4 via Internet
Send SMS with Arduino UNO R4 via Internet
CircuitDigest
 
How to use nRF24L01 module with Arduino
How to use nRF24L01 module with ArduinoHow to use nRF24L01 module with Arduino
How to use nRF24L01 module with Arduino
CircuitDigest
 
Complete Overview of Current Transformer Types
Complete Overview of Current Transformer TypesComplete Overview of Current Transformer Types
Complete Overview of Current Transformer Types
CircuitDigest
 
How to build Blind Stick using Arduino Nano and Ultrasonic sensor
How to build Blind Stick using Arduino Nano and Ultrasonic sensorHow to build Blind Stick using Arduino Nano and Ultrasonic sensor
How to build Blind Stick using Arduino Nano and Ultrasonic sensor
CircuitDigest
 
How to Control Servo Motor using Arduino
How to Control Servo Motor using ArduinoHow to Control Servo Motor using Arduino
How to Control Servo Motor using Arduino
CircuitDigest
 
How to use L298N Motor Driver with Arduino?
How to use L298N Motor Driver with Arduino?How to use L298N Motor Driver with Arduino?
How to use L298N Motor Driver with Arduino?
CircuitDigest
 
How to Build a Bidirectional Counter Using Arduino and IR Sensors
How to Build a Bidirectional Counter Using Arduino and IR SensorsHow to Build a Bidirectional Counter Using Arduino and IR Sensors
How to Build a Bidirectional Counter Using Arduino and IR Sensors
CircuitDigest
 
How to Build a Maze Solving Robot Using Arduino
How to Build a Maze Solving Robot Using ArduinoHow to Build a Maze Solving Robot Using Arduino
How to Build a Maze Solving Robot Using Arduino
CircuitDigest
 
How to Make an RFID Door Lock System using Arduino
How to Make an RFID Door Lock System using ArduinoHow to Make an RFID Door Lock System using Arduino
How to Make an RFID Door Lock System using Arduino
CircuitDigest
 
How to Build a Speed Sensor using Arduino?
How to Build a Speed Sensor using Arduino?How to Build a Speed Sensor using Arduino?
How to Build a Speed Sensor using Arduino?
CircuitDigest
 
How to Build a Maze Solving Robot Using Arduino
How to Build a Maze Solving Robot Using ArduinoHow to Build a Maze Solving Robot Using Arduino
How to Build a Maze Solving Robot Using Arduino
CircuitDigest
 
Ad

Recently uploaded (20)

fHUINhKG5lM1WBBk608.pptxfhjjhhjffhiuhhghj
fHUINhKG5lM1WBBk608.pptxfhjjhhjffhiuhhghjfHUINhKG5lM1WBBk608.pptxfhjjhhjffhiuhhghj
fHUINhKG5lM1WBBk608.pptxfhjjhhjffhiuhhghj
yadavshivank2006
 
Introduction to AI agent development with MCP
Introduction to AI agent development with MCPIntroduction to AI agent development with MCP
Introduction to AI agent development with MCP
Dori Waldman
 
社内勉強会資料_Chain of Thought .
社内勉強会資料_Chain of Thought                           .社内勉強会資料_Chain of Thought                           .
社内勉強会資料_Chain of Thought .
NABLAS株式会社
 
Artificial Power 2025 raport krajobrazowy
Artificial Power 2025 raport krajobrazowyArtificial Power 2025 raport krajobrazowy
Artificial Power 2025 raport krajobrazowy
dominikamizerska1
 
May 2025: Top 10 Cited Articles in Software Engineering & Applications Intern...
May 2025: Top 10 Cited Articles in Software Engineering & Applications Intern...May 2025: Top 10 Cited Articles in Software Engineering & Applications Intern...
May 2025: Top 10 Cited Articles in Software Engineering & Applications Intern...
sebastianku31
 
ANFIS Models with Subtractive Clustering and Fuzzy C-Mean Clustering Techniqu...
ANFIS Models with Subtractive Clustering and Fuzzy C-Mean Clustering Techniqu...ANFIS Models with Subtractive Clustering and Fuzzy C-Mean Clustering Techniqu...
ANFIS Models with Subtractive Clustering and Fuzzy C-Mean Clustering Techniqu...
Journal of Soft Computing in Civil Engineering
 
Pruebas y Solucion de problemas empresariales en redes de Fibra Optica
Pruebas y Solucion de problemas empresariales en redes de Fibra OpticaPruebas y Solucion de problemas empresariales en redes de Fibra Optica
Pruebas y Solucion de problemas empresariales en redes de Fibra Optica
OmarAlfredoDelCastil
 
Software Developer Portfolio: Backend Architecture & Performance Optimization
Software Developer Portfolio: Backend Architecture & Performance OptimizationSoftware Developer Portfolio: Backend Architecture & Performance Optimization
Software Developer Portfolio: Backend Architecture & Performance Optimization
kiwoong (daniel) kim
 
Call For Papers - International Journal on Natural Language Computing (IJNLC)
Call For Papers - International Journal on Natural Language Computing (IJNLC)Call For Papers - International Journal on Natural Language Computing (IJNLC)
Call For Papers - International Journal on Natural Language Computing (IJNLC)
kevig
 
New Microsoft Office Word Documentfrf.docx
New Microsoft Office Word Documentfrf.docxNew Microsoft Office Word Documentfrf.docx
New Microsoft Office Word Documentfrf.docx
misheetasah
 
Transformimet e sinjaleve numerike duke perdorur transformimet
Transformimet  e sinjaleve numerike duke perdorur transformimetTransformimet  e sinjaleve numerike duke perdorur transformimet
Transformimet e sinjaleve numerike duke perdorur transformimet
IndritEnesi1
 
First Review PPT gfinal gyft ftu liu yrfut go
First Review PPT gfinal gyft  ftu liu yrfut goFirst Review PPT gfinal gyft  ftu liu yrfut go
First Review PPT gfinal gyft ftu liu yrfut go
Sowndarya6
 
Universal Human Values and professional ethics Quantum AKTU BVE401
Universal Human Values and professional ethics Quantum AKTU BVE401Universal Human Values and professional ethics Quantum AKTU BVE401
Universal Human Values and professional ethics Quantum AKTU BVE401
Unknown
 
IOt Based Research on Challenges and Future
IOt Based Research on Challenges and FutureIOt Based Research on Challenges and Future
IOt Based Research on Challenges and Future
SACHINSAHU821405
 
May 2025: Top 10 Read Articles Advanced Information Technology
May 2025: Top 10 Read Articles Advanced Information TechnologyMay 2025: Top 10 Read Articles Advanced Information Technology
May 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
SEW make Brake BE05 – BE30 Brake – Repair Kit
SEW make Brake BE05 – BE30 Brake – Repair KitSEW make Brake BE05 – BE30 Brake – Repair Kit
SEW make Brake BE05 – BE30 Brake – Repair Kit
projectultramechanix
 
Top Cite Articles- International Journal on Soft Computing, Artificial Intell...
Top Cite Articles- International Journal on Soft Computing, Artificial Intell...Top Cite Articles- International Journal on Soft Computing, Artificial Intell...
Top Cite Articles- International Journal on Soft Computing, Artificial Intell...
ijscai
 
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journeyRigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Yannis
 
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptxFINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
kippcam
 
May 2025 - Top 10 Read Articles in Artificial Intelligence and Applications (...
May 2025 - Top 10 Read Articles in Artificial Intelligence and Applications (...May 2025 - Top 10 Read Articles in Artificial Intelligence and Applications (...
May 2025 - Top 10 Read Articles in Artificial Intelligence and Applications (...
gerogepatton
 
fHUINhKG5lM1WBBk608.pptxfhjjhhjffhiuhhghj
fHUINhKG5lM1WBBk608.pptxfhjjhhjffhiuhhghjfHUINhKG5lM1WBBk608.pptxfhjjhhjffhiuhhghj
fHUINhKG5lM1WBBk608.pptxfhjjhhjffhiuhhghj
yadavshivank2006
 
Introduction to AI agent development with MCP
Introduction to AI agent development with MCPIntroduction to AI agent development with MCP
Introduction to AI agent development with MCP
Dori Waldman
 
社内勉強会資料_Chain of Thought .
社内勉強会資料_Chain of Thought                           .社内勉強会資料_Chain of Thought                           .
社内勉強会資料_Chain of Thought .
NABLAS株式会社
 
Artificial Power 2025 raport krajobrazowy
Artificial Power 2025 raport krajobrazowyArtificial Power 2025 raport krajobrazowy
Artificial Power 2025 raport krajobrazowy
dominikamizerska1
 
May 2025: Top 10 Cited Articles in Software Engineering & Applications Intern...
May 2025: Top 10 Cited Articles in Software Engineering & Applications Intern...May 2025: Top 10 Cited Articles in Software Engineering & Applications Intern...
May 2025: Top 10 Cited Articles in Software Engineering & Applications Intern...
sebastianku31
 
Pruebas y Solucion de problemas empresariales en redes de Fibra Optica
Pruebas y Solucion de problemas empresariales en redes de Fibra OpticaPruebas y Solucion de problemas empresariales en redes de Fibra Optica
Pruebas y Solucion de problemas empresariales en redes de Fibra Optica
OmarAlfredoDelCastil
 
Software Developer Portfolio: Backend Architecture & Performance Optimization
Software Developer Portfolio: Backend Architecture & Performance OptimizationSoftware Developer Portfolio: Backend Architecture & Performance Optimization
Software Developer Portfolio: Backend Architecture & Performance Optimization
kiwoong (daniel) kim
 
Call For Papers - International Journal on Natural Language Computing (IJNLC)
Call For Papers - International Journal on Natural Language Computing (IJNLC)Call For Papers - International Journal on Natural Language Computing (IJNLC)
Call For Papers - International Journal on Natural Language Computing (IJNLC)
kevig
 
New Microsoft Office Word Documentfrf.docx
New Microsoft Office Word Documentfrf.docxNew Microsoft Office Word Documentfrf.docx
New Microsoft Office Word Documentfrf.docx
misheetasah
 
Transformimet e sinjaleve numerike duke perdorur transformimet
Transformimet  e sinjaleve numerike duke perdorur transformimetTransformimet  e sinjaleve numerike duke perdorur transformimet
Transformimet e sinjaleve numerike duke perdorur transformimet
IndritEnesi1
 
First Review PPT gfinal gyft ftu liu yrfut go
First Review PPT gfinal gyft  ftu liu yrfut goFirst Review PPT gfinal gyft  ftu liu yrfut go
First Review PPT gfinal gyft ftu liu yrfut go
Sowndarya6
 
Universal Human Values and professional ethics Quantum AKTU BVE401
Universal Human Values and professional ethics Quantum AKTU BVE401Universal Human Values and professional ethics Quantum AKTU BVE401
Universal Human Values and professional ethics Quantum AKTU BVE401
Unknown
 
IOt Based Research on Challenges and Future
IOt Based Research on Challenges and FutureIOt Based Research on Challenges and Future
IOt Based Research on Challenges and Future
SACHINSAHU821405
 
May 2025: Top 10 Read Articles Advanced Information Technology
May 2025: Top 10 Read Articles Advanced Information TechnologyMay 2025: Top 10 Read Articles Advanced Information Technology
May 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
SEW make Brake BE05 – BE30 Brake – Repair Kit
SEW make Brake BE05 – BE30 Brake – Repair KitSEW make Brake BE05 – BE30 Brake – Repair Kit
SEW make Brake BE05 – BE30 Brake – Repair Kit
projectultramechanix
 
Top Cite Articles- International Journal on Soft Computing, Artificial Intell...
Top Cite Articles- International Journal on Soft Computing, Artificial Intell...Top Cite Articles- International Journal on Soft Computing, Artificial Intell...
Top Cite Articles- International Journal on Soft Computing, Artificial Intell...
ijscai
 
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journeyRigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Yannis
 
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptxFINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
kippcam
 
May 2025 - Top 10 Read Articles in Artificial Intelligence and Applications (...
May 2025 - Top 10 Read Articles in Artificial Intelligence and Applications (...May 2025 - Top 10 Read Articles in Artificial Intelligence and Applications (...
May 2025 - Top 10 Read Articles in Artificial Intelligence and Applications (...
gerogepatton
 
Ad

Discover How to Interface Ultrasonic Sensors with Arduino for Distance Measurement.

  • 1. HOW TO INTERFACE ARDUINO WITH AN ULTRASONIC SENSOR? Source:
  • 2. HCSR04 ULTRASONIC SENSOR PINOUT Source: The Ultrasonic Sensor has 4 pins: - VCC, Trig, Echo and GND. The Pinout explanation is given as below • HC-SR04 Ultrasonic Sensor Pinout • VCC - The supply pin of the HC- SR04 Module. • GND - This is the Ground pin of the module • Trig - This is the trigger pin of the HC-SR04 module • Echo - This is the echo pin of the HC-SR04 sensor module.
  • 3. WORKING PRINCIPLES OF ULTRASONIC SENSOR Source: The ultrasonic sensor operates by emitting high-frequency sound waves and detecting their reflections. It comprises a transducer, which both emits and receives ultrasonic waves, along with signal processing circuitry to measure the time taken for the waves to travel and return.
  • 4. CIRCUIT CONNECTION OF ULTRASONIC SENSOR Source: Connect the ultrasonic sensor's trig and echo pins to Arduino pins 4 and 5, respectively. This configuration allows the Arduino to trigger the sensor and measure the time taken for the echo pulse to return.
  • 5. ULTRASONIC SENSOR AND LCD DISPLAY Source: Arduino Code: Initialize serial communication, set up trigger and echo pins, measure echo pulse duration, calculate distance based on sound speed, and display on Serial Monitor. LCD Display Addition: Connect I2C LCD display to Arduino using SDA, SCL, VCC, and GND pins for real-time distance display alongside serial output.
  • 6. WORKING OF ULTRASONIC SENSOR WITH ARDUINO Source: