KY-010 Photo Interrupter Module

KY-010 Photo Interrupter Module image

View on Amazon

Overview

The KY-010 is a photo interrupter module that detects objects by sensing interruptions in an infrared beam. It's ideal for applications requiring non-contact object detection, such as counting or speed measurement.

About KY-010 Photo Interrupter Module

The KY-010 Photo Interrupter Module is a digital sensor that detects the presence or absence of an object within its slot. It consists of an infrared emitter and receiver facing each other, forming a light barrier. When an object passes through the slot, it interrupts the infrared beam, causing a change in the output signal. This module operates at a voltage range of 3.3V to 5V, making it compatible with various microcontrollers such as Arduino and ESP32. It’s commonly used in applications like object counting, edge detection, and motor speed measurement.

Where to Buy

Get Your KY-010

KY-010 Photo Interrupter Module

Starting from

1$ per unit

Amazon com
Amazon.com Ships worldwide
Amazon de
Amazon.de Ships to EU
Aliexpress
AliExpress Best value option

πŸ’‘ Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specs

KY-010 Specifications

Complete technical specification details for KY-010 Photo Interrupter Module

πŸ“Š Technical Parameters

Operating Voltage 3.3V - 5V
Slot Width 5 mm
Output Type Digital
Dimensions 19 mm x 15 mm
Pin Configuration

KY-010 Pinout

The **KY-010** is a 3-pin photo interrupter (optical light barrier) module:

Visual Pinout Diagram

Pinout Diagram Primary
KY-010 Photo Interrupter Module pinout
3
Total Pins

Pin Types

Power
2
Communication
1

Quick Tips

πŸ”Œ

**Interface**: Digital output (light barrier detection),πŸ’‘ **Sensor**: Infrared emitter/receiver pair with slot

🎯

**Detection**: Beam interruption changes output state,⚑ **Power**: 3.3V or 5V operation

πŸ“

**Slot**: Object must pass through optical slot,🎯 **Applications**: Object counting, speed measurement, edge detection, position sensing

Pin Descriptions

Pin NameTypeDescriptionNotes
1 Pin (-)
Power

Ground connection

2 Pin (+)
Power

Power supply

3.3V or 5V

3 Pin (S)
Communication

Digital signal output

Changes state when beam interrupted

Connection Guide

Wiring KY-010 to ESP32

To interface the **KY-010** with an **ESP32** for optical interruption detection:

Visual Wiring Diagram

Wiring Diagram Recommended
KY-010 Photo Interrupter Module wiring with ESP32
3
Connections

Connection Status

Required
3

Protocol

Digital

Pin Connections

KY-010 PinConnectionESP32 PinDescription
1 Pin (-) Required
GND

Ground

2 Pin (+) Required
3.3V or 5V

Power supply

3 Pin (S) Required
GPIO15

Digital input (any GPIO)

πŸ’‘

**GPIO Selection**: Any digital GPIO pin works, GPIO15 is just an example

⚑

**Voltage**: Use 3.3V for ESP32 compatibility

🎯

**Object Detection**: Output changes when object blocks IR beam in slot

πŸ“Š

**Counting**: Ideal for counting objects on conveyor or rotating disk

Help & Support

KY-010 Troubleshooting

Common issues and solutions to help you get your sensor working

Common Issues

Debugging Tips

Code Examples

KY-010 Programming Examples

Ready-to-use code examples for different platforms and frameworks

Summary

Wrapping Up KY-010

The ESP32 KY-010 Photo Interrupter Module is a powerful KY-0xx module sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.

Best Practices

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Safety First

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.

Ready to Start Building?

Now that you have all the information you need, it's time to integrate the KY-010 into your ESP32 project and bring your ideas to life!