Posts

Showing posts from November, 2012

HC-SR04 Ultrasonic Sensor

Image
Introduction: The HC-SR04 Ultrasonic Sensor is a very affordable proximity/distance sensor that has been used mainly for object avoidance in various robotics projects . It essentially gives your Arduino eyes / spacial awareness and can prevent your robot from crashing or falling off a table. It has also been used in turret applications, water level sensing, and even as a parking sensor. This simple project will use the HC-SR04 sensor with an Arduino and a Processing sketch to provide a neat little interactive display on your computer screen. Parts Required: Freetronics Eleven or any compatible Arduino. HC-SR04 Ultrasonic Sensor Mini Breadboard 4.5cm x 3.5cm Protoshield and female header pins (not essential - but makes it more tidy) Wires to connect it all together The Video: The Arduino Sketch:      The above sketch was created using Fritzing . Arduino Code: You can download the Arduino IDE from this site . 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19...