CodeAndData

CodeAndData

Robot motion closed-loop control with Nerves

Hi, all. I’m pretty new to Nerves. I’ve been working professionally with Elixir and Phoenix for a bit now.

On the side, I mentor a high school robotics team doing FIRST Robotics Competition – larger ~100+ lb industrial-style robots doing a number of toss, pick & place, drive, etc., type tasks with closed-loop control. That work is done in Java with a framework provided by FIRST called WPILib alongside a number of vendor-provided device libraries. On-robot device-to-device control communication is often done via CAN bus and sometimes PWM or Digital IO. The on-robot controller computer is the NI RoboRIO.

Is Nerves suitable for this kind of thing? Has anyone attempted something like this in Nerves? I’m initially thinking of a Beaglebone Blue or Beaglebone Black + Robotics Cape as a controller here.

Thanks in advance for any ideas, cautions, references to projects or materials, or anything else that might be helpful here. Hoping to understand (1) if I should abandon this idea, and (2) assuming not, how to get started here.

First Post!

LostKobrakai

LostKobrakai

Your description makes it sound like you might require hard real time support. Nerves doesn’t provide hart real time guarantees. Though if that’s an requirement you might want to look at grisp, which does support. If that’s not a requirement than you could likely make nerves work.

Where Next?

Popular in Questions Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New

Other popular topics Top

minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New

We're in Beta

About us Mission Statement