Giannis Arvanitakis
Published © CC BY

Measuring Distance with Sound

Using ultrasonic sensors to measure distance of obstacles, taking into account temperature and humidity that affect the speed of sound.

BeginnerProtip1 hour24,055
Measuring Distance with Sound

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Ultrasonic Sensor - HC-SR04 (Generic)
Ultrasonic Sensor - HC-SR04 (Generic)
×1
DHT11 Temperature & Humidity Sensor (4 pins)
DHT11 Temperature & Humidity Sensor (4 pins)
×1
Breadboard (generic)
Breadboard (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Ultrasonic sensor with one pin connection

Ultrasonic sensor with two pin connections

Ultrasonic sensor with two pin connection and temperature and humidity

Code

Arduino

https://create.arduino.cc/editor/ioarvanit/f40b3d40-6174-42e8-af37-4a8148e3e419/preview?embed

Arduino

https://create.arduino.cc/editor/ioarvanit/4bc3e019-2bd0-4239-87ab-c873a7df435b/preview?embed

Arduino

https://create.arduino.cc/editor/ioarvanit/a1fcc9a8-9e7a-48ce-87c9-4313a8986c70/preview?embed

Credits

Giannis Arvanitakis

Giannis Arvanitakis

3 projects • 47 followers
I am a Computer Science Teacher and in charge of the Technology evening clubs at the Experimental Elementary School of Florina.

Comments