by mattkrause · 4y ago · 0 comments
If you want to connect a "regular PC" to the real world, you can get a USB DAQ but even the cheapo LabJack, NI or MCC models are at least a hundred bucks.
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.
https://www.adafruit.com/product/815
I got my pi zero w a lonnng time ago when you could actually find them.
I have one of adadruit's RP2040 boards and use the REPL a lot to talk to other things connected to the i2c bus. For example, controlling servos from a servo board, or getting orientation data from an IMU. Basically, i treat the circuit python REPL like a command line
1: https://www.dfrobot.com/product-2594.html