Circuit Diagram
Here is the circuit diagram for making connections.
Circuit Diagram
Given Below is the circuit diagram of
Carefully observe the diagram given above for making connections on the breadboard. Note that the ultrasonic sensor has four terminals namely +5V, Trigger, Echo, and GND, follow the steps given for making connections:
- Connect a wire to supply Vcc with 5V to the appropriate pin on Arduino.
- Make a ground-to-ground connection from GND to GND on Arduino.
- Connect the trigger i.e. Trig to any pin on Arduino like pin 8.
- Connect the Echo to any pin on Arduino like pin 9.
Arduino – Ultrasonic Sensor
Sensors are widely used for detecting devices by approximating their distance from the source. One such example of a sensor is the HC-SR04 ultrasonic sensor which uses the SONAR technique for the sensing purpose. The main feature of this sensor is to mimic the nature of bats and therefore predict the distance of objects without actually establishing contact with the device.
In this article, we will study how to design this ultrasonic sensor using the Arduino board and programming software. We will study the specifications needed for this sensor, and the methods and circuit diagrams used for designing this sensor. In addition to this, we will see the Arduino code written on IDE that will result in a sensor.
Table of Content
- Ultrasonic Sensor
- Technical Specifications
- Apparatus
- Working
- Circuit Diagram
- Arduino Code