# Rpi-gpio out node not performing

**URL:** <https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617>\
**Category:** General\
**Created:** [17 February 2024 16:47 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617 "2024-02-17T16:47:13Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![luemar](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@luemar](https://discourse.nodered.org/u/luemar)\
**Post date:** [17 February 2024 16:47 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617/1 "2024-02-17T16:47:13Z")

</div>

For controlling an LED with Node-RED I set up my flow according to the instructions in section 2.5.  
However, the box blow the rpi-gpio out node indicates "not available".  
If I klick the injection nodes nothing happens.

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [17 February 2024 16:51 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617/2 "2024-02-17T16:51:04Z")

</div>

Is it possible for you to share your Node-RED flow (so people can help)?  
Also can you indicate how you have wired the LED and resistor.  
It would also help if you indicated the version of Node-RED, node.js, the type of RPi and OS you are using.

---

<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:** [17 February 2024 17:05 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617/3 "2024-02-17T17:05:22Z")

</div>

> [@luemar](#):
>
> For controlling an LED with Node-RED I set up my flow according to the instructions in section 2.5

Section 2.5 of what? Can you share a link?

Also what hardware are you running on and what OS?

---

<div class="post-metadata">

**Author:** ![luemar](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@luemar](https://discourse.nodered.org/u/luemar)\
**Post date:** [18 February 2024 10:34 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617/4 "2024-02-18T10:34:05Z")

</div>

I'm using a RPi 4 B with Debian GNU/Linux 11 (bullseye)

and working the tutorial "SMART HOME  
Raspberry Pi, ESP32, Esp8266, Node-RED, Influxdb, MQTT"  
by Rui Santos & Sara Santos of Random Nerd Tutorial.

 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/6/a67000ac52e527054a2a661ecf3bc6362b3aa6b6.png)

 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/7/f7743621ce1f6ce68d67baf0c3d2fd6465dd2bc1.jpeg)

Thanks for your support.

---

<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:** [18 February 2024 10:41 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617/5 "2024-02-18T10:41:20Z")

</div>

Since I don't have access to that book it is difficult to comment on the contents. Did you install node red using the technique in the [node red docs](https://nodered.org/docs/getting-started/raspberrypi)?

Which version of node-red are you using (It is at the bottom of the dropdown menu in the editor) and which version of nodejs? The command  
`node -v`  
will tell you that.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [18 February 2024 11:10 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617/6 "2024-02-18T11:10:25Z")

</div>

How is your GPIO out node configured?

What version of the OS do you have? Run this to find out:

```auto
grep PRETTY_NAME /etc/os-release

```

---

<div class="post-metadata">

**Author:** ![luemar](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@luemar](https://discourse.nodered.org/u/luemar)\
**Post date:** [18 February 2024 11:15 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617/7 "2024-02-18T11:15:55Z")

</div>

I used the Node-RED installation instruction in the mentioned tutorial:  
_bash \<(curl -sL [https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered](https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered))_

but not the instructions in node red docs.

Version v3.1.3

 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/9/1947e27ccd3681ab04b9e7c53abc91bdcd987540.png)

I'd rather reload Node-RED for I prefer english as language.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [18 February 2024 11:21 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617/8 "2024-02-18T11:21:15Z")

</div>

The photo above seems to show your LED connected to GPIO 18 not GPIO 16.

But I think there are issues with the GPIO nodes and RPiOS Bookworm. What does `grep PRETTY_NAME /etc/os-release` show you?

---

<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:** [18 February 2024 11:30 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617/9 "2024-02-18T11:30:20Z")

</div>

> [@luemar](#):
>
> I'd rather reload Node-RED for I prefer english as language

I think it picks the language up from the OS, but not certain of that.

---

<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:** [18 February 2024 11:33 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617/10 "2024-02-18T11:33:39Z")

</div>

Also you have not told us what version of nodejs you are using.  
`node -v`

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [18 February 2024 11:41 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617/11 "2024-02-18T11:41:02Z")

</div>

There is an option in hamburger menu | settings for the language. I think you have to restart node-red for it to take effect.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/c/ccca2147270b44c88e158c8a4819f05ca145d43d.png)

---

<div class="post-metadata">

**Author:** ![luemar](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@luemar](https://discourse.nodered.org/u/luemar)\
**Post date:** [18 February 2024 12:07 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617/12 "2024-02-18T12:07:08Z")

</div>

sorry, the node version used is v18.19.0

I'm not using debian **bookworm** (no PiCamara module included  
any more) but **bullseye**.

---

<div class="post-metadata">

**Author:** ![luemar](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@luemar](https://discourse.nodered.org/u/luemar)\
**Post date:** [18 February 2024 12:13 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617/13 "2024-02-18T12:13:21Z")

</div>

I tried both GPIO's on thwe RPI and klicked the corresponding GPIO in the rpi-gpio out node

---

<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:** [18 February 2024 12:19 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617/14 "2024-02-18T12:19:58Z")

</div>

What does it say under the node when you switch to English?

In fact the image you showed shows pin 16, gpio 23.

---

<div class="post-metadata">

**Author:** ![luemar](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@luemar](https://discourse.nodered.org/u/luemar)\
**Post date:** [18 February 2024 13:01 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617/15 "2024-02-18T13:01:04Z")

</div>

now, after switching to the english language and reloading  
nodered myflow works, almost:

on the editor I get the correct indications true or false on klicking  
the inject nodes.

However, my LED does not respond althoug` raspi-gpio get 18` shows level 1 or 0 according to the klicked inject node but only after I sat GPIO 18 to` op` or output respectively.

Also there is no voltage (3.5V) on GPIO 18 on klicking the ON injection node. But this probabli a RPi problem and has nothing to do with nodered.

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [18 February 2024 13:15 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617/16 "2024-02-18T13:15:11Z")

</div>

Just a silly thought...  
Is the LED inserted the correct way wrong on the breadboard?  
You could try reversing it through 180 degrees.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [18 February 2024 13:17 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617/17 "2024-02-18T13:17:07Z")

</div>

Check the LED works by connecting it to 3.3V and GND.  
Use a resistor of course!

---

<div class="post-metadata">

**Author:** ![luemar](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@luemar](https://discourse.nodered.org/u/luemar)\
**Post date:** [18 February 2024 13:30 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617/18 "2024-02-18T13:30:02Z")

</div>

well no, as I mentioned there is also no voltage (high) on GPIO 18  
measurable.

---

<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:** [18 February 2024 13:33 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617/19 "2024-02-18T13:33:53Z")

</div>

Show us how you have now configured the node and what pin you are looking at.

---

<div class="post-metadata">

**Author:** ![luemar](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@luemar](https://discourse.nodered.org/u/luemar)\
**Post date:** [18 February 2024 13:41 UTC](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617/20 "2024-02-18T13:41:37Z")

</div>

of course I cecked my wiring before setting up the flow. The LED works fine.

Finally, after not only setting GPIO as output but also driving it low

`raspi-gpio set 18 dl op`

it works !!

It would probably worthwile to mention it in tutorials etc.

Thanks all for your support

[Next page](https://discourse.nodered.org/t/rpi-gpio-out-node-not-performing/85617.md?page=2)
