# GPIO and raspberry pi 5

**URL:** <https://discourse.nodered.org/t/gpio-and-raspberry-pi-5/84241>\
**Category:** General\
**Tags:** gpio\
**Created:** [3 January 2024 08:55 UTC](https://discourse.nodered.org/t/gpio-and-raspberry-pi-5/84241 "2024-01-03T08:55:54Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Caspar](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@Caspar](https://discourse.nodered.org/u/Caspar)\
**Post date:** [3 January 2024 08:55 UTC](https://discourse.nodered.org/t/gpio-and-raspberry-pi-5/84241/1 "2024-01-03T08:55:54Z")

</div>

I try to use the default GPIO pin-out and get the message : "nrgpio python command not running".

obviously I'm doing something wrong, or I'm forgetting to install some basics into the Raspberry Pi.

How can I get this working? Does it need another type of Node?

---

<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:** [3 January 2024 10:55 UTC](https://discourse.nodered.org/t/gpio-and-raspberry-pi-5/84241/2 "2024-01-03T10:55:32Z")

</div>

Currently, you can't use GPIO pins on a Pi5

There are several discussions going on at the moment  
Here are two

> [@Questions about the new RPi5 GPIO node](https://discourse.nodered.org/t/questions-about-the-new-rpi5-gpio-node/84208/8):
>
> I'm not expert but there seems to be a drop in replacement rpi-lgpio. More info here - [https://forums.raspberrypi.com/viewtopic.php?p=2160578#p2160578](https://forums.raspberrypi.com/viewtopic.php?p=2160578#p2160578)

> [@Raspberry pi on Bookworm](https://discourse.nodered.org/t/raspberry-pi-on-bookworm/84023/7):
>
> Are there any known issues e.g. with Pi specific nodes ?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [3 January 2024 11:05 UTC](https://discourse.nodered.org/t/gpio-and-raspberry-pi-5/84241/3 "2024-01-03T11:05:51Z")

</div>

Can someone test if the node-red-node-gpiod node does work on Pi5 as that uses libgpiod

---

<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:** [3 January 2024 11:22 UTC](https://discourse.nodered.org/t/gpio-and-raspberry-pi-5/84241/4 "2024-01-03T11:22:10Z")

</div>

Just installed pigpio and then then node-red-contrib-gpiod and it didn't work ☹

Already reported as an issue

> <https://github.com/joan2937/pigpio/issues/589>
>
> pigpio is hard-coded to not run on a Pi5. See https://github.com/joan2937/pigpi…o/blob/c33738a320a3e28824af7807edafda440952c05d/pigpio.c#L7353-L7356
> 
> Do the maintainers plan to update pigpio to support the Pi5? Will this repository entertain pull requests to port pigpio to the pi5?
> 
> If not, please update the README and/or archive this repository to let users know.

---

<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:** [3 January 2024 13:21 UTC](https://discourse.nodered.org/t/gpio-and-raspberry-pi-5/84241/5 "2024-01-03T13:21:48Z")

</div>

I've followed a few threads on the Pi forum and I have managed to get the standard gpio node to work _(Tested output on Pin 11 and input on Pin 23 using a Pibrella add-on board)_

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

So what I did was from a termiinal

```auto
sudo apt remove python3-rpi.gpio

```

to remove the old RPi.GPIO module

and then

```auto
pip3 install --break-system-packages rpi-lgpio

```

which is supposed to be a drop-in replacement for the old module  
_I tried several methods to install rpi-lgpio and this was the one that worked for me 🙂_

I've re-booted my Pi and it still works 🙂

---

<div class="post-metadata">

**Author:** ![Caspar](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@Caspar](https://discourse.nodered.org/u/Caspar)\
**Post date:** [4 January 2024 08:27 UTC](https://discourse.nodered.org/t/gpio-and-raspberry-pi-5/84241/6 "2024-01-04T08:27:17Z")

</div>

dear Simon,

This works for GPIO out on/off. thank you very much, this solves a big part of the issues we encounter to control our lab. However, using GPIO in (to connect to my puls flow meters) doesn't work.

Do you have the same solution to this as well?

Thanks in advance for all your support.

Caspar.

---

<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:** [4 January 2024 08:31 UTC](https://discourse.nodered.org/t/gpio-and-raspberry-pi-5/84241/7 "2024-01-04T08:31:13Z")

</div>

What make model of pulse flow meters have you got - what do they output?

Have you ever had them working before on a older Pi?

As shown in my post above, I can detect a simple input being 1 or 0 (3.3V or 0V)

---

<div class="post-metadata">

**Author:** ![Caspar](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@Caspar](https://discourse.nodered.org/u/Caspar)\
**Post date:** [4 January 2024 09:29 UTC](https://discourse.nodered.org/t/gpio-and-raspberry-pi-5/84241/8 "2024-01-04T09:29:59Z")

</div>

hi,

my mistake, had to make the gpio Pull-Up.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [4 January 2024 14:37 UTC](https://discourse.nodered.org/t/gpio-and-raspberry-pi-5/84241/9 "2024-01-04T14:37:25Z")

</div>

> [@cymplecy](#):
>
> `rpi-lgpio`

Nice - the readme says that there should be a package available in the apt repo - [Installation — rpi-lgpio 0.4 Documentation](https://rpi-lgpio.readthedocs.io/en/release-0.4/install.html) - but I can't find it...

I wonder how cross platform (on Pi) this is... as-in would it also work on Ubuntu on Pi or Debian on Pi ?

Also is it only for bookworm onwards ? or would it work on "older" installs. I.E. if I make the script switch over to this/force install lpgio on anything with a BCM processor... ? Thoughts ?

---

<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:** [4 January 2024 14:46 UTC](https://discourse.nodered.org/t/gpio-and-raspberry-pi-5/84241/10 "2024-01-04T14:46:38Z")

</div>

I know nothing 🙂

Except that the documentation doesn't match up with my real world experience with it so far 🙂

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [4 January 2024 15:04 UTC](https://discourse.nodered.org/t/gpio-and-raspberry-pi-5/84241/11 "2024-01-04T15:04:50Z")

</div>

Well you have pi5 so are miles ahead of me

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [4 January 2024 17:17 UTC](https://discourse.nodered.org/t/gpio-and-raspberry-pi-5/84241/12 "2024-01-04T17:17:55Z")

</div>

In the notes you linked to the first release was 2022-10-14 - before bookworm ?

---

<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:** [4 March 2024 17:18 UTC](https://discourse.nodered.org/t/gpio-and-raspberry-pi-5/84241/13 "2024-03-04T17:18:32Z")

</div>

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