HY-SRF05 Sensor

Mã SP: CHN00664

55.000₫
Description The HY-SRF05 is an ultrasonic emitter/receiver used to measure distance with a precision of ~0.3cm. It sends...
Số lượng
- +
Sản phẩm liên quan

Description

The HY-SRF05 is an ultrasonic emitter/receiver used to measure distance with a precision of ~0.3cm. It sends out a 40 KHz square wave signal that reflects on objects in front of the sensor. This signal is then read back by the sensor and the duration of the received signal is reflected on the ECHO pin.

Characteristics

  • Supply voltage: 4.5V to 5.5V (VCC)
  • Supply current: 10 to 40mA
  • Trigger pin format: 10 uS digital pulse
  • Sound frequency: 40 KHz
  • Echo pin output: 0V-VCC
  • Echo pin format: digital

Usage

  1. Send a 10Us wide pulse (low to high) to the Trigger pin.
  2. Monitor the ECHO pin.
  3. When the ECHO pin goes HIGH, start a timer.
  4. When the ECHO pin goes LOW, stop the timer and save the elapsed time.
  5. Use the elapsed time in the following formula to get the distance in cm:

Distance (in cm) = (elapsed time * sound velocity (340 m/s)) / 100 / 2

Arduino users

There is a fantastic library for Arduino called NewPing that will do all the required work. More info here:

Về đầu trang