New

ST188 Reflective Infrared (IR) Photoelectric Sensor – Obstacle / Line Detection
Part no.The ST188 is a small reflective IR sensor. It has an infrared LED and a phototransistor side by side in one 4-pin package. It detects objects, black and white lines, and reflective marks at short range, which makes it a good fit for line-following robots, RPM counters and position sensing.
- Same-day dispatch in Accra for orders before 14:00
- Pay securely with Mobile Money or card
- Genuine parts, tested before dispatch
Overview
The ST188 works by reflection. The built-in IR LED shines on a surface, and the phototransistor next to it picks up the light that bounces back. Light-coloured or shiny surfaces reflect strongly and turn the phototransistor on. Black or dark surfaces absorb the light and leave it off. That makes the ST188 a simple, low-cost way to tell black from white, count rotations on a marked wheel, or sense when an object is close.
This is the bare sensor, not a module. You'll need a current-limiting resistor for the LED (around 150–220 Ω at 5 V) and a pull-up resistor on the phototransistor (around 10 kΩ). You can read the output with an Arduino or ESP32 analog pin, or feed it to an LM393 comparator for a clean digital signal. The through-hole pins fit breadboards, perfboards and custom PCBs.
Specifications:
| Spec | Value |
|---|---|
| Type | Reflective photoelectric sensor (IR LED + phototransistor) |
| Detection distance | 4–13 mm (best around 8–10 mm) |
| IR wavelength | approx. 940–950 nm |
| LED forward voltage | approx. 1.2–1.5 V |
| LED forward current | 20 mA typical, 50 mA max |
| Output | Phototransistor (open collector) |
| Pins | 4 (LED anode, LED cathode, collector, emitter) |
| Mounting | Through-hole (THT) |
| Body size | approx. 10 × 6 × 7 mm |
Applications:
- Line-following and maze robots
- Tachometers and motor RPM measurement
- Rotary encoders and wheel speed sensing
- Pulse counting on water and electricity meters
- Paper and object detection in printers and vending machines
- Edge and proximity detection
Package includes: 1 × ST188 IR reflective sensor (or the pack quantity selected)