Skip to Content

Encoder Light Blocking Photo Interrupter Sensor Module KY-010

The KY-010 light barrier module is a photo interrupter circuit mounted on a breakout board. It is a 3-pin module that brings its signal pin HIGH when an object blocks the light from traveling between its emitter and sensor. This sensor is ideal for detecting a card swipe through a slot or other applications where opening or closing detection is required.

Package Includes:

  • 1 x KY-010 Light Barrier Module

9.45 AED 9.45 AED Tax Included
9.45 AED Tax Included

Not Available For Sale

This combination does not exist.

Photoelectric Encoder

Terms and Conditions
30-day money-back guarantee
Shipping: 2-3 Business Days

 

Specifications:

  • Operating Voltage: 3.3V to 5V DC
  • Dimensions: 18.5mm x 15mm (0.728in x 0.591in)
  • Light Barrier Opening: 2mm wide x 4.7mm long

Pinout of the Module:

Pin Description
(-) GND
Middle +5V
S Signal Out

 

Example:

Connections:

Construction of a circuit with KY-010 and an LED

Code:

#define LASER 8
#define LED 7

void setup() {
  Serial.begin(9600);
  pinMode(LED, OUTPUT);
  pinMode(LASER, INPUT);
}

void loop() {
  boolean active = digitalRead(LASER);
  digitalWrite(LED, active ? HIGH : LOW);
}