Measuring Distance using Ultrasonic sensor

Using ultrasonic sensor to find the distance between the sensor and the object placed.

Sep 8, 2016

44974 views

9 respects

Components and supplies

1

Breadboard (generic)

1

Ultrasonic Sensor - HC-SR04 (Generic)

4

Jumper wires (generic)

1

Arduino UNO

Apps and platforms

1

Arduino IDE

Project description

Code

Ultrasonic.ino

c_cpp

Downloadable files

Distance using Ultrasonic Sensor

Distance using Ultrasonic Sensor

Distance using Ultrasonic Sensor

Distance using Ultrasonic Sensor

Comments

Only logged in users can leave comments

adiravi2005

2 years ago

can anybody tell me the wiring of this project

Anonymous user

2 years ago

connections: 1) 12th gpio pin of uno to the trig pin. 2)11th gpio pin of uno to the echo pin. 3)vcc of uno to vcc of ultrasonic hcsr104. 4)ground of uno to ground of ultrasonic hcsr104.

Anonymous user

2 years ago

Hi, i did something similar but with a Oled display check it out I did not calibrate the thing... :( https://www.hackster.io/javier-munoz-saez/distance-sensor-oled-ad9e35?ref=user&ref_id=85424&offset=2

Anonymous user

2 years ago

no output

Paarth_Shah

5 years ago

no output

Anonymous user

6 years ago

code not working

Anonymous user

2 years ago

try changing frequency. select the correct port.

adiravi2005

7 years ago

can anybody tell me the wiring of this project

Anonymous user

2 years ago

connections: 1) 12th gpio pin of uno to the trig pin. 2)11th gpio pin of uno to the echo pin. 3)vcc of uno to vcc of ultrasonic hcsr104. 4)ground of uno to ground of ultrasonic hcsr104.

Anonymous user

8 years ago

Hi, i did something similar but with a Oled display check it out I did not calibrate the thing... :( https://www.hackster.io/javier-munoz-saez/distance-sensor-oled-ad9e35?ref=user&ref_id=85424&offset=2