Description
The KY-004 Key Switch Module is a simple digital push-button that’s perfect for adding user input to Arduino, Raspberry Pi, and other microcontroller projects.
It outputs a HIGH or LOW signal when the button is pressed, making it ideal for controlling LEDs, motors, menus, or other interactive elements in your build.
This module is ideally suited to adding a button to your projects and will output a high signal when pressed.
The small nature of the entire module makes this keypad ideal for use just about anywhere on your project and ideal for debugging a project.
Microcontrollers, such as the Arduino communicate with switches by using the standard button libraries.
- Module: KY-004
- Function: Momentary push-button switch
- Output Type: Digital (0/1)
- Operating Voltage: 3.3V – 5V (fully compatible with Arduino and Pi)
- 3-Pin Interface: VCC, GND, Digital Output (DO)
- Built-in Pull-up Resistor – stable signal response
- Compact PCB with easy breadboard integration
- 6mm x 6mm x 5mm tactile switch
- Push to make
- Board size : 18mm x 15mm
Key Features:
- Module: KY-004
- Function: Momentary push-button switch
- Output Type: Digital (0/1)
- Operating Voltage: 3.3V – 5V (fully compatible with Arduino and Pi)
- 3-Pin Interface: VCC, GND, Digital Output (DO)
- Built-in Pull-up Resistor – stable signal response
- Compact PCB with easy breadboard integration
What’s Included:
- 1x KY-004 Key Switch Push Button Module
Great For:
- User Input for Arduino/Raspberry Pi Projects
- Game Controller Prototyping
- Menu Selection & Controls
- Electronics Learning Kits & STEM Education
- General Microcontroller I/O Testing
Usage Tips:
- Reads LOW when pressed (active low)
- Can be used with digitalRead() in Arduino
- Debouncing in code is recommended for accurate readings


