HC-SR04 Ultrasonic Sensor with Arduino PDF

Document Details

SpiritedHibiscus6249

Uploaded by SpiritedHibiscus6249

University of Petra

Tags

Arduino ultrasonic sensor HC-SR04 distance measurement

Summary

This document provides an explanation and workings of the HC-SR04 ultrasonic sensor and how to use it with Arduino. It covers specifications, working principles, calculations of distance, and example code.

Full Transcript

Using the HC-SR04 Ultrasonic Sensor with Arduino Introduction to HC-SR04 Ultrasonic Sensor What is an HC-SR04 Sensor? The HC-SR04 is an ultrasonic sensor used to measure distances between 2 cm and 400 cm. It uses sonar principles: sending sound waves and calculating the time it ta...

Using the HC-SR04 Ultrasonic Sensor with Arduino Introduction to HC-SR04 Ultrasonic Sensor What is an HC-SR04 Sensor? The HC-SR04 is an ultrasonic sensor used to measure distances between 2 cm and 400 cm. It uses sonar principles: sending sound waves and calculating the time it takes for them to bounce back (echo). How it Works: Trigger Pin: Sends an ultrasonic pulse (8 cycles at 40 kHz). Echo Pin: Receives the reflected pulse. The Arduino calculates the distance using the time of travel and the speed of sound. main specifications: Operating Voltage 5V DC Operating Current 15mA Operating 40KHz Frequency Min Range 2cm / 1 inch Max Range 400cm / 13 feet Accuracy 3mm Measuring Angle

Use Quizgecko on...
Browser
Browser