Building a remote control car from scratch using Elixir

Click for: original source

From the car straight to the app on your phone, check out how our America office uses Elixir’s fullstack capability to build a remote control car. By Ricardo Lanziano.

The basic idea is for us to move a pair of wheels. In order to do that, we need a device that is capable of power and can control a couple of motors. We decided to use a L298n motor driver that is easily available in the local electronics stores.

Elixir is undoubtedly one of the most comprehensive full stack languages available, offering battle-tested reliability and fault-tolerance on the backend. This is thanks to its origins in Erlang, the BEAM VM and OTP, powerful and agile frontend development thanks to LiveView and the ability to write to hardware with Nerves (not to mention the exciting developments happening in the machine learning space).

Main section of this article:

  • Requirements
  • Theory
  • Starting the project
  • Tune in
  • Powering the device
  • Moving the wheels
  • 4 Sources and conclusions

Team had fun assembling the kit and working with Nerves. It was easier than we expected, and we found that Nerves is a very stable and solid frame- work for deploying Elixir applications in restrained environments without friction. Good read!

[Read More]

Tags erlang app-development frameworks elixir