Re:I use a Raspberry Pi as my daily computer for over a year...
by chasd00 on Friday October 28, 2022 @01:30PM
(#33374528)
On my pi zero w, for realtime needs like pwm I use a dedicated controller and access it over the i2c bus. It works just fine.
https://www.adafruit.com/product/815
I got my pi zero w a lonnng time ago when you could actually find them.
For non realtime use, the $10 USB->GPIO ones work fine on any computer with USB.
In fact many of them are just ESP's, and work even better than the pi for hard real-time because you write custom bitbanging ardunio code and send the results/control signal over the USB. They become custom peripherals with a /dev/ttyUSB endpoint.