{"product_id":"hc-sr04-ultrasonic-range-finder-module","title":"HC-SR04 Ultrasonic Range Finder Module","description":"\u003cp\u003e\u003cspan\u003eUses sound waves to detect obstacles and measure distance\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eDESCRIPTION\u003c\/h2\u003e\n\u003cp\u003eThe HC-SR04 Ultrasonic Range Finder Module uses ultrasonic sound waves to detect the presence of and measure the distance to objects in front of it.\u003c\/p\u003e\n\u003ch2\u003ePACKAGE INCLUDES:\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eHC-SR04 Ultrasonic Range Finder Module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003eKEY FEATURES OF HC-SR04 ULTRASONIC RANGE FINDER MODULE:\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003e2 cm -400 cm (13 feet) detection range\u003c\/li\u003e\n\u003cli\u003e40 kHz operation\u003c\/li\u003e\n\u003cli\u003e±15 degree field of view\u003c\/li\u003e\n\u003cli\u003e5V operation\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThe detection and measurement range is from 2 cm up to 400 cm which is about 13 feet with a stated accuracy of +\/- 3mm.  The ultrasonic sound is pulsed at 40 kHz and is not audible to the human ear.\u003c\/p\u003e\n\u003cp\u003eThese modules are commonly used on robotic vehicles for obstacle detection and avoidance.  Because they use sound waves for detection, they are not sensitive to light sources or optically reflective surfaces like IR can be.  In addition, by using sound instead of light, it is possible to measure the time that it takes for the sound to be echo’d back and therefore the distance to the object can be calculated with a fair amount of accuracy which can be quite handy.\u003c\/p\u003e\n\u003cp\u003eThese modules have a ‘view’ of about 30 degrees, so they are sometimes mounted to a servo motor so that the sensor can ‘look-around’ at its surroundings.  The fact that the sensors look like a couple of eyes adds to the cool factor as well.\u003c\/p\u003e\n\u003cp\u003eThe way the HC-SR04 Ultrasonic Range Finder Module works is as follows:\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003eThe module is normally idle.\u003c\/li\u003e\n\u003cli\u003eA 10 uSec or wider pulse is sent to the TRIG pin on the module, usually by a microcontroller.  This will cause the module to start a detection cycle.\u003c\/li\u003e\n\u003cli\u003eThe module emits eight bursts of 40KHz sound and sets it’s ECHO pin output HIGH.\u003c\/li\u003e\n\u003cli\u003eWhen the signal is reflected back from an object and is detected by the module, the ECHO pin is set back to LOW.\u003c\/li\u003e\n\u003cli\u003eBy measuring the amount of time that the ECHO pin is held HIGH, the distance to the object can be calculated using the basic formula  (\u003cstrong\u003eTime that ECHO is held HIGH * Speed of sound \/ 2\u003c\/strong\u003e)  The divide by 2 is because the sound has to travel in both directions (both out and back) and we want to know just the out distance.\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003cp\u003eIf an echo is not returned (no object detected), the module will still lower the ECHO pin after a fixed delay.  This delay may vary, but is about 200mSec on the modules that I have measured.  This is required to prevent the module from hanging if there is no return echo.  If you run the test software shown down below and then block the sensor with your hand , you will see what is returned when no obstacle is detected.  This is typically something along the lines of 75 feet.  To be safe, it is generally best to assume that any reading over about 13 feet is the same as no obstacle being detected.\u003c\/p\u003e\n\u003ch3\u003eModule Connections:\u003c\/h3\u003e\n\u003cp\u003eThere is a 4-pin header on the assembly.  The GND pin is connected to the system ground and the Vcc pin is connected to 5V.  The TRIG pin is an input pin on which a 10uSec pulse is applied to start the measurement cycle.  The ECHO pin is an output pin that is held HIGH for the duration of the time from when the module sends a 40KHz pulse out until it receives the echo back.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e1 x 4 Header\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eVCC\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e–   Connect to 5V.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eTRIG\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e–   Connect to any digital output pin on uC.  A 10uSec or wider pulse starts a measurement cycle\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eECHO\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e–  Connect to any digital input pin on uC.  This pin is held high for the duration of the the measurement cycle.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eGND\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e–  Connect to system ground.  This ground needs to be in common with the uC.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003eOUR EVALUATION RESULTS:\u003c\/h2\u003e\n\u003cp\u003eThis is a commonly used module for obstacle detection and basic range finding.  These are much more capable than the basic IR obstacle avoidance sensors that come in most sensor kits and are highly recommended if you are building a motorized robotic car and want to implement a nicely capable obstacle avoidance system or just want to measure distance for some other reason.  The module has a built-in small microprocessor which does all the heavy lifting of managing the ultrasonic sensors.\u003c\/p\u003e\n\u003cp\u003eAn optional HC-SR04 Ultrasonic Distance Measurement Control module is also available.  This module takes care of controlling the sensor and has a 3-digit 7-segment display to show the distance in centimeters without the need for using a separate MCU which may be handy for some applications.\u003c\/p\u003e\n\u003cp\u003eIf you want to upgrade a little, the HY-SRF05 has a little better accuracy and distance but otherwise is very similar and is software compatible.  It does have 5 pins instead of 4, though only 4 are used.\u003c\/p\u003e\n\u003cp\u003eIf you want to upgrade another notch, the US-100 is a similar sensor module that can operate in ping mode like the HC-SR04, but which optionally takes care of the echo timing and temperature measurement for you and provides the computed distance data through a serial interface.\u003c\/p\u003e\n\u003cp\u003eThe program below implements a basic setup where the  measured range is displayed in centimeters, inches and feet.  Since the speed of sound varies with the temperature, for maximum accuracy the temperature can be measured and used in the calculation, so this is broken out in the code below but defaults to 20C.  It would be straight forward for instance to implement a DS18B20 or LM35 temperature sensor so that the actual temperature can be measured and used in the calculation.\u003c\/p\u003e\n\u003ch3\u003eHC-SR04 Ultrasonic Range Finder Module Program\u003c\/h3\u003e\n\u003cpre class=\"copy-the-code-target\"\u003e\u003cspan\u003e\/*\u003c\/span\u003e\n\u003cspan\u003e * HC-SR04 Test\u003c\/span\u003e\n\u003cspan\u003e *\u003c\/span\u003e\n\u003cspan\u003e * Exercises the ultrasonic range finder module and prints out the current measured distance\u003c\/span\u003e\n\u003cspan\u003e * VCC - connect to 5V\u003c\/span\u003e\n\u003cspan\u003e * GND - connect to ground\u003c\/span\u003e\n\u003cspan\u003e * TRIG - connect to digital pin 12.  Can be any digital pin\u003c\/span\u003e\n\u003cspan\u003e * ECHO - connect to digital pin 13.  Can be any digital pin\u003c\/span\u003e\n\u003cspan\u003e *\/\u003c\/span\u003e\n\u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eTRIG_PIN\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e12\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003econst\u003c\/span\u003e \u003cspan\u003eint\u003c\/span\u003e \u003cspan\u003eECHO_PIN\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e13\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003etemp_In_C\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e20.0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Can enter actual air temp here for maximum accuracy or read with sensor\u003c\/span\u003e\n\u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003espeed_Of_Sound\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e          \u003cspan\u003e\/\/ Calculated speed of sound based on air temp\u003c\/span\u003e\n\u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003edistance_Per_uSec\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e      \u003cspan\u003e\/\/ Distance sound travels in one microsecond at that temp\u003c\/span\u003e\n\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Initialization\u003c\/span\u003e\n\u003cspan\u003e\/\/=============================================================================== \u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003esetup\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003epinMode\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eTRIG_PIN\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e\u003cspan\u003eOUTPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003epinMode\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eECHO_PIN\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e\u003cspan\u003eINPUT\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003e\/\/ Formula to calculate speed of sound in meters\/sec based on temp\u003c\/span\u003e\n  \u003cspan\u003espeed_Of_Sound\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003e331.1\u003c\/span\u003e \u003cspan\u003e+\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e0.606\u003c\/span\u003e \u003cspan\u003e*\u003c\/span\u003e \u003cspan\u003etemp_In_C\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \n  \u003cspan\u003e\/\/ Calculate the distance that sound travels in one microsecond in Centimeters\u003c\/span\u003e\n  \u003cspan\u003edistance_Per_uSec\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003espeed_Of_Sound\u003c\/span\u003e \u003cspan\u003e\/\u003c\/span\u003e \u003cspan\u003e10000.0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003ebegin\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e9600\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003e\/\/  Main\u003c\/span\u003e\n\u003cspan\u003e\/\/===============================================================================\u003c\/span\u003e\n\u003cspan\u003evoid\u003c\/span\u003e \u003cspan\u003eloop\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e\n  \u003cspan\u003efloat\u003c\/span\u003e \u003cspan\u003eduration\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003edistanceCm\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003edistanceIn\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003edistanceFt\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n \n  \u003cspan\u003edigitalWrite\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eTRIG_PIN\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eHIGH\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e       \u003cspan\u003e\/\/ Set trigger pin HIGH \u003c\/span\u003e\n  \u003cspan\u003edelayMicroseconds\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e10\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e              \u003cspan\u003e\/\/ Hold pin HIGH for 10 uSec\u003c\/span\u003e\n  \u003cspan\u003edigitalWrite\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eTRIG_PIN\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003eLOW\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e        \u003cspan\u003e\/\/ Return trigger pin back to LOW again.\u003c\/span\u003e\n  \u003cspan\u003eduration\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003epulseIn\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eECHO_PIN\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e\u003cspan\u003eHIGH\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Measure time in uSec for echo to come back.\u003c\/span\u003e\n \n  \u003cspan\u003e\/\/ convert the time data into a distance in centimeters, inches and feet\u003c\/span\u003e\n  \u003cspan\u003eduration\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eduration\u003c\/span\u003e \u003cspan\u003e\/\u003c\/span\u003e \u003cspan\u003e2.0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Divide echo time by 2 to get the time for the sound to travel in one direction\u003c\/span\u003e\n  \u003cspan\u003edistanceCm\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003eduration\u003c\/span\u003e \u003cspan\u003e*\u003c\/span\u003e \u003cspan\u003edistance_Per_uSec\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003edistanceIn\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003edistanceCm\u003c\/span\u003e \u003cspan\u003e\/\u003c\/span\u003e \u003cspan\u003e2.54\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003edistanceFt\u003c\/span\u003e \u003cspan\u003e=\u003c\/span\u003e \u003cspan\u003edistanceIn\u003c\/span\u003e \u003cspan\u003e\/\u003c\/span\u003e \u003cspan\u003e12.0\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n   \n  \u003cspan\u003eif\u003c\/span\u003e \u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003edistanceCm\u003c\/span\u003e \u003cspan\u003e\u0026lt;=\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e{\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"Out of range\"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003e}\u003c\/span\u003e\n  \u003cspan\u003eelse\u003c\/span\u003e \u003cspan\u003e{\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003eduration\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"uSec, \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003edistanceCm\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e \u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"cm,  \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003edistanceIn\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e\u003cspan\u003e0\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"in, \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003edistanceFt\u003c\/span\u003e\u003cspan\u003e,\u003c\/span\u003e\u003cspan\u003e1\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprint\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e\"ft, \"\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n    \u003cb\u003e\u003cspan\u003eSerial\u003c\/span\u003e\u003c\/b\u003e\u003cspan\u003e.\u003c\/span\u003e\u003cspan\u003eprintln\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e\n  \u003cspan\u003e}\u003c\/span\u003e\n  \u003cspan\u003edelay\u003c\/span\u003e\u003cspan\u003e(\u003c\/span\u003e\u003cspan\u003e1000\u003c\/span\u003e\u003cspan\u003e)\u003c\/span\u003e\u003cspan\u003e;\u003c\/span\u003e  \u003cspan\u003e\/\/ Delay between readings\u003c\/span\u003e\n\u003cspan\u003e}\u003c\/span\u003e\n\u003cbutton class=\"copy-the-code-button\" data-style=\"svg-icon\" title=\"Copy\"\u003e\u003csvg aria-hidden=\"true\" role=\"img\" class=\"copy-icon\" viewbox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"currentColor\" focusable=\"false\"\u003e\u003cpath d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z\"\u003e\u003c\/path\u003e\u003cpath d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\u003c\/pre\u003e\n\u003cp\u003eThe board has a 4 small holes that can be used for mounting if desired.  There is also a plastic holder available to mount the module as shown below.\u003c\/p\u003e\n\u003ch2\u003eBEFORE THEY ARE SHIPPED, THESE MODULES ARE:\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSample inspected and tested per incoming shipment.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003eNotes: \u003c\/em\u003e\u003c\/p\u003e\n\u003col\u003e\n\u003cli\u003e\u003ci\u003eActive circuitry is on the back of the module, so care should be used to avoid possible electrical shorts.\u003c\/i\u003e\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003chr\u003e\n\u003ch2\u003e\u003cstrong\u003eTECHNICAL SPECIFICATIONS\u003c\/strong\u003e\u003c\/h2\u003e\n\u003ctable class=\"table table-hover\" width=\"1069\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eMaximum Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          V\u003csub\u003ecc\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e4.5 – 5.5V  (5V typical)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          I\u003csub\u003eMax\u003c\/sub\u003e\n\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eMaximum Current Draw\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u0026lt;15 mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eOperating Ratings\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Frequency\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eDetector Center Frequency\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e40 kHz\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Trigger\u003c\/td\u003e\n\u003ctd width=\"264\"\u003ePulse Width\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u0026gt;= 10uSec\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Detection Distance\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e2 cm – 400 cm\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Measurement Resolution\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e3 mm (typical)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e          Detection Angle\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e± 15 degrees\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eL x W (PCB)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e45 x 21 mm (1.77 x 0.8″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003eDia x H (Ultrasonic Sensors)\u003c\/td\u003e\n\u003ctd width=\"229\"\u003e16 x 12 mm (0.62 x 0.47″)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"145\"\u003e\u003cstrong\u003eCountry of Origin\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"264\"\u003e\u003c\/td\u003e\n\u003ctd width=\"229\"\u003eChina\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c!----\u003e","brand":"Keszoox","offers":[{"title":"Default Title","offer_id":45680857579755,"sku":"","price":4.87,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0677\/1005\/8731\/files\/HC-SR04-Ultrasonic-Range-Finder.jpg?v=1723006166","url":"https:\/\/keszooxstore.com\/products\/hc-sr04-ultrasonic-range-finder-module","provider":"Keszoox","version":"1.0","type":"link"}