HS-KEY1B Key Switch Module - Digital Push Button Input Board for Arduino and STEM ProjectsThe HS-KEY1B Key Switch Module is a simple digital push-button input board for menu controls, mode…
The HS-KEY1B Key Switch Module is a simple digital push-button input board for menu controls, mode selection, counters, games, and first Arduino lessons. It gives beginners a clean way to connect a button to a controller without building a switch circuit from loose components.
Use it with the ELAB Nano V3, MB 102 Breadboard Kit, or output modules like the RGB Full Color LED Module. For multi-key input, compare it with the 4-way key switch module already in the catalog.
Mechanical buttons need debouncing in software. Confirm whether the module output is active-high or active-low before finalizing code.
| Parameter | Value |
|---|---|
| SKU | HS-KEY1B |
| Product Type | Key switch / push button module |
| Output | Digital button state |
| Interface | Signal, VCC, GND depending on board label |
| Typical Supply | 3.3V / 5V controller systems |
| Host Requirement | GPIO input |
| Use Cases | Menus, counters, start/stop controls, games |
| Software Need | Debounce recommended |
| Mounting | Panel or board mount |
| Signal Logic | Verify active level by testing |
Read the key switch digital output.
const int sensorPin = 2;void setup() { Serial.begin(115200); pinMode(sensorPin, INPUT);}void loop() { Serial.println(digitalRead(sensorPin)); delay(100);}
Turn on an LED when the module is pressed.
const int sensorPin = 2;const int ledPin = 13;void setup() { pinMode(sensorPin, INPUT); pinMode(ledPin, OUTPUT);}void loop() { digitalWrite(ledPin, digitalRead(sensorPin));}
Monitor the digital output from a Pico-style board.
from machine import Pinimport timesensor = Pin(15, Pin.IN)while True: print(sensor.value()) time.sleep(0.1)
Q: What is this used for?
A: Digital push-button input.
Q: Does it output analog values?
A: No, it outputs a digital state.
Q: Can I use internal pull-ups?
A: Yes, if the wiring is active-low.
Q: Does it need debounce?
A: Yes.
Q: Can it start a motor or relay?
A: Yes, through controller code and a driver.
Q: Why does it read backward?
A: The module logic may be active-low.
Q: Can it work with ESP32?
A: Yes, if signal voltage is compatible.
Q: What should I test first?
A: Pin mapping, active level, and debounce timing.
We offer fast and reliable shipping worldwide. All orders are carefully packaged and shipped within 1–3 business days after payment confirmation.
Standard shipping, expedited shipping and express delivery options are available at checkout. Delivery time depends on your destination country and local logistics.
Only logged in customers who have purchased this product may leave a review.
Add Related products to weekly line up
Special Ofers For Subscribers