HC-89 Photoelectric Infrared Slot Sensor – Interrupt Counter Module
HC-89 Photoelectric Infrared Slot Sensor – Interrupt Counter Module
The HC-89 is a correlation photoelectric infrared slot sensor designed for non-contact object detection, counting, and position sensing. It uses an infrared emitter and phototransistor in a slotted housing to detect when an object passes through the gap, providing a digital output. This module is ideal for DIY automation, educational projects, and industrial applications requiring precise, fast response.
Key Specifications
| Specification | Value |
|---|---|
| Operating Voltage | 3.3V – 5V DC |
| Slot Width | 3mm |
| Output Type | Digital (TTL) |
| Detection Method | Infrared photoelectric (correlation) |
| Response Time | <1ms |
| Dimensions | 20mm x 10mm x 8mm (approx) |
What You Can Build With This
- Object counter for conveyor belts or DIY dispensers
- Rotational speed measurement using an encoder wheel
- Door or drawer open/close detection
- Limit switch replacement for precise homing in 3D printers or CNC machines
Compatibility
Works with any microcontroller that supports 3.3V or 5V digital inputs, including Arduino Uno, Mega, Nano, ESP32, ESP8266, and Raspberry Pi Pico. The sensor module includes a built-in comparator, so no external circuitry is required; simply connect VCC, GND, and OUT to a digital pin. It can drive small loads directly or interface with logic-level inputs.
Wiring Notes
Connect the VCC pin to 5V (or 3.3V), GND to common ground, and OUT to a digital input pin on your microcontroller. For reliable operation, ensure the slot is free of dust. Some modules include an indicator LED that lights when an object is detected.
Why Buy from Compoden
Every component is sourced from verified suppliers and tested for compatibility before listing. We've spent 10 years building projects for makers, schools, and institutions across India. Ships from Bengaluru in 3-5 days. If defective on arrival, replace within 7 days.
Is this compatible with Arduino?
Yes, the HC-89 outputs a digital signal that can be read by any Arduino digital pin. Just connect VCC to 5V, GND to GND, and OUT to a digital input.
Can I use this for speed detection?
Absolutely. Place a rotating wheel with slots or teeth in the sensor gap to detect pulses; each pulse corresponds to a tooth passing, allowing RPM calculation.
What if no object is in the slot?
The output is normally HIGH when the IR beam is unblocked, and goes LOW when an object blocks the beam. Check your module's polarity; some may invert the logic.
📦 Free Setup Handoff Document Included
Every Compoden order includes a free setup handoff document — step-by-step instructions to get your component working within minutes. Download it via QR code on your package. The handoff document is also trained to help you troubleshoot the majority of problems.
Ask Soldr above what you can build with this — it knows every Compoden kit this part appears in.
Shipping Information
- Prepaid Orders: ₹75 for orders up to ₹999, FREE shipping above ₹999
- COD Orders: ₹125 shipping + ₹50 COD fee = ₹175 total
- Delivery Timeline: Dispatch in 1-2 days, delivery in 2-7 days depending on location
Returns & Warranty
- 7-Day Return: Manufacturing defects only (approval required)
- Warranty: 7 days from delivery
- Non-Returnable: Batteries, consumables, cut wires, clearance items