Testing Concurrency and Fault Tolerance in Elixir/Nerves
summary
Elixir with Nerves runs sensors on Raspberry Pis and Arduinos, using circuits_u for USB, ocx for OSC to Pure Data, and a Fenix Live dashboard; processes are gen_server per sensor supervised by a dynamic supervisor and polled at intervals. Three real failure cases are shown: disconnected wiring handled by thresholds and previous-value fallback, full board crash detected by 5s timeout, and noisy/broken readings resolved with triple modular redundancy averaging within an agreement threshold; demos recover on replug and the approach proves practical for prototyping.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 2:56Hardware architecture
- 8:27Elixir architecture
- 10:16Sensor disconnection failure
- 16:01Board crash failure
- 17:49Broken sensor failure
- 21:28Real-world apps
related talks
46mFunctional IoT with Elixir and Nerves
46mThe Joy of Connecting Elixir to the Physical World
35mA production-grade Nerves System
40mAn Elixir app to a small hydropower plant
52mFrom Zero to IoT with Elixir and Nerves
44mBuilding Communities of Smart Things Takes Nerves
31mNerves - An industrialization journey
40mNervous System - Nerves Clustering Using Your Own Distribution
