Re:My Business Card Runs Linux
by leggomylibro on Tuesday December 24, 2019 @10:49AM
(#21872760)
MicroPython is fantastic for education and rapid prototyping with hardware - definitely try it out! It can be difficult to make complex long-running applications because of post-GC memory fragmentation and frequent dynamic allocations by the VM, but the Python syntax makes it all worthwhile. It also has a supportive and friendly community where it's easy to get support, and the official 'PyBoards' are great.
MakeCode is also similar to what you describe - check out Adafruit's Blockly/JS simulator:
https://makecode.adafruit.com/
Note that CircuitPython is Adafruit's fork which focuses more on education than industrial prototyping. So even within the embedded Python ecosystem, you have options.
Embedded development is so easy these days, it is just fantastic. The barrier to entry, in both cost and complexity, is so low now that just about anyone can apply physical automation to the problems that they see in their life and community. I'm excited to see what emerges in the next couple of decades.
We've made some pretty capable hardware at my job on top of the pyboard/micropython. We've outgrown it in certain cases but it's really powerful being able to build something for potential critical business needs (like one off testing platforms) without spending weeks rewriting drivers.
Re:My Business Card Runs Linux
by glaberficken on Friday December 27, 2019 @02:10PM
(#21893559)
Thanks for the Adafruit tip. My 9yo daughter is learning scratch, so the block based programming is going to be great to try out with her.
Not exactly what you're asking for, but you may enjoy Shenzhen I/O and other titles from Zachtronics: http://www.zachtronics.com/shenzhen-io/
Re:My Business Card Runs Linux
by glaberficken on Friday December 27, 2019 @02:10PM
(#21893572)
yeah good tip =) i already knew them but thanks anyway!
Re:My Business Card Runs Linux
by coupdejarnac on Tuesday December 24, 2019 @09:22PM
(#21876303)
Hardware is so cheap and accessible these days, just get an Arduino board. There are lots of kits available with sensors and actuators, and it's all so easy to use it's like building with Legos.
If you've never tried Python including a REPL for whatever project you'd use Arduino for it's definitely worth giving a shot. Different kind of game than C.
Re:My Business Card Runs Linux
by Dontrememberit on Wednesday December 25, 2019 @02:11PM
(#21879955)
Today an esp32 is more bang for your buck. 80mhz dual core, has wifi and bluetooth, and so on
Edit: and you can program it with the arduino IDE
As an amateur programmer that has never actually physically handled hobby micro-controller type boards, but has read a lot about them, it was amazing to be able to try out the emulator at https://micropython.org/unicorn/
Make the leds blink, see how servo control works etc, all in the browser without having to actually buy any hardware! I had never seen anything like this.
Would love if others could point me to more advanced emulators of hardware micro controllers (if there is such a thing!)