All episodes
Episode 38 · Nov 20, 2026 · 1h 05m

From One LED to 10,000 Devices: Omer Kilic & Frank Hunleth on Nerves

ElixirErlang

A Nerves device at SmartRent once reported an exception in which an empty list had become a zero. The timestamp and location showed it came from Florida, just as a hurricane made landfall and a brownout hit the area. A bit had flipped in memory. The GenServer crashed, the supervisor restarted it, and the resident never noticed anything. Frank Hunleth only looked into it out of curiosity.

Frank created Nerves. Omer Kilic runs Ordinatra Minima, a London hardware and manufacturing consultancy, and worked on Erlang Embedded at Erlang Solutions and built Erlang/ALE. In 2013, at Erlang Factory San Francisco, Omer ran the embedded Erlang tutorial where Joe Armstrong got the LEDs on his board blinking. It was also the first time the two of them met.

The episode starts from a single line of Elixir, Circuits.GPIO.write, and follows it down the stack: through the kernel driver to a pin, across microcontrollers, 20-cent RISC-V chips and FPGAs, and then out to fleets of devices in people's homes. Their rule for splitting the work is that the BEAM decides when and the hardware decides how fast.

  • Squeezing Erlang into 8 MB of flash on a MIPS board before Nerves existed
  • A handheld retinal diagnostic device built in C++ with hand-rolled actors and a supervisor
  • Why "bare metal" means a microcontroller or an FPGA, and not Linux or an RTOS
  • Hardware real time: a guaranteed upper bound on how long something takes, not just "fast enough"
  • From Erlang/ALE to Elixir ALE to Circuits
  • When soft real time is enough for an LED and when it isn't (PWM dimming, Morse code, NeoPixels)
  • Kernel interrupt timestamps in Circuits.GPIO, driving NeoPixels over SPI, hardware PWM, and kernel LED patterns with Delux
  • Heterogeneous SoCs as tiny distributed systems on a single chip
  • Companion microcontrollers over UART, SPI, I²C, CAN or RS-485, and putting them under your supervision tree
  • JIT on ARM64 but not on RISC-V, and why DRAM matters more than CPU architecture
  • Why boring hardware wins in production, and why hobbyists should push the BEAM anyway
  • Going from one board to 10,000: fleet management, NervesHub, NervesCloud and Sentry
  • Security from the napkin sketch onwards: secure elements, device identity and fast firmware updates

Recorded 11 November 2026.

Resources mentioned: Nerves, Circuits (GPIO, I²C, SPI), Delux, NervesHub, NervesCloud, Erlang/ALE, Omer's Code Mesh talk "Bare Metal from a Hardware Perspective: Embedded Frameworks and Build Systems", Build a Binary Clock with Elixir and Nerves by Frank Hunleth and Bruce A. Tate (Pragmatic Bookshelf), the Nerves Discord (nerv.es/discord).