The HC-SR04 is an excellent low-cost ultrasonic sensor that works really well with Arduino micro-controllers.
These sensors are very easy to use. First connect the VCC and GND pins to the Arduino’s +5V and GND pins. Next connect the Trigger and Echo pins to two digital pins on the Arduino, perhaps pins 2 and 3 for example.
Setting the Trigger Pin to HIGH for 10 microseconds will activate a measurement reading and then the pulseIn() function can be called on the Echo Pin to determine the distance. The length of the incoming pulse is proportional to the distance measured.
However, rather than writing this code yourself, we recommend using the excellent NewPing library for the Arduino.
We import these components from China and put them through quality control to ensure they are 100% working. We usually ship orders within 24 hours (from Colorado).
Check out our Octasonic breakout board for connecting 8 of these sensors to an Arduino using only one dedicated pin.
|Shipping Rate||First item||Additional items|
United States Postal Service: First Class Mail Parcel
We recognize our top users by making them a Tindarian. Tindarians have access to secret & unreleased features.
We look for the most active & best members of the Tindie community, and invite them to join. There isn't a selection process or form to fill out. The only way to become a Tindarian is by being a nice & active member of the Tindie community!
I'm a professional software developer but enjoy tinkering with Arduoinos, Raspberry Pis, electronics and 3D printing in my spare time.
I've invented a couple handy boards so far, which I sell here to help cover some of the costs of my hobby.