From the course: Raspberry Pi Weekly

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

IR rangefinder project

IR rangefinder project - Raspberry Pi Tutorial

From the course: Raspberry Pi Weekly

IR rangefinder project

- [Instructor] The Raspberry Pi is a great tool for exploring the use of sensors and motors. One of the easiest sensors to experiment with is an ultrasonic range finder, also known as the HC-SR04. Hi, I'm Mark Niemann-Ross, and welcome to this week's edition of Raspberry Pi Weekly. Every week we explore the Raspberry Pi and share useful tips. This inexpensive range finder sends out a high frequency pulse, then listens for the echo from a flat surface. The farther the distance, the longer it takes for the pulse to travel out and back. The range finder tells us when the signal has returned. So we have two tasks for the range finder to do. First, connect it to the Raspberry Pi and, second, run a program to control the Raspberry Pi. Let's start by connecting the Raspberry Pi to the range finder. There's a diagram to connect the Raspberry Pi to the HC-SR04. Before starting, be sure that power is disconnected. Now, place the range finder on the bread board. When all the wires are connected,…

Contents