Gpio pins not working on pi 5

Hello good people of the Volumie community can anybody help with this?

Problem with Gpio on my Raspberry pi 5 8 gb. Not alle of them are working. Only the Ir remote is working and now also a error that says Alsa fail to open Alsa device.

All work perfect on a raspberry pi zero 2.

With my Dac Dragonfly Red

I bought a raspberry pi 5 in march, It was my first raspberry pi build, I am new to all thinks with the raspberry pi. But i was gonna build streaming pi using volumio software. And I did, and put it in a case, not using the gpio pin. It worked okay but, with some small errors I thought maybe was settings, that i had to check up on.

After a couple of weeks i wanted to expand the streamer,

with Buttons, Oled Display, Ir remote, 2 Led lights, rotary encoder and power Butten

So i bought a pi zero 2 and a breadboard and slowly build a better version of the streamer. Testing it on the zero.

But when I had to assembled it all in a new case, I found out, that some of the gpio pins doesn’t work on the raspberry pi 5 it works great on the pi zero 2 and some of the other problems I had on the pi 5 was working on the zero.

I got a new pi 5 from the place I got it, thinking it must be a faulty unit. But still same problem came up.

Not connection to

Oled Display, buttons, power button on gpio 3 not working. And one of the led light doesn’t work

Not tested the rotary encoder, because of the other problem.

I tried.

Fresh install a lot of times and install from website, install of raspberry pi software to upgrade system.

And screaming ad it

Can anybody help with this.

Ps, I am new to this.

Raspberry Pi 5 Notes

  • :white_check_mark: There are dedicated pads on the PCB for connecting an external switch.
    image

  • :white_check_mark: On Buster V3.819, the following components work flawlessly:

    • OLED displays (3,3V VCC, GND, SDA, SDL)
    • GPIO buttons
    • GPIO-controlled LEDs (gpio=12,16,20)
    • Rotary encoders (3,3V VCC, gpio=5,6,22 and gpio=17,27, powerswitch pad)
  • :warning: If something isn’t working:

    • Double-check your wiring setup
    • Make sure you’re not exceeding the power capacity of your PSU,you’re using the official 25.5W Raspberry Pi power supply?

I am running a rPi5, with 2 rotary encoders, power switch, power led and 2.42 Inch OLED display.

nice set up.
i have the official 27 W Raspberry Pi power supply is there at difference from that to the 25.5 w
one off the led light are Connected to the gpio 16

Try gpio=12 for the led

8c92621d9c837514c6c443f2e829805ab5adf835

What plug in are you using to get this information on a 2.42" OLED display?

I have a 2.42" SPI OLED display and an MPD OLED plug-in.

But I’m interested in your version of displaying information on a 2.42" OLED.

This is something I programmed for personal use only.

Could you elaborate on how to do this?
What needs to be edited to change the display method?
Is this done in the configuration files in the MPD OLED plugin?

It’s completely written in Python, it has nothing in common with MPD_OLED.
Information is extracted by calling:

# Fetch Volumio status
def get_volumio_status(host="http://localhost:3000"):
    try:
        response = requests.get(f"{host}/api/v1/getstate")
        if response.status_code == 200:
            return response.json()
    except Exception as e:
        print(f"[Volumio Error] {e}")
    return {}

# Fetch MPD audio info
def get_mpd_audio(host="localhost", port=6600):
    try:
        with socket.create_connection((host, port), timeout=5) as s:
            s.recv(1024)
            s.sendall(b"status\n")
            data = s.recv(4096).decode()
            audio = re.search(r'audio:\s*(\S+)', data)
            bitrate = re.search(r'bitrate:\s*(\d+)', data)
            return audio.group(1) if audio else "Unknown", int(bitrate.group(1)) if bitrate else 0
    except Exception as e:
        print(f"[MPD Error] {e}")
    return "Unknown", 0

To me, this is black magic :upside_down_face:
Unless someone explains it to me in layman’s terms…
If this could be edited in the MPD OLED plugin configuration file, I could still manage it.
Thanks for the information.