I started to look around at (i.e., google) the various options. To keep things simple, decided on the HY-SRF05 mostly due to the cost and availability on Amazon Prime (that keeps shipping costs down as well). and availability of code out there to make measurements. The parts list for this experiment is very simple.
- HY-SRF05: https://www.virtuabotix.com/feed/?p=209
- Arduino UNO: http://www.sparkfun.com/products/11021
- Some wires: http://www.sparkfun.com/products/9385
- Breadboard: http://www.sparkfun.com/products/9567
As I was looking, I found lots of code and examples about how to wire up the device.
- Datasheet: http://www.robotstorehk.com/sensors/doc/srf05tech.pdf
- Code and wiring diagrams: http://www.robot-electronics.co.uk/htm/arduino_examples.htm
- Code and pictures: http://luckylarry.co.uk/arduino-projects/arduino-sonic-range-finder-with-srf05/
- Simple: http://wiring.org.co/learning/basics/sfr0405ranger.html
- Manufacturer: https://www.virtuabotix.com/feed/?p=209
- Blog: http://robotsandelectronics.blogspot.com/2012/02/hy-srf05-sensor.html
First thing, is to wire up the device. Here is a simple wiring diagram of the connections.
Here is an image of the wiring
Then I setup the sensor and pointed it at a wall. I measured the distance to the wall as 0.381 meters. I collected about 1 minute of returns from the sensor and calculated the mean (0.3888) and standard deviation (3.3548e-04). So things seem pretty close.
Here is a histogram of the values.
This was by far the easiest of the sensors to find information about, connect, and get out sensible readings. The hardest part seems to be how to come up with a good way to mount the sensor. As usual, all the code is located on github at:
https://github.com/mark-r-stevens/Ardadv/tree/master/device/sensors/ultrasonic
No comments:
Post a Comment