How do you use HC-SR04?

How do you use HC-SR04?

At the front of the HC-SR04 sensor, you can find two silver cylinders (ultrasonic transducers), one is the transmitter of the sound waves and the other is the receiver. To let the sensor generate a sonic burst, you need to set the Trig pin high for at least 10 µs.

Is HC-SR04 waterproof?

The UraXx HC-SR04 waterproof ultrasonic sensor uses sonar to measure distance to an object. It offers excellent range accuracy and stable readings in an easy-to-use package.

What can you do with hc-sr04 ultrasonic sensor?

Written by Benne de Bakker 23 Comments. The HC-SR04 is an inexpensive, easy to use ultrasonic distance sensor, with a range of 2 to 400 cm. It is commonly used in obstacle avoiding robots and automation projects. In this tutorial, you will learn how the sensor works and how to use it with Arduino.

Can a 3.3V micro controller use an ultrasonic sensor?

This guide will provide you with everything needed to connect an Ultrasonic Sensor (HC-SR04) to your Tiva C Series based micro-controller. In essence, this guide will work for most 3.3v based controller’s such as a 3.3v based Arduino and compatible boards as the Energia development platform is based off of the Arduino IDE.

What kind of power supply does a hc-sr04 have?

The HC-SR04 has the following four connections: VCC – This is the 5 Volt positive power supply. Trig – This is the “Trigger” pin, the one driven to send the ultrasonic pulses. Echo – This is the pin that produces a pulse when the reflected signal is received.

How to control a motor using ultrasonic distance sensors?

If everything was done correctly, the rotation of the motor will be controlled by the objects that trigger the ultrasonic sensors. As always, you can modify the code and change the voltage for your own projects. If you want to see this project in action, please click on the link below: