Description
Waterproof ultrasonic sensor operating in the range from 20 cm to 450 cm. It is powered with voltage of 5 V. The output is a signal whose duration is proportional to the measured distance. The sensor is compatible with popular sensor HC-SR04, which means that the sample programs and libraries will work correctly for both sensors.
We encourage youto see the user's guide which includes a sample programfor handling ultrasonic sensors with Arduino. |
The sensor has four leads that are compatible with themodule HC-SR04:VCC- supply voltage 5 V,GND- mass of system and the signal pins - EchoandTrig.
Specification
- Supply voltage: 5 V
- Average current consumption: 30 mA
- Measuring range: from 20 cm to 450 cm
- Output: frequency signal
- Working frequency: 40 kHz
- Angle measurement: below 50 °
- Operating temperature: -10 °C to 70 °C
- Included is waterproof probe with 2.5 m cable
- Module dimensions: 41 x 29 x 15 mm
The product is compatible with Arduino and Raspberry Pi |
Video
Method of application
To begin the measurement, you must indicate on the TRIG pin, pulse voltage (high state of 5 V) for 10 us. The module measures distances using sound wave with a frequency of 40 kHz. To microcontroller, a signal is sent, in which distance depends on the duration of high state, and it can be calculated by the formula:
test distance = (high level time × velocity of sound (340m/s) / 2
where:
- test distance - the measured distance
- high level time - duration of high state
- velocity of sound - velocity of projecting the sound waves in air - 340 m/s
In short, to get the result in cm, use the formula:
distance[cm]= ( high level time[us]* 34 ) / 1000 / 2
The measurement procedure is shown in the figure below.
Useful links |