If you need a quick solution: use a raspberry pico or pico2 to measure the frequency and transfer the measurement results by serial to the RPi3.
Using micropython on pico, there are samples around for using PWM hardware as a counter or using the PIO hardware.
There is also some code on https://awesome-micropython.com/#colour . This implementation uses interrupts to count pulses.
Using micropython on pico, there are samples around for using PWM hardware as a counter or using the PIO hardware.
There is also some code on https://awesome-micropython.com/#colour . This implementation uses interrupts to count pulses.
Statistics: Posted by ghp — Tue Oct 28, 2025 4:53 am