ImNotAVirus

ImNotAVirus

ESP-NOW with Nerves

Is there currently a way to send and receive data between a Nerves device (Raspberry Pi) and few ESP devices using ESP-NOW ?

My goal is to create a network of sensor nodes (using ESP32/ ESP8266) controlled by a Raspberry on which I can retrieve stats and trigger actions.
I want my sensors to consume as little energy as possible, hence the fact that I want to use ESP-NOW for communication rather than Wi-Fi, for example.

I’d like to know if anyone else has tried a similar project.

Thanks in advance.

Most Liked

fhunleth

fhunleth

Co-author of Nerves

I’m not familiar with ESP-NOW, but if there’s a Linux driver for it, there should be a way to use with Nerves with some work.

If there’s not a Linux ESP-NOW driver (I couldn’t find one on quick search), I’d make a wired connection between the RPi and one ESP32/ESP8266 and use that local ESP for communication with the sensor node ESPs. Bridging over the UART pins might not be bad if you don’t mind coming up with a communications protocol for your app.

natewallis

natewallis

One other solution which I am playing with is to use a CANBUS enabled carrier board with a RPI4 compute module that can talk to your ESP module. You can output CAN frames from your ESP (at least ESP32 Classic+) to communicate with your carrier board (which exposes CAN as network interface in linux). Might save you reinventing the wheel with a communication protocol and lean on something that is industry ready instead.

If you could get Linux running on ESP32 though, wouldn’t that mean you could potentially get Elixir/Nerves running on the ESP32 (with some effort?)… that would be cool and drop the cost of hardware for nerves implementations right down…

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 map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
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
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
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
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
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New

Other popular topics Top

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
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 49266 226
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42716 114
New

We're in Beta

About us Mission Statement