Saturday, March 23, 2013

Ultrasonic Distance Sensor HC-SR04

I was figuring out how to use my range sensor. I downloaded the Arduino library for it here:
HCSR04 Ultrasonic Library

For directions on how to install an Arduino library go to
Arduino Libraries

The library comes with examples, I was using the UltrasonicStdDev to test my sensor.

Here is a diagram of how to wire the sensor to the Arduino:

I also tried this New Ping library from:
I had trouble getting it to run:

No comments:

Post a Comment