mattwilliamson / Arduino-Sonar

Ultrasonic rangefinder library for arduino

Home Page:http://appdelegateinc.com/blog/2010/11/22/keep-the-cat-out-of-the-cradle-with-arduino/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arduino Sonar

This is a simple library for the Arduino platform to read distance measurements from devices such as the Parallax Ping)) Ultrasonic Rangefinder. I bought a knockoff from Futurlec but it took about a month to get here from China through customs.

Circuit

Circuit

Action Shot

Action Shot

Installation

Copy the whole Sonar folder into to your Documents/Arduino/libraries folder.

There are more detailed directions in the Arduino docs

Usage

Using the library is dead simple:

#include <Ultrasound.h>
int pinSonar = 7;
Ultrasound sonar(pinSonar);
int distanceCentimeters = sonar.read();

Video

http://www.youtube.com/watch?v=tps1cN1xQcc

About

Ultrasonic rangefinder library for arduino

http://appdelegateinc.com/blog/2010/11/22/keep-the-cat-out-of-the-cradle-with-arduino/


Languages

Language:Java 57.1%Language:C++ 42.9%