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

Beginners • How to achieve nanosecond-level latency on Raspberry Pi 5?

$
0
0
How to achieve nanosecond-level latency on Raspberry Pi 5?

I want to control WS2812 LEDs with Raspberry Pi 5. I installed the rpi-ws281x library using pip, but it seems that it is not compatible with Raspberry Pi 5. Therefore, I plan to use PWM as the pulse for WS2812. However, when I checked the maximum frequency of PWM using an oscilloscope, I found that one PWM cycle is only 50 microseconds, while WS2812 requires a timing signal of 400 nanoseconds. How can I achieve this 400 nanosecond delay on Raspberry Pi 5? (Note that I have tried using the sleep function provided by gpiozero, but it only supports delays in microseconds.) :?:

Statistics: Posted by jieweizero — Sat Jan 27, 2024 12:26 pm



Viewing all articles
Browse latest Browse all 4995

Trending Articles