LM393 Encoder Speed Sensor Module for RPM Measurement
LM393 Encoder Speed Sensor Module – Motor RPM Detection with Comparator
The LM393 Encoder is an infrared speed sensor module built around the LM393 comparator. It uses an IR emitter and phototransistor pair, interrupted by a rotating slotted disc, to generate accurate digital pulses. The on‑board comparator cleans up the raw signal, providing a crisp falling edge on each slot transition. Whether you need to measure motor RPM, count rotations for a robot odometer, or build a custom tachometer, this module delivers reliable performance with minimal wiring.
Key Specifications
| Specification | Value |
|---|---|
| Operating Voltage | 3.3V – 5V DC |
| Output Type | Digital TTL (Active Low) |
| Encoder Wheel Slots | 20 PPR (Pulses Per Revolution) |
| Module Dimensions | 32 × 14 mm (L × W) |
| Wheel Diameter | 24 mm |
| Output High Level | VCC (5V or 3.3V) |
What You Can Build With This
- Digital tachometer to monitor motor speed in real time
- Line‑following robot with closed‑loop speed feedback
- DIY anemometer rotation counter for wind speed measurement
- Robot odometer to track distance travelled
Compatibility
Works seamlessly with any microcontroller that has a digital input pin. Ideal for Arduino Uno, Nano, Mega, ESP8266, ESP32, and Raspberry Pi (use a voltage divider if connecting directly to Pi GPIO). The module outputs a 0–VCC pulse train, compatible with both 3.3V and 5V logic levels.
Wiring Notes
Connect VCC to 5V (or 3.3V), GND to ground, and OUT to any digital I/O pin. The on‑board comparator provides a clean signal without the need for external pull‑up resistors. For noisy environments, solder a 0.1µF ceramic capacitor between VCC and GND near the module pins.
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, it works with all 5V Arduino boards. Connect VCC to 5V, GND to GND, and OUT to any digital pin. Use Arduino’s pulseIn() or interrupts to count pulses.
How many pulses per revolution does the wheel provide?
The included encoder wheel has 20 slots, so you get 20 pulses per full revolution. Multiply the measured frequency by 3 to get RPM.
Can I use this sensor with a 3.3V system like ESP32?
Absolutely. Power the module with 3.3V from the ESP32, and the output will swing between 0V and 3.3V, safe for its GPIO pins.
📦 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.
What you can build with this
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