Featured Video Play Icon

KY-010 Photo Interrupter Module | Optical Broken Module as a momentary switch with Arduino

This post shows how to trigger your lights or electrical appliance ON or OFF with the working of Photo Interrupter Module or Optical Broken Module as a momentary switch using Arduino.


The Optical Broken Module

The Photo Interrupter Module detects if the pathway is optically broken or not.


You can buy it from here.

Parts Needed

You need to have the following parts

  • Arduino (Any version)
  • 1x KY-010
  • 1x One-Channel Relay module 5V
  • Jumper Wires
  • Light Lamp

For Arduino

Wiring Photo Interrupter Module

Pin Wiring KY-010 to Arduino
OUT Digital Pin – 2

Wiring Relay

Pin Wiring relay to the Arduino
S DIgital Pin – 13
+ 5V

Schematics For Arduino

Assemble all the parts by following the schematics below:


Connect the light lamp to the relay.

Coding Arduino

  • Upload the code to the Arduino.
  • Break the pathway and it will turn on the switch.

Leave a Reply

Close Menu
%d bloggers like this: