Networking & Communication.

Group Assignment

Interaction between two Xiao ESP32 c3 boards.

For this group assignment, we have decided to measure temperature and humidity with one microcontroller board and plan to display it through a second micro-controller board.

We have used two XIAO ESP32 c3 boards to communicate with each other, both boards were designed by considering final project requirements.

Description of image

Program

For the interaction between two boards, initially we have extracted Mac id of both the controllers using below code.

Description of image

This is generated Mac id for the first board.

Description of image

This is Generated Mac id for second board.

Description of image

Program for sending data from the first controller, where we put the generated mac id for receiver controller.

Description of image

This a program for receiving data at a second micro-controller, here we have put the max id generated by the sender micro-controller board.

Description of image

Initially, we have planned that to measure the readings from first board and to display the measured reading at the second board with OLED display. But unfortunately OLED didn’t work well so received the reading to serial monitor of receiver controller.

Description of image