Introduction: HOW TO USE ULTRASONIC SENSOR SR04 WITH ARDUINO AND HOW ULTRASONIC SENSOR WORKS
Welcome to the Tutorial series of Arduino Learn by Doing.Today our task is to learn about Ultrasonic sensor.The working of ultrasonic sensor and the implementation of ultrasonic SR04 SONAR sensor module with arduino. We will discus some of the projects with ultrasonic sensor later in coming posts but before that we will see the working and usage of ultrasonic sensor SR04 with arduino.So Let's start with the contents list.
Complete Tutorials and source code can be found on this link:
- Introduction to Ultrasonic SR04 SONAR sensor
- How Ultrasonic sensor works
- Components list
- Circuit diagram
- Arduino code for Ultrasonic SR04 sensor
Step 1: Introduction to Ultrasonic SR04 SONAR Sensor
The Ultrasonic Sensor as the name sounds like sound it works on Sound waves.Ultrasonic is a sensor device that works with sound waves.It works on the phenomenon of sending and receiving of ultrasonic sound waves.By sound waves it measures the distance and obstacles.Its a sensor that measures the distance or Detects obstacle.it can be used either in both ways.The Ultrasonic Sr04 SONAR is a module created for interfacing with micro controllers.
The basic phenomenon of measuring distance or detecting obstacle with ultrasonic sound waves comes from underwater communication. If i'm not wrong we can say the communication way of fishes.
Step 2: How Ultrasonic SR04 SONAR Sensor Works
The Ultrasonic sensor works on the phenomenon of sending sound waves at a particular frequency and receive on bouncing back. It measures distance and existence of the obstacle with in the time of sending and receiving of sound wave.
The total traveling distance of sound wave can be calculated by using this formula:
The SR04 obstacle avoiding module is easily interface with arduino. The SR04 ultrasonic module is a high accuracy range detector module.The Distance range of SR04 SONAR is from 2 cm to 400 cm . The module works fine in almost all good conditions but remember in high noise and in some situations and materials the module will not work. The sensor also not works in dead band. The dead band is in the too much less distance below 2 cm.
Step 3: Components and Circuit Diagram
- 1x Arduino Board Uno (any of your choice)
- HC-SR04 Ultrasonic SONAR sensor
- 1x Bread board
- jumper wires
Step 4: Arduino Code
Get the Code from the following Link:
Complete arduino Tutorials and Projects:
Read the Full article on this link: