akoutmos

akoutmos

Author of Build a Weather Station with Elixir and Nerves

Programming Nerves (self-published)

@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building LiveView powered kiosks (and everything in between).

You’ll be building projects like:

  1. A Morse code translator
  2. A reaction time tester
  3. An Etch A Sketch that renders in Livebook using knobs
  4. Upgrading the Etch A Sketch to use a joy stick
  5. Rending CPU temperature from the Raspberry Pi in LiveBook using VegaLite (you’ll also write a simple stress test to get the CPU hot :grin:)
  6. A simple weather report/clock using a 20x04 LCD display
  7. Displaying of accelerometer data using OLED displays
  8. Interacting with accelerometer data using a LiveView kiosk

By the end of the book, you will have built a wide a array of projects and should be more than comfortable tackling some of your own Nerves projects!

  1. Part 1: Rapid Prototyping Nerves Using Livebook

  • Getting Started With Livebook
  • Build a Morse Code Translator
  • Build a Traffic Light Simulator
  • Build a Reaction Time Game
  • Building the Etch A Sketch Circuit
  • Programming the Etch A Sketch
  1. Part 2: Building Custom Nerves Firmwares

  • Build a Custom Nerves Firmware
  • Optimizing Your WorkflowC
  • Interfacing With I²C Hardware
  • Creating a Nerves Kiosk
  1. Appendices

  • Basics of Electricity
  • Selecting Resistors
  • Using a Breadboard

Check out the book landing page for more details and to see how you can buy the book at 38% percent off while we’re in beta:

https://www.programmingnerves.dev/

Also our promo video where we show off a few of the projects that you will build:

Happy hacking!

Most Liked Responses

akoutmos

akoutmos

Author of Build a Weather Station with Elixir and Nerves

The goal is to have the book edited and completed by mid 2026.

akoutmos

akoutmos

Author of Build a Weather Station with Elixir and Nerves

Thanks! Here is a screenshot of the “What you will need” section:

This is subject to change as the projects are tweaked here and there during Beta. That said I don’t imagine it’ll change much.

Specifically regarding the Raspberry Pi, the wiring diagrams in the book are based on the Raspberry Pi 5 like so:

But if memory serves me correctly, any Raspberry Pi that has the 40 pin header should work (Raspberry 2+) as they standardized on the pins. So you have some flexibility with regards to what hardware you use.

akoutmos

akoutmos

Author of Build a Weather Station with Elixir and Nerves

Apologies if my previous comment was unclear. I meant anything with higher specs than the Pi Zero 2 W, including the Pi Zero 2 W. So I would suggest using one of the following to complete the projects within the book (also depending on what you plan on doing with the Pi long term):

  • Raspberry Pi Zero 2 W (can be found for about $20 with headers already soldered on)
  • Raspberry Pi 3 Model B+ (can be found for $40)
  • Raspberry Pi 4 Model B (1GB version can be found for $40 and price goes up with more ram)
  • Raspberry Pi 5 Model B (1GB version can be found for $45 and price goes up with more ram)

Given that the Livebook distribution of Nerves will consume about 100MB of memory at idle, you have about 400MB of memory left if you go with the cheapest option in the list (that being the Pi Zero 2 W which has 512MB of memory).

Where Next?

Popular in Books Top

meraj_enigma
New book from Packt publication that goes into teaching how to write a web framework using Elixir. About this book Elixir’s functional...
New
AstonJ
By Simon St. Laurent If you’re new to Erlang, its functional style can seem difficult, but with help from this hands-on introduction, y...
New
PragmaticBookshelf
Frank Hunleth @fhunleth Bruce A. Tate @redrapids edited by Jacquelyn Carter @jkcarter Want to get better at coding Elixir? Write a har...
New
AstonJ
Classing this as a free online book :003: By Sean Callan with help from the community Lessons about the Elixir programming langua...
New
AstonJ
By Francesco Cesarini, Simon Thompson This book is an in-depth introduction to Erlang, a programming language ideal for any situation wh...
New
PragmaticBookshelf
Peter Ullrich (@PJUllrich) edited by Michael Swaine @michaelswaine Data is at the core of every business, but it is useless if nobody ca...
New
PragmaticBookshelf
Tony Hammond Series editor: Bruce A. Tate @redrapids Developmental editor Jacquelyn Carter @jkcarter Data is everywhere—it’s just not ...
New
Eiji
The Ecto recipes were originally written for the “What’s new in Ecto 2” ebook and then made open-source by Plataformatec. Since then, the...
New
PragmaticBookshelf
Rebecca Le and Zach Daniel @zachdaniel _edited by Kelly Lee @k.lee _ Ash Framework is the game-changing toolkit for Elixir developers. W...
New
PragmaticBookshelf
Andrea Leopardi @whatyouhide edited by Jacquelyn Carter @jkcarter TCP, UDP, DNS, HTTP, and more: these are the network protocols that ma...
New

Other popular topics Top

albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

We're in Beta

About us Mission Statement