
1 / 4 · Click to enlarge
AI Summary
The HC-020K is an optical encoder sensor module that measures speed and direction using a slotted disc and dual TTL outputs. Its 20-line disc and 100kHz frequency rating make it ideal for precise motor feedback in robotics and automation projects.
Key Highlights
- Dual-channel A/B TTL output for quadrature encoding
- 20-line encoder disc for accurate pulse generation
- Maximum measurement frequency up to 100kHz
- Infrared photoelectric sensor with 0.01mm resolution
- Operates from 4.5V to 5.5V DC, under 20mA
- Compact module with 24mm encoder disc included
Ideal For
- Robotics hobbyists building motor feedback systems
- Students learning about optical encoders and quadrature signals
- Engineers prototyping conveyor or motor control
- Makers using Arduino, Raspberry Pi, or ESP32
- Educators demonstrating speed measurement principles
Buying Tip
Check that your project’s logic level is 5V compatible; if using a 3.3V MCU, ensure the TTL outputs are within its input tolerance or use level shifting.
Elecvora expert review
Our verdict
The HC-020K is a straightforward, reliable optical encoder module that offers dual-channel output and high-frequency response at a low cost. It is well-suited for hobbyist and educational motion control projects that need basic speed and direction feedback.
AI-assisted analysis based on the manufacturer's specifications. Not a hands-on lab test.
Pros
- Dual A/B outputs enable direction sensing
- High 100kHz frequency rating for fast motors
- Simple TTL interface with common MCUs
- Includes encoder disc and jumper wires
- Low power consumption
Cons
- Requires a 5V supply, not directly compatible with 3.3V logic without level shifting
- No mounting holes or bracket included for easy attachment
Best for
Robotics and motor control projects needing basic encoder feedback
Not ideal for
Applications requiring high-resolution absolute positioning or 3.3V direct connection
Specifications
| Shipping Weight | 0.007 kg |
|---|---|
| Shipping Dimensions | 7 × 5 × 2 cm |
What's in the box
- 1 x HC-020K Double Speed Measuring Sensor Module
- 1 x 20-Line Encoder Disc (24mm)
- 3 x Pin Jumper Wires
Frequently Asked Questions
What is the maximum measurement frequency of the HC-020K?
Can I use the HC-020K with a 3.3V microcontroller like ESP32?
What is included in the package?
How do I determine rotation direction with this sensor?
What is the resolution of the encoder disc?
How should I care for the sensor module?
Overview
The HC-020K is a double speed measuring sensor module built around an infrared photoelectric encoder. It detects the passage of slots in the included 20-line encoder disc and outputs two TTL-level signals (A and B) that can be used to calculate both rotational speed and direction. This makes it a practical choice for motor feedback, position sensing, and motion control in robotics, conveyor systems, and educational projects.
Key Features
- Quadrature output: Dual A and B channels provide direction and speed information.
- High frequency response: Handles signals up to 100kHz for high-speed rotation.
- Fine resolution: 20-line disc and 0.01mm measurement resolution support precise pulse generation.
- Simple interface: TTL digital output connects directly to common microcontrollers.
- Low power: Draws less than 20mA at 4.5V–5.5V DC.
- Compact form factor: Small board with a 24mm encoder disc and 4mm inner diameter.
Specifications Explained
Dual-channel A/B TTL output: The two output signals are phase-shifted, allowing you to determine both the speed and the direction of rotation by comparing their order. This is known as quadrature encoding.
20-line encoder disc: The disc has 20 slots, so each full rotation produces 20 pulses per channel. Combined with the 0.01mm measurement resolution, this gives fine feedback for motor control.
Maximum measurement frequency: At up to 100kHz, the sensor can keep up with fast-spinning motors without missing pulses, making it suitable for high-RPM applications.
Operating voltage: The module accepts 4.5V to 5.5V DC, matching common 5V logic systems. The infrared LED has a forward voltage of 1.6V and draws less than 20mA.
Compatibility and Requirements
The HC-020K outputs TTL-level digital signals and can interface with microcontrollers that support digital input, such as Arduino, Raspberry Pi, ESP32, and STM32. No additional driver is required. You will need to provide a 5V DC power source within the specified range and connect the A and B outputs to your MCU’s input pins. The included jumper wires simplify wiring.
Typical Uses
- Motor speed and direction feedback in robotics
- Conveyor belt speed monitoring
- Educational projects demonstrating encoder principles
- Industrial automation and embedded system development
- Position sensing for rotating mechanisms
What's in the Box
- 1 x HC-020K Double Speed Measuring Sensor Module
- 1 x 20-Line Encoder Disc (24mm outer diameter, 4mm inner diameter)
- 3 x Pin Jumper Wires













