# GPIOs not working

**URL:** <https://discourse.nodered.org/t/gpios-not-working/55408>\
**Category:** General\
**Created:** [18 December 2021 22:09 UTC](https://discourse.nodered.org/t/gpios-not-working/55408 "2021-12-18T22:09:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![relus](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@relus](https://discourse.nodered.org/u/relus)\
**Post date:** [18 December 2021 22:09 UTC](https://discourse.nodered.org/t/gpios-not-working/55408/1 "2021-12-18T22:09:20Z")

</div>

Good evening everyone,

I have a problem with the GPIO control via Node-RED. Who could help me please?

Hardware: Raspberry Pi zero WH

Software: "Raspberry Pi OS with desktop and recommended software" (kernel version 5.10, based on Debian version 11 (bullseye)); Node-RED version 1.2.9 (Node-RED version included in Raspi OS distribution)

Problem: I would like to use the node "RPi GPIO out" to control a relais. The relais is correctly connected, which I know, since I am able to control it via python command. However, when I try to switch it using an inject node or a dashboard switch, it will not work. The flow should be OK IMHO but I will upload it to this post just in case. 👈 I am not allowed to upload it, since I am a new user in this forum.

The "RPi GPIO out" node has a grey square below and shows "N/A: 1" or "N/A: 0" depending on my last command. I think, the "N/A" should not be there and the square should not be grey.

From what I read in this forum so far regarding similar topics, there could be some problem with Rpi.GPIO. Therefore I tried installing python3-rpi.gpio, which however was already the latest version (and I am not sure, whether it affects Node-RED to be honest). Also, I tried installing an older version of the NR-gpio: "npm install node-red-node-pi-gpio@1.0.9" and restarted the Pi. It didn't help either.

Thanks for reading so far 🙂

Regards  
Relus

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [18 December 2021 23:20 UTC](https://discourse.nodered.org/t/gpios-not-working/55408/2 "2021-12-18T23:20:42Z")

</div>

First off I would backup your flow (export it and save it somewhere) then I would update your version of Node-RED by using the instructions here: [Running on Raspberry Pi : Node-RED](https://nodered.org/docs/getting-started/raspberrypi)

Your on an old version, so see if that helps.

---

<div class="post-metadata">

**Author:** ![relus](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@relus](https://discourse.nodered.org/u/relus)\
**Post date:** [19 December 2021 10:35 UTC](https://discourse.nodered.org/t/gpios-not-working/55408/3 "2021-12-19T10:35:16Z")

</div>

It works 😃

I thought, that with the new Pi OS version a new node-red version would be included - this was obliously not the case.

Thank you for your help zenofmud 👏

Regards  
Relus

---

<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:** [2 January 2022 10:36 UTC](https://discourse.nodered.org/t/gpios-not-working/55408/4 "2022-01-02T10:36:06Z")

</div>

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