Site icon 14core.com

Wiring Photo Interrupter Light Blocking Switch with Raspberry Pi

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

Wiring Guide (Click the Image to Enlarge)

Compiling & Uploading the Code

C Source Code
[crayon-67f86ffc8042d609732002/]
Python Source Code
[crayon-67f86ffc80436601430549/]
 

Wiring Photo Interrupter Light Blocking Switch with Raspberry Pi
Facebooktwitterredditpinterestmail
Exit mobile version