Embedding Ruby into your Daily Life
summary
Claim: Ruby can run on microcontrollers by using Mruby runs in ~80KB RAM and cross‑compiling Ruby into bytecode that gets linked into C for upload. Tools: Raspberry Pi and BeagleBone Black handle high‑level state and web UIs, Arduino (ATmega328p) or Due handle realtime IO with I2C delegation, and mrbc produces bytecode for an Arduino‑hosted VM. Surprises: 8KB AVR SRAM is too small for CRuby, one Arduino Due can host Mruby, a rover and brewery PID controller and a “Keep Me Alive” plant warden all actually work.
AI-written summary · about
chapters (21)
- 0:00Intro
- 0:27Andrew Nordman
- 0:58articulate
- 2:46Let's Just Be Friends
- 3:16Embedded Systems
- 4:58Voltage Logic
- 6:07Subsystems
- 7:40General Purpose I/O
- 9:51Raspberry Pi
- 10:57BeagleBone Black
- 18:57KeepMeAlive.Animal
- 20:22Drawbacks to Ruby
- 22:13Alternative Approaches
- 22:24Delegate to MCUS
- 23:46ATMega328P
- 25:33Mruby's small footprint is because it cut out a lot.
- 27:54Adding an mgem to mruby
- 28:36Cross-Build Mruby to Targets
- 30:05Steps to push Ruby code to Arduino
- 32:56Always Be Coding...
- 33:27More Questions?
related talks
33mmruby/c: Running on Less Than 64KB RAM Microcontroller
36m(m)Ruby on small devices
36mWrite once, run on every boards: portable mruby
36mmruby: AltRuby
29mWhat's happening when initializing mruby?
29mmake mruby more portable: Why and How
40mmmm..mruby, or why yet another Ruby implementation
35mmRuby meets iOS and RTOS
