Difference: Ultra-sonicSensor (1 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://afnog.iotworkshop.africa/pub/AFNOG/Ultra-sonicSensor/hc-sr04.py.txt

Revision 32018-03-06 - 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:
>
>
Here is a Python test program demonstrating the readout:

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

 -- Uli Raich - 2018-02-08

Comments

Revision 22018-03-06 - UliRaich

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

The Ultrasonic Distance Sensor HC-SR04

Changed:
<
<
Article text.
>
>
In order to measure the distance of the colored paper sheet from the sensors we use the HC-SR04 ultra-sonic distance sensor.

As can be seen from the photo, the modules has 4 connections:

  • Vcc, which is 5V
  • Gnd
  • Trig
  • 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.
  -- Uli Raich - 2018-02-08

Comments

Deleted:
<
<
<--/commentPlugin-->
 \ No newline at end of file
Added:
>
>

<--/commentPlugin-->

META FILEATTACHMENT attachment="hc-sr04.png" attr="" comment="" date="1520343913" name="hc-sr04.png" path="hc-sr04.png" size="176931" user="UliRaich" version="1"
META FILEATTACHMENT attachment="hc-sr04.py.txt" attr="" comment="" date="1520344766" name="hc-sr04.py.txt" path="hc-sr04.py.txt" size="940" user="UliRaich" version="1"

Revision 12018-02-08 - UliRaich

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

The Ultrasonic Distance Sensor HC-SR04

Article text.

-- Uli Raich - 2018-02-08

Comments

<--/commentPlugin-->
 
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