Interfacing an active IR sensor

Refer to Figure 6.16 for connection details:

Figure 6.16

In Figure 6.16:

  • The O/P terminal of the sensor is connected to GPIO 05 (pin 29) of Raspberry Pi
  • The GND terminal of the sensor is connected to GND (pin 06) of Raspberry Pi
  • The Vcc terminal of the sensor is connected to +5V (pin 04) of Raspberry Pi

Get Internet of Things with Raspberry Pi 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.