HW-040 360° Rotary Encoder Module with Push Button for Arduino
360° Rotary Encoder Module HW-040 — Precise Rotational Input for Arduino Projects
The HW-040 Rotary Encoder Module is a versatile, high-quality electronic sensor brick designed for makers, hobbyists, and developers who need accurate rotational input in their Arduino or microcontroller projects. Unlike a traditional potentiometer, this encoder offers unlimited clockwise and counterclockwise rotation, counting every pulse with precision — making it ideal for menus, volume controls, motor control, and custom interfaces.
Key Features
- Full 360° Continuous Rotation: Accurately counts pulses in both clockwise and counterclockwise directions with no rotational limits.
- Built-in Push Button: Integrated push-button switch adds an extra input dimension — press to confirm, select, or trigger a function.
- PCB + Brass Construction: Durable PCB board paired with a brass encoder shaft for long-lasting, reliable performance.
- Arduino Compatible: Designed as a "brick" sensor module for easy plug-and-play integration with Arduino, Raspberry Pi, ESP32, and other popular development boards.
- Compact Form Factor: Small footprint makes it perfect for prototyping and embedding in finished projects.
- Multiple Quantity Options: Available in packs of 1 to 8 pieces — stock up for multiple builds.
Specifications
- Model: HW-040
- Material: PCB + Brass
- Rotation: 360° unlimited (clockwise & counterclockwise)
- Output: Incremental pulse signal (A, B, SW pins)
- Compatible With: Arduino, ESP32, Raspberry Pi, STM32, and similar platforms
- Includes: Push button switch integrated into shaft
What Can You Build With It?
The HW-040 encoder module is a go-to component for a wide range of DIY electronics projects:
- Digital volume or brightness controls
- Menu navigation systems for OLED/LCD displays
- Stepper motor speed and direction control
- Custom game controllers and simulators
- CNC machine jog wheels
- Home automation input devices
How It Works
The rotary encoder generates two phase-offset square wave signals (Channel A and Channel B) as the shaft turns. By reading the relationship between these two signals, your microcontroller can determine both the direction and number of steps of rotation. The integrated push button provides a simple LOW signal when pressed, giving you a clean, multi-function input component in one tidy package.
For more information on working with electronic sensors and microcontrollers in DIY projects, visit the National Institute of Standards and Technology (NIST) — Electronics resource page.
Frequently Asked Questions
Q: What is the HW-040 Rotary Encoder Module and what does it do?
A: The HW-040 is a 360° incremental rotary encoder module that detects rotational movement and direction. It outputs pulse signals (channels A and B) that a microcontroller like Arduino can read to determine how far and in which direction the shaft has been turned. It also features a built-in push button for added functionality.
Q: Is the HW-040 Rotary Encoder compatible with Arduino?
A: Yes — the HW-040 is specifically designed as a "brick" sensor module for easy integration with Arduino boards, as well as Raspberry Pi, ESP32, STM32, and other common development platforms. Standard Arduino encoder libraries can be used right out of the box.
Q: How is this rotary encoder different from a potentiometer?
A: Unlike a potentiometer, the HW-040 rotary encoder has no rotational limit — it can spin continuously in either direction and counts every pulse, making it far more flexible for applications like menu navigation, motor control, and any input where you need to track relative position without a stop.
Q: What materials is the HW-040 module made from?
A: The module is constructed from a durable PCB (printed circuit board) paired with a brass encoder shaft, ensuring solid electrical connections and mechanical durability over repeated use.
Q: How many units can I order at once?
A: This listing is available in packs of 1 to 8 pieces, so you can stock up for multiple projects or prototyping sessions at once.