Arduino project

Maintaining distance using Ultrasonic sensor with Arduino

DISTANCE MAINTAINER

AZ Electronics

--

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:

  1. Arduino UNO board.
  2. Ultrasonic Sensor
  3. Active buzzer.
  4. Red and Green LED.
  5. Jumper wires.
  6. Breadboard.
  7. 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!!!

--

--

AZ Electronics

I am an Electronics and communication student. I make some interesting project on Arduino, IoT, NodeMCU and many more.