Introduction: Easy Ultraonic Sensor on Uno

About: Just another Mini-Engineer who is Smart

What one man con dream, other men can make true

We often no too often, hear this, though it means a lot. I'm pretty sure that a lot of you want to do an Ultrasonic Sensor project with Senor HC-SR04, without scams or stealing away your personal information, so I'm here to stop that.

Supplies

You will need as follows:

  1. Arduino UNO
  2. Ultrasonic sensor HC-SR04
  3. 4 Male-to-male wires
  4. A breadboard
  5. Arduino IDE

Step 1: Insert the Basic Stuff

Put the breadboard on the ground and put the Ultrasonic sensor on the Breadboard. For example, put it on pins 30a,31a,32a and 33a.

Step 2: Wiring

Attach as following:

  • GND to GND
  • VCC to 5v
  • Trig to pin 8
  • Echo to pin7

Step 3: Writing the Code

Open IDE and open this code