3 ms·
I would like a $55 board that turns a RPi into an Arduino. In the sense that: I 'flash' some code to it, then when I plug it in it powers on and just 'works' (p
by somewhereoutth 4y ago
I would like a $55 board that turns a RPi into an Arduino. In the sense that: I 'flash' some code to it, then when I plug it in it powers on and just 'works' (per my code), and when I unplug it it does not self destruct, and can be plugged in again (and again) without issue.
Bonus points for powering from whatever the display connector is.
(Portenta H7 is getting there coming from the Arduino end, but still woeful cpu capacity, and the one I got had display issues)
- snickmy 4y agocan you tell us more about what you mean by 'self destructing while not being plugged' ?
- _ink_ 4y agonot OC, but I guess linux not booting, because the file system got corrupted.
- somewhereoutth 4y agoIf you simply unplug a RPi without shutting it down properly there is a chance that the SD card will get corrupted. It is possible to 'harden' the system by mounting the SD card read only, but that is a faff to set up and I've still had corrupted cards. This makes the RPi not useful for kiosk type applications. Contrast with Arduino, where I plug it into my laptop and upload some code, thereafter I can plug it in/out/'turn it all about' with power and it reliably does 'stuff'
- allo37 4y agoApparently the CM4 comes with on-board eMMC as an option. About time!
- Orothrim 4y agoHave you considered any of the raspberry pi power button options that exist? Something with a reasonable size capacitor and a signal pin to let the Pi know to shutdown when it's lost power, before the capacitor runs out, might work?
- somewhereoutth 4y agoYes capacitor power button would work (assuming it is reliable). Still an amount of faff and expense to set up, especially if you are scaling a deployment. It would be great if the RPi (or some version of it) had this 'pre-installed'.
- blutack 4y agoMight want to try something like buildroot or yocto, so you can have a r/o root fs with your code in. Or the ESP32 or larger STM32 microcontrollers.