Arduino project
Maintaining distance using Ultrasonic sensor with Arduino
DISTANCE MAINTAINER
May 22, 2021
DESCRIPTION-To maintains the specific distance from a specific object such as Monuments, shopkeeper’s counter, or a bank counter, etc.
Here are the items you need:
- Arduino UNO board.
- Ultrasonic Sensor
- Active buzzer.
- Red and Green LED.
- Jumper wires.
- Breadboard.
- Mini breadboard (for accurate measuring).
Circuit Diagram.
Make sure all your connections are proper as shown in the diagram.
Note:
- We are going to measure distance in centimeters.
- Change the value of distance in the program as per your requirement.
Now open your Arduino IDE then write a code from here.
- Make sure all your connections are proper.
- Compile your program.
- Select the Arduino UNO board.
- Select the port.
- Now upload your program.
- Open your Serial Monitor and see the result.
Good Job!!!