# Migrating to Pi 5, trouble with pigpiod

**URL:** <https://discourse.nodered.org/t/migrating-to-pi-5-trouble-with-pigpiod/88762>\
**Category:** General\
**Tags:** gpio\
**Created:** [17 June 2024 18:10 UTC](https://discourse.nodered.org/t/migrating-to-pi-5-trouble-with-pigpiod/88762 "2024-06-17T18:10:32Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dennishvo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dennishvo/32/2896_2.png) [@dennishvo](https://discourse.nodered.org/u/dennishvo)\
**Post date:** [17 June 2024 18:10 UTC](https://discourse.nodered.org/t/migrating-to-pi-5-trouble-with-pigpiod/88762/1 "2024-06-17T18:10:32Z")

</div>

It looks like pigpiod is no longer supported on the Raspberry Pi 5. I currently use node-red-node-pi-gpio to do PWM, which relies on pigpiod. What is the recommended alternative?

---

<div class="post-metadata">

**Author:** ![AndrewBeasley](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@AndrewBeasley](https://discourse.nodered.org/u/AndrewBeasley)\
**Post date:** [17 June 2024 18:41 UTC](https://discourse.nodered.org/t/migrating-to-pi-5-trouble-with-pigpiod/88762/2 "2024-06-17T18:41:53Z")

</div>

Some discussion here:

> [@GPIO and raspberry pi 5](https://discourse.nodered.org/t/gpio-and-raspberry-pi-5/84241):
>
> 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?

Note sure if it helps - I've gone back to a 4 while things settle on the 5 boards (and I thought Buster was bad!).

---

<div class="post-metadata">

**Author:** ![dennishvo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dennishvo/32/2896_2.png) [@dennishvo](https://discourse.nodered.org/u/dennishvo)\
**Post date:** [17 June 2024 19:29 UTC](https://discourse.nodered.org/t/migrating-to-pi-5-trouble-with-pigpiod/88762/3 "2024-06-17T19:29:41Z")

</div>

Thanks for the link. I tried the recommendation given by cymplecy to remove python3-rpi.gpio (it didn't exist) and the RPi.GPIO node, and to install rpi-lgpio (it was already installed). So nothing has changed.

---

<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:** [17 June 2024 20:15 UTC](https://discourse.nodered.org/t/migrating-to-pi-5-trouble-with-pigpiod/88762/4 "2024-06-17T20:15:01Z")

</div>

Just a bit confused by your post, so just to clarify, are you saying that my method still works on a Pi5?

---

<div class="post-metadata">

**Author:** ![dennishvo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dennishvo/32/2896_2.png) [@dennishvo](https://discourse.nodered.org/u/dennishvo)\
**Post date:** [17 June 2024 20:53 UTC](https://discourse.nodered.org/t/migrating-to-pi-5-trouble-with-pigpiod/88762/5 "2024-06-17T20:53:42Z")

</div>

I can't start pigpiod on a pi5 running bookworm, so I took the steps you described and it still doesn't work. This is not so surprising because, as I mentioned, the package you suggested removing didn't exist and the one you said to add was already installed.

I'm using node-red-node-pi-gpiod, which requires pigpiod to be running. I have it configured to communicate via the loopback address on port 8888. Since pigpiod won't start, the node displays ECONNREFUSED 127.0.0.1:8888.

---

<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:** [17 June 2024 21:00 UTC](https://discourse.nodered.org/t/migrating-to-pi-5-trouble-with-pigpiod/88762/6 "2024-06-17T21:00:10Z")

</div>

As I think was mentioned in that thread - Pigpiod doesn't work on a Pi5 and last time I looked into it - it is never going to ☹

So unfortunately you'll either need to use \<Pi5 hardware or switch to using the new lgpio method ☹

---

<div class="post-metadata">

**Author:** ![dennishvo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dennishvo/32/2896_2.png) [@dennishvo](https://discourse.nodered.org/u/dennishvo)\
**Post date:** [17 June 2024 21:20 UTC](https://discourse.nodered.org/t/migrating-to-pi-5-trouble-with-pigpiod/88762/7 "2024-06-17T21:20:23Z")

</div>

Understood. There's no going back to \<Pi5, in my case, so I'll get started with lgpio. Thank you.

---

<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:** [23 June 2024 23:21 UTC](https://discourse.nodered.org/t/migrating-to-pi-5-trouble-with-pigpiod/88762/8 "2024-06-23T23:21:07Z")

</div>

@dceejay In the previous discussions you mentioned about modifying the install script for a Pi5, but couldn't find the source ?

I believe this is the repo if that's any help [GitHub - waveform80/rpi-lgpio: A compatibility shim for lgpio emulating the RPi.GPIO API](https://github.com/waveform80/rpi-lgpio)

---

<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:** [24 June 2024 07:06 UTC](https://discourse.nodered.org/t/migrating-to-pi-5-trouble-with-pigpiod/88762/9 "2024-06-24T07:06:41Z")

</div>

Yes I do recall that. It did seem that lipid was the answer, but I can’t recall how far we got with trying to find a generic solution that wouldn’t break existing users as there were too many possible combinations of processor hardware, os 32 or 64 bit and versions thereof and then nodejs versions on top.

---

<div class="post-metadata">

**Author:** ![Johnes](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@Johnes](https://discourse.nodered.org/u/Johnes)\
**Post date:** [14 July 2024 07:07 UTC](https://discourse.nodered.org/t/migrating-to-pi-5-trouble-with-pigpiod/88762/10 "2024-07-14T07:07:24Z")

</div>

> [@dennishvo](#):
>
> It looks like pigpiod is no longer supported on the Raspberry Pi 5. I currently use node-red-node-pi-gpio to do PWM, which relies on pigpiod. What is the recommended alternative?

I have modify "nrgpio.py" in "~/.node-red/node\_modules/node-red-node-pi-gpio"

quick and dirty:  
first import gpiozero at top of the python code of "nrgpio.py":

```auto
# Import library functions we need
import gpiozero

```

Then modify PWM-section:

```auto
    if cmd == "pwm":
        #print("Initialised pin "+str(pin)+" to PWM")
        try:
            freq = int(sys.argv[3])
        except:
            freq = 100

                                                #GPIO.setup(pin,GPIO.OUT)
        p = gpiozero.PWMLED(pin,frequency=freq) #GPIO.PWM(pin, freq)
        p.value = 0.01 #p.start(0)

        while True:
            try:
                data = raw_input()
                if 'close' in data:
                    sys.exit(0)
                p.value = float(data)/100 #p.ChangeDutyCycle(float(data))
            except (EOFError, SystemExit): # hopefully always caused by us sigint'ing the program
                p.release()
                sys.exit(0)
            except Exception as ex:
                print("bad data: "+data)

```

I control two fans for my powerinverter and two fans for the batterychargers of my solarsystem via PWM. After updating to bookworm they want work. I found this solution for me. Hope it will help someone else.

Sorry for my english text. I'm from Germany and not often write in english. Hope you understand.

---

<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:** [12 October 2024 07:07 UTC](https://discourse.nodered.org/t/migrating-to-pi-5-trouble-with-pigpiod/88762/11 "2024-10-12T07:07:29Z")

</div>

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