I have been experiencing some trouble with the GPIO outputs of a Raspberry Pi 4 when a certain USB device is connected. The GPIO of the Raspberry Pi works perfectly fine when the USB device is not connected, but once connected, a lot of noise (~2Vpp) is introduced on the GPIO output.
It is not clear to me what is causing this behaviour. Is the Raspberry Pi faulty? Any suggestions on what I can adjust or how to better test this behaviour? The Raspberry Pi and the USB device do not share a common ground, could this be part of the problem? The USB device does have its own power source.
- The GPIO in question is GPIO/BCM pin 17
- The USB device in question is a Ublox C099-F9P application board
Oscilloscope measurement of GPIO17 and a simple script toggling GPIO 17
Schematic overview of the connections, red line is not present