Optical encoder speed sensor (slot, LM393)
Slotted IR sensor that counts holes in an encoder wheel.
MeasuresInterruptions in a slot
InterfaceDigital pulse
Supply voltage3.3 to 5 V
SensorsReviewedMPN Slot speed sensorUsed in 6 projects
In short
What is the Optical encoder speed sensor (slot, LM393) and what is it used for?
Slotted IR sensor that counts holes in an encoder wheel. Makers use it for robot wheel speed.
How it works
An IR LED and phototransistor face each other across a slot.
Key specifications
| Sensor spec | Value |
|---|---|
| Measures | Interruptions in a slot |
| Interface | Digital pulse |
| Supply voltage | 3.3 to 5 V |
Pinout
VCC3.3 to 5 V
GNDGround
DODigital pulse when the slot is blocked
AOAnalog (on some boards)
How to use it
Put a slotted encoder disc through the gap and count pulses with an interrupt to measure speed: rpm = pulses per second × 60 ÷ slots in the disc.
Applications
Robot wheel speed
Builds that use it
Alternatives
- Incremental rotary encoder 600 PPRMuch higher resolution with direction
Common questions
What is the Optical encoder speed sensor (slot, LM393) used for?
In maker projects: robot wheel speed.
How does the Optical encoder speed sensor (slot, LM393) work?
An IR LED and phototransistor face each other across a slot.
What voltage does the Optical encoder speed sensor (slot, LM393) need?
3.3 to 5 V.
How do I connect the Optical encoder speed sensor (slot, LM393) to an Arduino or ESP32?
Digital pulse. Pins: VCC (3.3 to 5 V), GND (Ground), DO (Digital pulse when the slot is blocked), AO (Analog (on some boards)).
What can I use instead of the Optical encoder speed sensor (slot, LM393)?
Incremental rotary encoder 600 PPR.
