What is the output pin of the HC-SR04 ultrasonic sensor?

What is the output pin of the HC-SR04 ultrasonic sensor?

The HC-SR04 Ultrasonic sensor comes with four pins namely Vcc pin, Trigger pin, Echo pin, & Ground pin. This sensor is used to measure the accurate distance between the target and the sensor. This sensor mostly works on the sound waves.

What is trigger pin and Echo pin in ultrasonic sensor?

Trig (Trigger) pin is used to trigger the ultrasonic sound pulses. Echo pin produces a pulse when the reflected signal is received. The length of the pulse is proportional to the time it took for the transmitted signal to be detected.

What is the output voltage of ultrasonic sensor?

The sensor is small, easy to use in any robotics project and offers excellent non-contact range detection between 2 cm to 400 cm (that’s about an inch to 13 feet) with an accuracy of 3mm. Since it operates on 5 volts, it can be hooked directly to an Arduino or any other 5V logic microcontrollers.

What are the pins of an ultrasonic sensor?

This is a very simple and useful ultrasonic sensor. There are four pins that you would use to interface with the sensor: VCC, Trig (signal output pin), Echo (signal input pin), and GND. Each of the four pins are connected to the Arduino: VCC to 5v, Trig to a digital pin, Echo to a digital pin, and GND to GND (ground).

What is the input and output of ultrasonic sensor?

Features of an Ultrasonic Sensor Supply voltage: 5V (DC). Supply current: 15mA. Modulation frequency: 40Hz. Output: 0 – 5V (Output high when obstacle detected in range).

Which command is used to check a high status Echo pin?

pulseIn() It accepts as arguments the pin and the state of the pulse (either HIGH or LOW). It returns the length of the pulse in microseconds.

For what purpose Echo pin of an ultrasonic sensor module are used for?

This pin has to be kept high for 10us to initialize measurement by sending US wave. Echo pin is an Output pin. This pin goes high for a period of time which will be equal to the time taken for the US wave to return back to the sensor. This pin is connected to the Ground of the system.

What is ultrasonic sensor specification?

Supply voltage 5 v Global Current Consumption 15 mA Ultrasonic Frequency 40k Hz Maximal Range 400 cm Minimal Range 3 cm Resolution 1 cm Trigger Pulse Width 10 µs Outline Dimension 43x20x15 mm Seeed ultrasonic sensor is non-contact distance measurement module, which is also compatible with electronic brick.

What are the pins of the hc-sr04 ultrasonic sensor?

As shown above the HC-SR04 Ultrasonic (US) sensor is a 4 pin module, whose pin names are Vcc, Trigger, Echo and Ground respectively. This sensor is a very popular sensor used in many applications where measuring distance or sensing objects are required.

Can a hc-sr04 be used with Arduino?

Dividing it by 2 will give the actual distance of the target object. In order to get the precise distance measurement, HC-SR04 is mostly used in combination with different Arduino Modules like Arduino Uno and Arduino Mega. You can connect Arduino with this sensor in the following way.

Which is power supply pin on hc-sr04?

HC-SR04 contain 4 pins in total. The power supply pin of the sensor that mainly operates at 5V DC. It plays a vital role to initialize measurement for sending ultrasonic waves. It should be kept high for 10us for triggering the measurement.

How to connect an Arduino to an ultrasonic sensor?

The following table shows the connections you need to make: Ultrasonic Sensor HC-SR04 Arduino VCC 5V Trig Pin 11 Echo Pin 12