mruby/c: Running on Less Than 64KB RAM Microcontroller
summary
A one‑chip IoT sensor suite for a Japanese Sake brewery actually ships and runs Ruby bytecode on microcontrollers: mruby/c compiles mRuby bytecode into a tiny VM that fits less than 64KB RAM devices (example: PSoC5LP with 65KB RAM) and runs bare‑metal without RTOS; the deployed device (delivered Jan 2018) reads thermistors, CO2 and posts to a server, drives LEDs, and the demo uses ESP32 too. Development uses C glue, mrubyc bytecode toolchain and mrubyc test and debugger to unit test and inspect tasks.
AI-written summary · about
chapters (19)
- 0:00Start
- 1:53Terminology
- 3:13Why microcontroller?
- 5:10Which microcontroller?
- 9:19Demo
- 11:01Bugaboos in IoT
- 11:36Peripheral equipments
- 12:17CRuby and serial port
- 13:14Soldering
- 14:08What is mruby?
- 16:08HEX dump of bytecode
- 16:38mruby/c on microcontroller
- 18:15How less? - For example
- 19:29How does mruby/c work
- 21:37Application code
- 28:03Dev tools for mruby/c
- 29:03mrubyc-utils
- 29:48mrubyc-test
- 33:02Conclusion
related talks
34mEmbedding Ruby into your Daily Life
36m(m)Ruby on small devices
33mmruby on the minimal embedded resource
40mmmm..mruby, or why yet another Ruby implementation
36mWrite once, run on every boards: portable mruby
29mmake mruby more portable: Why and How
27mROM: the final frontier of mruby
35mmRuby meets iOS and RTOS
