Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1225

Python • RP Zero 2W GPIO and TX/RX not working simultaneously

$
0
0
I have a system where a RP Zero 2W communicates via serial to another system using the TXD/RXD pins (aka GPIO 14/15 board 8/10) which works fine except when I initialize a GPIO pin which I need for another function to create a button. Each works perfectly alone but when the GPIO is initialized, serial comms fail and the GPIO doesn't work. I have tried numerous GPIO pins on the 2W but haven't found one that works thinking there might be some other serial/uart function on those pins. I am using python3 and I have tried gpiozero as well as RPi.GPIO.

I have a good ground between everything. On gpio I am just trying to detect a button press.

Does anyone have any idea why this would happen? Its very correlated in my test.

Thanks

Statistics: Posted by dsimpson3030 — Mon Mar 10, 2025 1:58 am



Viewing all articles
Browse latest Browse all 1225

Trending Articles