Difference between revisions of "Ultrasonic Sensor (HC-SR04) + Arduino"

From ESE205 Wiki
Jump to: navigation, search
(Reference)
(Circuit)
Line 7: Line 7:
 
There are four pins on the HC-SR04 Ultrasonic distance sensor:
 
There are four pins on the HC-SR04 Ultrasonic distance sensor:
 
*Vcc: power.
 
*Vcc: power.
*Trig:
+
*Trig: sends out the sonic burst, connected to pin 10.
*Echo:
+
*Echo: receive the returned soundwave, connected to pin 13.
 
*GND: ground.
 
*GND: ground.
 
+
===Sample Circuit===
 
[[File:CUS.png|300px|]]
 
[[File:CUS.png|300px|]]
  

Revision as of 14:12, 2 May 2017

Overview

The HC-SR04 ultrasonic distance sensor uses sonar to determine distance to an object with stable readings and high accuracy of 3mm. The module includes ultrasonic transmitter, receiver and control circuit. It basic principles of work are outlined here if interested. One of the outstanding features of this distance sensor is that it can detect not only the distance between itself to a solid object, it can also detect liquids (used in the Cheers group).

Arduino

Circuit

There are four pins on the HC-SR04 Ultrasonic distance sensor:

  • Vcc: power.
  • Trig: sends out the sonic burst, connected to pin 10.
  • Echo: receive the returned soundwave, connected to pin 13.
  • GND: ground.

Sample Circuit

CUS.png

Reference