Build a Binary Clock with Elixir and Nerves

Use Layering to Produce Better Embedded Systems

by: Frank Hunleth and Bruce A. Tate

Published 2022-08-02
Internal code thnerves
Print status In Print
Pages 106
User level Intermediate
Keywords elixir, nerves, otp, leds, microcontrollers, diy hardware, hardware hacking
Related titles

Build a Weather Station with Elixir and Nerves
Designing Elixir Systems with OTP
Programming Elixir

ISBN 9781680509236
Other ISBN Channel epub: 9781680509779
Channel PDF: 9781680509786
Kindle: 9781680509755
Safari: 9781680509762
Kindle: 9781680509755
BISACs COM038000 COMPUTERS / Hardware / Mainframes & Minicomputers
COM050000 COMPUTERS / Hardware / Personal Computers / General
COM050000 COMPUTERS / Hardware / Personal Computers / General

Highlight

Want to get better at coding Elixir? Write a hardware project with Nerves. As you build this binary clock, you’ll build in resiliency using OTP, the same libraries powering many commercial phone switches. You’ll attack complexity the way the experts do, using a layered approach. You’ll sharpen your debugging skills by taking small, easily verified steps toward your goal. When you’re done, you’ll have a working binary clock and a good appreciation of the work that goes into a hardware system. You’ll also be able to apply that understanding to every new line of Elixir you write.

Description

Combining software with hardware can be frustrating, but you can become proficient in no time by taking a simple, logical approach. Blinking a single LED is the traditional “Hello-World” of embedded systems. Building your own binary clock is the logical next step. It blinks groupings of LEDs based on the system time. This guide walks you through a working project using the techniques used by experts who build software for hardware every day.

This commonsense project moves forward in tiny, logical steps. As you progress, you can verify each step before moving on to the next. You don’t have to be a Nerves novice to benefit from this project. Become a better Elixir programmer as you build your own desktop showpiece. With a layered approach to software design, you’ll learn to control the complexity of your programs the way the experts do by focusing on one small slice of your system at a time.

When you’re done, you’ll have your own binary clock and more of the tools you need to design and build your own Nerves and Elixir projects. You’ll also be a better programmer with a deeper appreciation of layering techniques for controlling complexity.

Contents and Extracts

Introduction