Hacker News new | ask | show | jobs
by randomblock1 19 days ago
Reasons to get a Pi: GPIO support, software support, OS updates, free root & bootloader, more flexibility and customizability, extensive documentation and support, consistency, simplicity, more ports, battery optional.

Used phones are good for tinkering, especially for "display with sensors and battery attached" usecases, but there are still plenty of downsides. And unfortunately Linux on phones is just not ready for primetime, last I checked.

4 comments

I've never used one but android phones can use utilize USB GPIO devices which are very cheap
PI was a thing when it was much cheaper than X86. You can buy a much better speced mini PC nowadays
For the cost of a Pico or a Zero? Even some of the SBCs cost about £30. Where can I get a mini PC for that?
I'll bite. Wyse 3040. $20-40 on the used market, similarly crappy specs to a Zero.

https://www.parkytowers.me.uk/thin/wyse/3040/

Atom x5 Z-8350, 2GB of RAM, 8-16GB of flash, some USB, and there's a board on that page you can have done up to do a slapdash SD adapter inside the case for more flash.

That is interesting especially now a lot of cheaper Pis are hard to get
Unless one actually wants ARM.
Your phone has GPIOs inside it, but you can't access them without at least root.
Cool, didn't know that. But like are they physically accessible? I don't think you can use the USB port as GPIO. Maybe some unused pins on the SOC itself, but that means opening up the phone and probably removing the shielding/heatsink...
You can attach some photodiodes to your screen to control things. And use the camera/mic for input.
Now that's a funny idea. But it's true!
I think you can attach a keyboard to a phone over USB, and in theory it can provide both input and output (you can control the LEDs from the host computer). That would be a more convenient route, I suppose.
That's true, although I don't know whether you can control the LEDs from within the app sandbox.

If you can access it from within the sandbox, you don't need to be limited to keyboards - the HID framework allows for arbitrary I/O.

Termux runs great, but it has some compatibility gotchas, largely because of the libc android uses.

I do use termux daily to ssh into other boxes, that's incredibly useful