this post was submitted on 18 Dec 2025
7 points (100.0% liked)

raspberrypi

5230 readers
1 users here now

Community about the single-board computers, micro-controllers and related projects.

https://www.raspberrypi.com/

Other RaspberryPi communities on Lemmy

founded 5 years ago
MODERATORS
 

Im currently making a costum 10x10 led matrix, and for it to be able to display senseable stuff, im trying to segment the display into 10 vertical lines which cycle at at least 100hz. Would a Python script on a raspberry pi be able to cycle its GPIO pins at this speed? Or Would an arduino or other Microcontroller be able to do it better?

you are viewing a single comment's thread
view the rest of the comments
[–] golden_zealot@lemmy.ml 4 points 3 weeks ago* (last edited 3 weeks ago)

Like others said, the bottle neck will be the OS doing it's thing with python rather than the hardware. Remember that you can perform pulse width modulation with the GPIO, so they can physically toggle states really very fast.

I seem to recall that there is a GPIO header file for C available for the pi somewhere. If python proves too slow for what you want to do, you could look into writing something in C instead to try to speed things up potentially.