35+ Ultrasonic Sensor Hc-Sr04 Schematic Gif. The following guide is universally since it has to be followed irrespective of the type of computational device used. Using the speed formula (speed = distance / time).
This tutorial includes working, pinout, specs, datasheet, wiring, library, code & arduino project.
The datasheet of the sensor can be found at the following link: The paralax sensor only has three pins, but all of the code can be used for this one whith. It emits an ultrasound at 40 000 hz (40khz) which travels through the air and if there is an object or obstacle on its path it will bounce back to the module. The datasheet of the sensor can be found at the following link: