photo interrupter is transmission type photo sensor that integrates optical receiving and transmitting elements in a single package please see the diagram below. Since the method involves light blocking commonly named photo interrupter. A long life infrared photo diodes is applied for output while a single photo transistor and photo IC are integrated on the other side for light detection.

Component Required

  • Raspberry Pi / Banana Pi / Orange Pi  (If your using Banana Pi or Orange See first the GPIO Pin Mapping)
  • Photo Interrupter Light Blocking Module
  • Solder Less Bread Board
  • Jumper Wire / DuPont Wire

Wiring Guide (Click the Image to Enlarge)

Compiling & Uploading the Code

C Source Code

Python Source Code

 

Wiring Photo Interrupter Light Blocking Switch with Raspberry Pi
Facebooktwitterredditpinterestmail
Tagged on:                                 

JLCPCBPCBgogoPCBway4pcb

Leave a Reply

Your email address will not be published. Required fields are marked *