The class was about the different types of networks and the protocols that allow it.
We discussed wired vs wireless communication and their modalities (serial vs parallel, synchronous vs asynchronous...).
The content of this week is available
here.
For this task, I wanted to use wireless communication and send sensors reading from one microcontroller to another. I followed a tutorial to use ESP-NOW, a protocol developed by Espressif for communication without wifi (
see here).
I followed
this tutorial for 2 way communication between two ESP32 microcontrollers.
In this tutorial, they are sending data from BME280 sensors between the two boards and displaying it on OLED screens. I modified the code as I used a DHT11 sensor that I had instead and no OLED screen, I displayed the messages sent on the monitor of Arduino IDE instead.
The first step was to get the microcontrollers MAC addresses by uploading some code and pressing the reset button.
In my case, the two controllers I was using had the following codes: ESP1 = 3C:61:05:4B:05:C8 and ESP2 = 3C:61:05:48:D3:F8
It is useful to write them done and label them to then remember which one is which when starting to program them for communication.