I guess I’ve been a bit disappointed Nerves doesn’t run on microcontrollers, though, such as an Arduino or Raspberry Pi Pico. Basically,
once you have Linux, you can run nearly anything already.
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.