![]() And of course I’ll have some sample code and projects for you to try out. We’ll also put it through some tests to see how accurate it is and we’ll look at how we can possibly improve upon that accuracy. So read on and I’ll show you how to hook up and use the HC-SR04 Ultrasonic Distance Sensor. ![]() ![]() And as a bonus it even looks cool, like a pair of Wall-E Robot eyes for your latest robotic invention! It’s a low current device so it’s suitable for battery powered devices. This ultrasonic distance sensor is capable of measuring distances between 2 cm to 400 cm (that’s about an inch to 13 feet for those of you who don’t “speak” Metric). It can also be used with the Raspberry Pi, however since the HC-SR04 requires 5-volt logic you’ll need a couple of resistors to interface it with the Pi’s 3.3 volt GPIO port. The HC-SR04 can be hooked directly to an Arduino or other microcontroller and it operates on 5 volts. This tiny sensor is capable of measuring the distance between itself and the nearest solid object, which is really good information to have if you’re trying to avoid driving into a wall! The HC-SR04 Ultrasonic Distance Sensor is an inexpensive device that is very useful for robotics and test equipment projects.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |