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

Python • Re: RPi 3 with TCS3200 sensor: lgpio.error: 'bad event request'

$
0
0
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.

Statistics: Posted by ghp — Tue Oct 28, 2025 4:53 am



Viewing all articles
Browse latest Browse all 7512

Trending Articles