Re:I use a Raspberry Pi as my daily computer for over a year...
by StillBored on Friday October 28, 2022 @11:23AM
(#33372551)
The GPIO on the PI is compromised for any hard realtime usage by the fact its running linux (ignoring what can be done with a lot of extra work with a RT kernel and pinning cores).
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.
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.
Re:I use a Raspberry Pi as my daily computer for over a year...
by easygenes on Friday October 28, 2022 @11:13AM
(#33372399)
The LattePanda 3 Delta [1] has a Celeron N5105 and RasPi levels of GPIO pins.
1: https://www.dfrobot.com/product-2594.html
Re:I use a Raspberry Pi as my daily computer for over a year...
by mattkrause on Friday October 28, 2022 @11:16AM
(#33372444)
But it's $200 more...(but it's also in stock).
Re:I use a Raspberry Pi as my daily computer for over a year...
by haradion on Friday October 28, 2022 @11:46AM
(#33372936)
A little microcontroller with USB support (I like the Raspberry Pi Pico) can help with your GPIO woes.
Re:I use a Raspberry Pi as my daily computer for over a year...
by ozim on Friday October 28, 2022 @12:56PM
(#33374064)
I bet it is a bit more hassle than RPi.
Re:I use a Raspberry Pi as my daily computer for over a year...
by haradion on Friday October 28, 2022 @01:59PM
(#33374908)
Sure, in many cases. Depending on the situation, though, it may be no more hassle than any other USB GPIO device, so it's a decent enough cheap solution if you can't or don't want to use a Pi or a similar SBC.
Re:I use a Raspberry Pi as my daily computer for over a year...
by chasd00 on Friday October 28, 2022 @01:43PM
(#33374675)
with circuit python (basically Micropython) from adafruit you can open a screen session to the USB port and get a REPL interface. I wonder if you could set something up to script input and output from REPL (i'm not a python expert). If you could then you'd have a little pipe to the micro-controller where you could enter python and have it execute and return a value. From there you have all the GPIO and other features available on the microcontroller available to you on your computer.
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
Re:I use a Raspberry Pi as my daily computer for over a year...
by ThrowawayR2 on Friday October 28, 2022 @02:49PM
(#33375738)
The Odroid H3 / H3+ is a x86 SBC that has a 24-pin GPIO header and is only moderately more expensive.
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.