AstonJ

AstonJ

What kind of sensors, cameras, add-ons and other hardware can you use with Nerves?

I guess it depends on your base unit, but what kind of stuff can you use with, say, a Raspberry Pi?

Here’s some I found - are they easy enough to use with Nerves?

https://www.amazon.co.uk/Elegoo-Sensor-Tutorial-Arduino-Raspberry/dp/B009OVGKTQ/ref=sr_1_1?s=computers&ie=UTF8&qid=1528416057&sr=1-1&keywords=raspberry+pi+sensors

Oh wow, from the link above…

Most Liked

fhunleth

fhunleth

Co-author of Nerves

Here are some pointers:

7" Raspberry Pi display -This is one of the easier displays to get working with Nerves. If you search for kiosk_system_rpi3, you can find Nerves/Phoenix/Chromium examples of kiosks. There are also two Elixir-native UI projects in the works: https://github.com/cdegroot/uderzo_poncho and https://elixirconf.com/2018/speakers/#boyd-multerer.

Pi Camera - See GitHub - elixir-vision/picam: Elixir library used to capture MJPEG video on a Raspberry Pi using the camera module. · GitHub. This camera is way too much fun. I believe that there are a few blog posts around on using it.

LCD display - This one works through I2C, so elixir_ale can be made to work with it. There’s also an LCD library at GitHub - cthree/ex_lcd: A hex package to support character matrix LCD displays in Elixir · GitHub that people use, but it looks like the LCD driver IC for this is different, so it might not work out of the box.

Elegoo 37-in-1 sensor pack - Those parts look very similar to what was used at Elixir Consulting and Web Development - Erlang Solutions. A similar idea, but slightly easier to use set called the GrovePi and Grove sensors. They’re a little more expensive, but you need to know less about electronics to make them work. Look at this library: GitHub - adkron/grovepi: Use the GrovePi in Elixir · GitHub.

axelclark

axelclark

As someone new to electronics, I initially hit a wall after making LEDs blink. The GrovePi Starter Kit was a big help to get past the initial barrier of learning to read data sheets and figuring out how to wire up the sensors.

I wrote a blog post about building a Home Weather Display with Nerves and GrovePi.

I also posted my All of the Lights project a few weeks ago which uses the GrovePi relay to turn a lamp on and off with Phoenix & Channels.

Both of these projects just use sensors from the starter kit and the grovepi library. The library includes a few other example projects using sensors from the starter kit (excluding the PivotPi which is sold separately).

Where Next?

Popular in Questions Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
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
JulienCorb
I am trying to implement my new.html.eex file to create new posts on my website. new.html.eex: <h1>Create Post</h1> <%= ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
jaysoifer
Is there a way to rollback a specific migration and only that one (“skipping” all the other ones)? Would mix ecto.rollback -v 200809061...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New

Other popular topics Top

danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 29603 241
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
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
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
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
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

We're in Beta

About us Mission Statement