Networking and communications



Group assignment:
Send a message between two projects
Document your work to the group work page and reflect on your individual page what you learned

Individual assignment: Design, build and connect wired or wireless node(s) with network or bus addresses and a local input and/or output devices

This project is part of our networking and communication assignment. It demonstrates how multiple microcontrollers can share data using serial communication while also providing user feedback from the Serial and visual output. The network is built on wired serial communication.
The connecting wire are Switched on the breadboard to allow multiple devices to connect on the network.

Programming Approach

Each component was tested separately before integrating into the final sketch. The code performs the following tasks:

Addressing Method

Each board is given a unique ID (int id = 2;). to ensure only the intended recipient processes a message.
Messages follow the format COMMAND:R,G,B@ID (e.g., COLOR:255,0,0@2).
If the incoming ID matches the board’s ID, it processes the message based on the command to perform (COLOR to sets the NeoPixel color accordingly, DISPLAY to show message on LCD).

Challenges & Fixes
  1. LCD (16x2) display

Below are the results from the serial commands.
Before commands

LCD display message

LED display color based on the command.

Serial message

Code file to test
Networking code