ESP32 MESH — HANDS-ON

Simple Mesh ESP32 Mesh Net — Expressif SDK-IDF #esp32MeshSeries Episode #01

J3
Jungletronics
3 min readDec 19, 2020

--

By now you should have a good understanding of what the ESP32 is all about, and you must be eager to get hands-on with it. Git Repo link;)

I totally understand :-).

Let’s proceed with the next level, where I’ll show you how to set up the ESP32-IDF MESH Core on 6, yeah, six ESP32 Heltec V2 board, linked together in an auto-healing network.

JUST CHECK IT OUT:

Code’s Description

This program automatically chooses what node becomes root.
TO MAKE IT WORKS, We include the OLED library and set up all the links at
Directory C:\msys32\home\USER_PROFILE\esp\esp-idf\components;
To test disconnect one of the roots and in approximately 30 seconds a new root will be chosen. Return the node and you will see it associated with the new root. Nice & cool experiment!
Test with at least three ESP32 boards.
Enjoy /

Commands:

$ make menuconfig -> Set your project port, location, etc
$ make erase_flash -> To erase the flash; before taking the final two-digit MAC Address reported here ( as NODE_NAME)
$ make flash -j5 monitor -> Flash the ESP32 and run the Serial Monitor at the end :)

To Get started at Flashing ESP-32 Tutorial:

https://medium.com/jungletronics/esp-idf-programming-guide-wifi-lora-32-v2-53f89e12c96e

What is ESP-MESH?

ESP-MESH is a networking protocol built atop the Wi-Fi protocol.

Features:

Easy and Secure Setup;
Self-forming and Self-healing;
No Extra Gateways Required;
IP Connectivity;
Secure by Design;

Applications:

Smart Lighting: smart lights, lighting network;
Smart Home: smart switches, sockets, plugs, etc;
Automation: big parking lots, small factories, shared offices;

Official Espressif & Heltec guide:

ESP32 Mesh:
API Reference — ESP-MESH Programming Guide
Quick Start:

Installation Espressif ESP-IDF framework

Fig 1. From https://my-esp-idf.readthedocs.io/en/latest/get-started/index.html — As you can see we will need ESP-IDF framework installed on our PC, a Toolchain, a Project and finally build it and upload it with make utility prog into our WiFi LoRa 32 (v2) — Please, read more :)

Follow Some Note About This Experiment

From https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/mesh.html

See you in the next esp32MeshSeries Episode o/

Gotta walk before you run.

Thank you for your support!

Download All Files For This Project

Related Posts

00 # Episode # esp32MeshSeries — Simple Mesh ESP32 Mesh Net — Expressif SDK-IDF (this one YET:/)

03#Episode # ESP_IDF_Series — ESP32-IDF — HelloWorld Get Started — How To Get Started

Credits & References

Microgênios — Treinamento em Sistemas Embarcados — Microchip Regional Partner Certified Training Courses a Simplício-owned enterprise \o/

WiFi LoRa 32 (V2)

ESP-MESH — OVERVIEW

Day after: organizing everything…We Wish You a Merry Christmas…The Beatles — Here Comes The Sun (2019 Mix)
Cockroach insects on my son kkkk art table… Here to tell you THANK YOU 0/

--

--

J3
Jungletronics

Hi, Guys o/ I am J3! I am just a hobby-dev, playing around with Python, Django, Ruby, Rails, Lego, Arduino, Raspy, PIC, AI… Welcome! Join us!