{"product_id":"hc-89-photoelectric-infrared-slot-sensor-interrupt-counter-module","title":"HC-89 Photoelectric Infrared Slot Sensor – Interrupt Counter Module","description":"\u003ch1\u003eHC-89 Photoelectric Infrared Slot Sensor – Interrupt Counter Module\u003c\/h1\u003e\u003cp\u003eThe 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.\u003c\/p\u003e\u003ch2\u003eKey Specifications\u003c\/h2\u003e\u003ctable\u003e\n\u003cthead\u003e\u003ctr\u003e\n\u003cth\u003eSpecification\u003c\/th\u003e\n\u003cth\u003eValue\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eOperating Voltage\u003c\/td\u003e\n\u003ctd\u003e3.3V – 5V DC\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSlot Width\u003c\/td\u003e\n\u003ctd\u003e3mm\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eOutput Type\u003c\/td\u003e\n\u003ctd\u003eDigital (TTL)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eDetection Method\u003c\/td\u003e\n\u003ctd\u003eInfrared photoelectric (correlation)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eResponse Time\u003c\/td\u003e\n\u003ctd\u003e\u0026lt;1ms\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eDimensions\u003c\/td\u003e\n\u003ctd\u003e20mm x 10mm x 8mm (approx)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\u003ch2\u003eWhat You Can Build With This\u003c\/h2\u003e\u003cul\u003e\n\u003cli\u003eObject counter for conveyor belts or DIY dispensers\u003c\/li\u003e\n\u003cli\u003eRotational speed measurement using an encoder wheel\u003c\/li\u003e\n\u003cli\u003eDoor or drawer open\/close detection\u003c\/li\u003e\n\u003cli\u003eLimit switch replacement for precise homing in 3D printers or CNC machines\u003c\/li\u003e\n\u003c\/ul\u003e\u003ch2\u003eCompatibility\u003c\/h2\u003e\u003cp\u003eWorks 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.\u003c\/p\u003e\u003ch2\u003eWiring Notes\u003c\/h2\u003e\u003cp\u003eConnect 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.\u003c\/p\u003e\u003ch2\u003eWhy Buy from Compoden\u003c\/h2\u003e\u003cp\u003eEvery 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.\u003c\/p\u003e\u003cdetails\u003e\u003csummary\u003eIs this compatible with Arduino?\u003c\/summary\u003e\u003cp\u003eYes, 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.\u003c\/p\u003e\u003c\/details\u003e\u003cdetails\u003e\u003csummary\u003eCan I use this for speed detection?\u003c\/summary\u003e\u003cp\u003eAbsolutely. 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.\u003c\/p\u003e\u003c\/details\u003e\u003cdetails\u003e\u003csummary\u003eWhat if no object is in the slot?\u003c\/summary\u003e\u003cp\u003eThe 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.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdiv class=\"compoden-handoff\" style=\"margin-top:24px;padding:16px;background:#f0f4ff;border-left:4px solid #2B4D8F;border-radius:4px;\"\u003e\n  \u003cp style=\"margin:0 0 6px 0;font-weight:600;color:#1A3560;\"\u003e📦 Free Setup Handoff Document Included\u003c\/p\u003e\n  \u003cp style=\"margin:0;font-size:0.95em;color:#333;\"\u003eEvery 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.\u003c\/p\u003e\n\u003c\/div\u003e\n","brand":"Compoden","offers":[{"title":"Default Title","offer_id":53444955505005,"sku":"CDN-0273","price":45.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0999\/3997\/5533\/files\/image_1_5cab23f9-5375-4790-a945-d7eaf0e59714.jpg?v=1781512375","url":"https:\/\/compoden.com\/products\/hc-89-photoelectric-infrared-slot-sensor-interrupt-counter-module","provider":"Compoden","version":"1.0","type":"link"}