# Raspi 2B+ node-red-node-pi-gpio does not send msg when pin status was changed

**URL:** <https://discourse.nodered.org/t/raspi-2b-node-red-node-pi-gpio-does-not-send-msg-when-pin-status-was-changed/18634>\
**Category:** General\
**Created:** [30 November 2019 12:42 UTC](https://discourse.nodered.org/t/raspi-2b-node-red-node-pi-gpio-does-not-send-msg-when-pin-status-was-changed/18634 "2019-11-30T12:42:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Post date:** [30 November 2019 12:42 UTC](https://discourse.nodered.org/t/raspi-2b-node-red-node-pi-gpio-does-not-send-msg-when-pin-status-was-changed/18634/1 "2019-11-30T12:42:36Z")

</div>

Hiho,  
I tried using node-red-node-pi-gpio to read pin status and it should send a 1 / 0 msg. But it doesn´t send any msg when changing pin status. rpi.gpio is installed and reading pin with the bash does give me a good result:

```auto
pi@raspberrypi:~ $ gpio -g read 17
0
pi@raspberrypi:~ $ gpio -g read 17
1

```

flow:

```auto
[{"id":"e1dea395.599e18","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"924550cf.a78b68","type":"debug","z":"e1dea395.599e18","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":550,"y":400,"wires":[]},{"id":"51cc70b4.a2b138","type":"inject","z":"e1dea395.599e18","name":"","topic":"","payload":"test","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":390,"y":360,"wires":[["924550cf.a78b68"]]},{"id":"a9821f03.1c561","type":"rpi-gpio in","z":"e1dea395.599e18","name":"","pin":"11","intype":"tri","debounce":"25","read":false,"x":390,"y":420,"wires":[["924550cf.a78b68"]]}]

```

Did I miss something ?  
Thx!

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [30 November 2019 15:34 UTC](https://discourse.nodered.org/t/raspi-2b-node-red-node-pi-gpio-does-not-send-msg-when-pin-status-was-changed/18634/2 "2019-11-30T15:34:09Z")

</div>

Node-red uses physical pin numbering which can be the reason that nothing seems to happen

---

<div class="post-metadata">

**Author:** ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Post date:** [30 November 2019 19:00 UTC](https://discourse.nodered.org/t/raspi-2b-node-red-node-pi-gpio-does-not-send-msg-when-pin-status-was-changed/18634/3 "2019-11-30T19:00:51Z")

</div>

thank you for your answer. This are my node settings:  
[click me](http://puu.sh/EKlrY/5e76008148.png)  
this is where I connect the pins:  
[click me](http://puu.sh/EKlve/97bab65fc3.jpg)  
I dont see a mistake.

---

<div class="post-metadata">

**Author:** ![rei\_vilo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rei_vilo/32/162_2.png) [@rei\_vilo](https://discourse.nodered.org/u/rei_vilo)\
**Post date:** [30 November 2019 19:41 UTC](https://discourse.nodered.org/t/raspi-2b-node-red-node-pi-gpio-does-not-send-msg-when-pin-status-was-changed/18634/4 "2019-11-30T19:41:10Z")

</div>

You may need to add a pull-down resistor to prevent the GPIO from floating.

---

<div class="post-metadata">

**Author:** ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Post date:** [30 November 2019 21:05 UTC](https://discourse.nodered.org/t/raspi-2b-node-red-node-pi-gpio-does-not-send-msg-when-pin-status-was-changed/18634/5 "2019-11-30T21:05:45Z")

</div>

I solved it like this:  
uninstalled node-red-node-pi-gpiod 1.0.6 (The basic Node-RED node for Pi GPIO)  
installed: node-red-node-pi-gpiod 0.0.13 (A node-red node for PiGPIOd)  
`npm install node-red-node-pi-gpiod`  
`sudo nano /etc/rc.local` added line:  
`/usr/bin/pigpiod`  
restarted the pi, tested with telnet if port 8888 is running.  
implemented nodes and works...

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [30 November 2019 21:13 UTC](https://discourse.nodered.org/t/raspi-2b-node-red-node-pi-gpio-does-not-send-msg-when-pin-status-was-changed/18634/6 "2019-11-30T21:13:30Z")

</div>

Well there's at least one typo in your post 🙂

I think you meant to say you uninstalled the standard node-red-pi-gpio node and installed the node-red- pi-gpiod alternative node

So good you've got it working but its not good that the standard one didn't work

How did you install Node-RED?

[edit sorry for the typo I made!]  
[2nd edit to remove superfluous question about Pi model!]

---

<div class="post-metadata">

**Author:** ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Post date:** [30 November 2019 21:26 UTC](https://discourse.nodered.org/t/raspi-2b-node-red-node-pi-gpio-does-not-send-msg-when-pin-status-was-changed/18634/7 "2019-11-30T21:26:51Z")

</div>

You are right ... Sry for bad english my motherlanguage is german.  
I made a clean installation of Raspbian, MQTT, Node-Red on my Raspi 2 B+

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [30 November 2019 21:38 UTC](https://discourse.nodered.org/t/raspi-2b-node-red-node-pi-gpio-does-not-send-msg-when-pin-status-was-changed/18634/8 "2019-11-30T21:38:35Z")

</div>

Mine Deutsche ist sehr nicht euer English 🙂  
Did you install using the script from here?

[https://nodered.org/docs/getting-started/raspberrypi](https://nodered.org/docs/getting-started/raspberrypi)

---

<div class="post-metadata">

**Author:** ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Post date:** [30 November 2019 21:43 UTC](https://discourse.nodered.org/t/raspi-2b-node-red-node-pi-gpio-does-not-send-msg-when-pin-status-was-changed/18634/9 "2019-11-30T21:43:10Z")

</div>

haha, nice try .... OK, I think my english is better than your german 🙂  
Yes I used the link of your post to install node red ^^ 🙂
