Complete guide for ultrasonic sensor hc sr04 with arduino description
Complete Guide for Ultrasonic Sensor HC-SR with Arduino This article is a guide about the popular Ultrasonic Sensor HC ?? SR We ? ll explain how it works show you some of its features and share an Arduino project example you can follow to integrate in your projects We provide a schematic diagram on how to wire the ultrasonic sensor and an example sketch to use with the Arduino Description The HC-SR ultrasonic sensor uses sonar to determine distance to an object like bats do It o ?ers excellent non-contact range detection with high accuracy and stable readings in an easy-to-use package It comes complete with ultrasonic transmitter and receiver modules Features Here ? s a list of some of the HC-SR ultrasonic sensor features and specs C ? Power Supply V DC ? Quiescent Current mA ? Working Current mA ? E ?ectual Angle ? Ranging Distance cm ?? cm ?? ?? ft ? Resolution cm ? Measuring Angle degree ? Trigger Input Pulse width uS ? Dimension mm x mm x mm How Does it Work The ultrasonic sensor uses sonar to determine the distance to an object Here ? s what happens The transmitter trig pin sends a signal a high-frequency sound When the signal ?nds an object it is re ected and ? ? the transmitter echo pin receives it CThe time between the transmission and reception of the signal allows us to calculate the distance to an object This is possible because we know the sound ? s velocity in the air HC-SR Ultrasonic Sensor Pinout ? VCC VDC ? Trig Trigger INPUT ? Echo Echo OUTPUT ? GND GND Pins Where to buy You can check the Ultrasonic Sensor HC-SR sensor on Maker Advisor to ?nd the best price CArduino with HC ?? SR Sensor This sensor is very popular among the Arduino tinkerers So here we provide an example on how to use the HC- SR ultrasonic sensor with the Arduino In this project the ultrasonic sensor reads and writes the distance to an object in the serial monitor The goal of this project is to help you understand how this sensor works Then you should be able to use this example in your own projects Note There ? s an Arduino library called NewPing that can make your life easier when using this sensor Parts Required Here ? s a list of the parts required to follow the next tutorial ? Arduino UNO ?? read Best Arduino Starter Kits ? Ultrasonic Sensor HC-SR ? Breadboard ? Jumper wires You can use the preceding links or go directly to MakerAdvisor com tools to ?nd all the parts for your projects at the best price CSchematics Follow the next schematic diagram to wire the HC-SR ultrasonic sensor to the Arduino The following table shows the connections you need to make Ultrasonic Sensor HC-SR VCC Trig Echo GND Arduino V Pin Pin GND CCode Upload the following code to your Arduino IDE created by Rui
Documents similaires










-
38
-
0
-
0
Licence et utilisation
Gratuit pour un usage personnel Attribution requise- Détails
- Publié le Jul 09, 2021
- Catégorie Administration
- Langue French
- Taille du fichier 61.1kB