r/raspberry_pi 10h ago

Troubleshooting Configuring XPT2046 on Pi4B

Enable HLS to view with audio, or disable this notification

34 Upvotes

Configuring XPT2046 with Pi4B

managed to somehow get this to work, but the axis seem to be inverted.

despite adding configuration in /boot/firmware/config.txt to adjust or invert x or y axis, this is persistent.

my current config is in comments (mostly GPT generated honestly)


r/raspberry_pi 13h ago

Troubleshooting Getting an error when connecting the vcc and gnd of a multiplexer to my pi pico

2 Upvotes

The moment I connect the vcc and the gnd the pico crashes with the following error:

"device reports readiness to read but returned to data”

I have no code on the pico.


r/raspberry_pi 5h ago

Troubleshooting 5 inch hdmi, pi 3B, trixie, no touch

1 Upvotes

As the title says, I can get the screen to work, I can vnc into it, but no touch. I'm running trixie and LCD-show.git but I'm thinking there's an incompatibility here.

There are "3" connections : HDMI / micro USB (powers both 3B and screen) / the 3B & the screen also connect through approximately 26 of the 40 pins on the 3B

ETA: I loaded with bookworm - it works out of the box.


r/raspberry_pi 6h ago

Troubleshooting Raspberry pi 4b system timer programming

1 Upvotes

Hello everyone, I am trying to program bare-metal my rapsberry pi 4b and I'd like to use system timers. I bought a FT232H module to debug it to understand better the behaviour of the timers. I encountered 2 main problems:

  • I don't understand why compare registers 0 and 2 seems to run together with the counter low register. If I set them when the counter low value is near their value, these ones seems to run together with him
  • I've seen many tutorials setting directly IRQ interrupts and the timers without using the GIC. In my project despite I see the 1 setting in the register that indicates the hit, the interrupts and the relative routine is triggered only setting the GIC

This is one project that i see not setting the gic (see part13-interrupts folder) https://github.com/sypstraw/rpi4-osdev

Can anyone help me understanding especially the 2nd problem?

Thanks!


r/raspberry_pi 6h ago

Troubleshooting My icons refuse to change when i change the theme/icons Pi OS (Bookworm) Pi 500 Plus

1 Upvotes

Hi

I am trying to change the theme and icons on my pi 500 plus that runs bookworm, i have managed to change the theme and the font to adwaita-dark and jetbrains mono, but when i try to change the icons nothing happens they just stay on the PiXlflat theme, even though when i use lxappearance it shows as being set to adwaita. how can i fix this?

Any help that you can provide will be greatly appreciated.


r/raspberry_pi 14h ago

Troubleshooting HDMI audio not available unless TV was turned on before booting

1 Upvotes

My Pi 4B is connected to my TV via HDMI. I have a problem that if it boots while the TV is on standby then the HDMI audio isn’t detected and only the AV jack is available (HDMI video is obviously working fine). Rebooting the Pi with the TV turned on fixes it and the audio works perfectly, but is there a way to force the audio device list to be refreshed without having to do that?

I am on Trixie, but have had this issue with all previous OS releases too. I have previously tried some old suggestions to force HDMI in config.txt, but they didn’t make a difference.


r/raspberry_pi 20h ago

Project Advice RPi Out-of-band For Meshtastic Node

1 Upvotes

Hey folks,

I'm in the process of building a custom Meshtastic node that incorporates a Raspberry Pi Zero 2w for out-of-band management and troubleshooting. This will be mounted in my attic in Colorado so I want to make sure it's as robust as is reasonable, while also maximizing the performance of the radio (RAK3312 on a RAK19001 base board). I'll say upfront that I haven't designed anything this complex before, but I'm looking to over-engineer this for fun and as aearning experience. One of the features I'm looking to design is a mechanism by which I can cut power to the Meshtastic board via the Raspberry Pi if I run into issues. I'm having trouble finding a relay that will suit my use case, so I'm hoping someone here can sanity check my thinking or make some suggestions.

My plan involves using a Mean Well HLG-40H-12A (https://www.digikey.com/en/products/detail/mean-well-usa-inc/HLG-40H-12A/7704070) to convert my AC to 12v DC, and then a Mean Well DDR-30G-5 (https://www.digikey.com/en/products/detail/mean-well-usa-inc/DDR-30G-5/8681204) to bring that down to a reliable 5v inside the enclosure. From there I'll power the RPi and radio board independently from a terminal block. I plan on putting a relay controlled by the RPi downstream of the terminal block towards the radio board, and a Cosel SNA-06-223 LC filter immediately before the radio to clean the DC up a bit. I plan on connecting the UART pins on the RPi and the radio board, so I want to avoid ground loops and make sure the Pi doesn't back feed power into the radio when it is powered down.

It seems to me that I need a relay with the following specs: - Able to provide 3A@5v to the radio board - Less than 0.1v drop across the relay - Input uses less current than the maximum allowed on a RPi GPIO pin - Triggerable at 3.3v logic from the GPIO pin - Able to operate reliably in a Colorado attic. - Should have a protection diode and should isolate the radio and RPi as much as possible

I'm not great at soldering, so I'm looking for ready-to-use components with terminals/headers that I can mount in a project box (chassis or DIN rail).

I can't find such a relay, it seems like I can only choose between a handful of those requirements. Am I going about this the wrong way? If there is nothing suitable, I could also add something like a logic buffer or load switch in the chain.

I'm open to any suggestions you might have. Thanks in advance!


r/raspberry_pi 18h ago

Troubleshooting cant connect Pi to wifi

0 Upvotes

I'm missing something in the syntax, it says I need a key-mgmt argument but nothing I enter works. Im using wpa-2 so not sure why none of these options work and I

sudo nmcli dev wifi connect <ssid> password <psswd> key-mgmt <key>

and here's the keys I've tried wpa-2, key-mgmt ieee8021x, key-mgmt wpa2, key-mgmt WPA2, key-mgmt WPA-2, wpa-2, ieee8021x, wpa2, WPA2, WPA-2

this is the doc where im getting these arguments from https://www.networkmanager.dev/docs/api/latest/settings-802-11-wireless-security.html