# Can i control a Keypad 4x4 with node red?

**URL:** https://discourse.nodered.org/t/can-i-control-a-keypad-4x4-with-node-red/28307
**Category:** General
**Created:** [14 June 2020 12:23 UTC](https://discourse.nodered.org/t/can-i-control-a-keypad-4x4-with-node-red/28307 "2020-06-14T12:23:35Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Iustin96](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iustin96/32/23924_2.png) [@Iustin96](https://discourse.nodered.org/u/Iustin96)
#### Post date: [14 June 2020 12:23 UTC](https://discourse.nodered.org/t/can-i-control-a-keypad-4x4-with-node-red/28307/1 "2020-06-14T12:23:35Z")

</div>

I want to arm and disarm a security system through a physical 4x4 keypad with a 4-digit code. it is possible in node red?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [14 June 2020 12:45 UTC](https://discourse.nodered.org/t/can-i-control-a-keypad-4x4-with-node-red/28307/2 "2020-06-14T12:45:42Z")

</div>

Almost certainly yes. How does the keypad interface with the computer?

---

<div class="post-metadata">

### Author: ![Iustin96](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iustin96/32/23924_2.png) [@Iustin96](https://discourse.nodered.org/u/Iustin96)
#### Post date: [14 June 2020 12:50 UTC](https://discourse.nodered.org/t/can-i-control-a-keypad-4x4-with-node-red/28307/3 "2020-06-14T12:50:17Z")

</div>

I use Raspberry pi 3 b +. This is the interfece way : [https://www.youtube.com/watch?v=yYnX5QodqQ4](https://www.youtube.com/watch?v=yYnX5QodqQ4)

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [14 June 2020 13:17 UTC](https://discourse.nodered.org/t/can-i-control-a-keypad-4x4-with-node-red/28307/4 "2020-06-14T13:17:21Z")

</div>

Have you tried using the gpio nodes - can you see button presses in node-red debug?

There are videos (like [this one](https://www.youtube.com/watch?v=J_fulWW5K7o)) that may help.

Once you can get every button inputting values into node-red (just use debug nodes to see the values comming in) then we can help you construct the logic for using the inputs as a pass code.

---

<div class="post-metadata">

### Author: ![Iustin96](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iustin96/32/23924_2.png) [@Iustin96](https://discourse.nodered.org/u/Iustin96)
#### Post date: [14 June 2020 18:22 UTC](https://discourse.nodered.org/t/can-i-control-a-keypad-4x4-with-node-red/28307/5 "2020-06-14T18:22:54Z")

</div>

i can't see the button pressed in debug. This is the single way?

---

<div class="post-metadata">

### Author: ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)
#### Post date: [14 June 2020 21:35 UTC](https://discourse.nodered.org/t/can-i-control-a-keypad-4x4-with-node-red/28307/6 "2020-06-14T21:35:23Z")

</div>

See my balena project

- [https://github.com/janvda/balena-python-evdev2mqtt](https://github.com/janvda/balena-python-evdev2mqtt)

This project is based on a python process that is posting mqtt messages whenever a key is pressed/hold/released. Of course Node-RED can subscribe to these mqtt messages.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [13 August 2020 21:35 UTC](https://discourse.nodered.org/t/can-i-control-a-keypad-4x4-with-node-red/28307/7 "2020-08-13T21:35:43Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
