Skip to content

A14 - Networking and Communications

Brief


  • Design, build and connect wired or wireless node(s) with network or bus addresses and a local interface

xxx TODO HERO IMAGE

Microcontroller Peer to Peer interfacing


You'd be suprised how easy it is to hook 2 simple microcontrollers together! Jaryd used 'Serial' or UART to connect 2 boards (a Pico and Pi together), but what happens when you want to do it wirelessly? Without existing network infrastructure? It becomes a lot harder.

Done easily

This method requires specific hardware, the ESP32. Espressif have created a protocol light communication standard called ESP-NOW. Allowing ESP32's to communicate in a lightweight fashion.

Using the following code I was able to verify that 2 boards could talk to eachother (once having set the MAC address).

xxx TODO, add code blocks (rx and tx)

Expanding that idea...

Now we can use the input function to allow the user to input their own message before sending.

If we set a password then we can 'unlock' a door (Note: ESP-NOW is not in any way secure, there is no encryption).

If the password is a match then our metaphorical lock opens for 3 seconds (the onboard LED on the HUB turns green).

xxx TODO: pics

Resources - DESCRIPTION

SECOND TASK


xxxxxxxx explanation xxxxxxxx

SUB TASK

xxxxxxxx explanation xxxxxxxx

SUB TASK

xxxxxxxx explanation xxxxxxxx

Resources - DESCRIPTION

FILES

DOWNLOAD LINKS HERE