Main Product 1 Main Product 2 Main Product 3
In Stock
Price: KSH 200.00

HC-SR04 Ultrasonic Sensor

The HC-SR04 is a widely used ultrasonic sensor for measuring distance. It uses sonar to determine the distance to an object by emitting an ultrasonic sound wave and calculating the time it takes for the wave to return after bouncing off an object.

Working

The sensor emits an ultrasonic pulse at 40kHz via the **Trigger** pin. This pulse travels through the air, and when it hits an object, it reflects back to the sensor. The sensor receives this echo via the **Echo** pin. The time between sending and receiving the signal is used to calculate the distance using the formula:

Distance (cm) = (Time × Speed of Sound) / 2

The speed of sound is approximately 343 m/s (or 0.0343 cm/µs).

Pinout

Pin Name Description
1 VCC Power supply (5V)
2 Trig Trigger signal (input)
3 Echo Echo signal (output)
4 GND Ground
Arduino Nano Pinout

🔥RELATED PRODUCTS🔥

🔗 HIMASTORES PRODUCTS