HC-SR04 4-pin ping sensor

This is a neat little device that you can hook to an Arduino micro-controller.  It can sense up to 2 meters with very good accuracy . You can get it on amazon for around 12 bucks. Stay tuned for cool projects that include this sensor.

find the code used at http://pastebin.com/UXXwhFFU

this code will only turn a light on when the object is closer than 90 cm and off when father away

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>