课程: Raspberry Pi Weekly

免费学习该课程!

今天就开通帐号,24,600 门业界名师课程任您挑!

IR rangefinder project

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,…

内容