what piqued my interest: nerves boots with only barebones linux and the otp/beam vm, effectively turning elixir into the embedded os [0]
Hard real-time Erlang. It's siiiick.
Source: I was part of the original core team, and I developed the first version of the Erlang support library and runtime.
You can look at AtomVM for a way to run Erlang and Elixir on an MCU. It just isn't Nerves. Nerves is a Linux :)
Could you have a Pi on Nerves talking to microcontrollers?
I've never really worked with hardware but this all looks fascinating.