HOW TO USE HC-SR04 WITH ARDUINO

Hello. In this article, you will find answers to your calls such as arduino hc-sr04 , arduino ultrasonic sensor , arduino hc-sr04 distance measuring , arduino hc-sr04 example code . In order for our ears to perceive any sound, that sound must have at least 20 (20 Hz) vibrations per second, and a maximum of 20,000 (20 Khz) vibrations. Ultrasonic sensors, on the other hand, produce sound waves higher than these values when the correct encoding is performed and they start to listen to the reflected waves. HC-SR04 ultrasonic distance sensor also operates at a frequency of 40Khz and the distances of objects between 2cm and 400cm can be measured when correct coding is achieved by creating accurate results from the data obtained from the sensor. HC-SR04 ultrasonic sensor has trigger, echo, VCC and GND pins. In order for the sensor to generate sound waves, it is necessary to trigger the trigger pin for 10us (microseconds). When the trigger pin is triggered sufficiently, our sensor generates 8 ...