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

Troubleshooting • Are RPi5 GPIOs slower than RPi4 GPIOs?

$
0
0
Hi.
I have a question about the speed of GPIOs on RPi4 and RPi5.
I am processing GPIO1 up and then GPIO2 down. I am looking at the GPIO activity on an oscilloscope and I am wondering if there is any difference in speed between the RPi4 and RPi5 GPIOs.
The result is that RPi5 is very slow compared to RPi4.
Is this correct about this result and how can I speed up the GPIO switching speed of RPi5?

The libraries I tried are as follows
RPi4: bcm2835.h https://www.airspayce.com/mikem/bcm2835/
RPi5: GPIOZERO https://gpiozero.readthedocs.io/en/latest/

The waveforms observed on the oscilloscope are shown below.
RPi4: 73.6ns
RPi4.png
RPi5: 1920ns
RPi5.png

Statistics: Posted by ShinYamada — Tue Oct 08, 2024 8:18 am



Viewing all articles
Browse latest Browse all 4079

Trending Articles