Difference: Ultra-sonicSensor (3 vs. 4)

Revision 42018-03-08 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

The Ultrasonic Distance Sensor HC-SR04

Line: 13 to 13
 
  • Echo
The module is triggered with a 10us TTL trigger pulse. It then sends an 8 cycle sonic burst of 40 kHz and tries to detect the echo. The module sends an echo pulse whose length is proportional to the time the sound signals takes to the target and back.
Added:
>
>
These are the connection we make:
Vcc 5V
Trig gpio 23
Echo gpio 24 via the level converter
Gnd Gnd

 Here is a Python test program demonstrating the readout:

https://iotworkshop.africa/pub/AFNOG/Ultra-sonicSensor/hc-sr04.py.txt

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback