DTU

GRUPPE6

41030 MECHATRONICS ENGINEERING DESIGN

Two Way Communication

Next step in the Arduino process was to set up two-way communication. Product A has buttons and an LED-strip and Product B has buttons and an LED-strip. The buttons on Product A control the LEDs on Product B, and vice versa.

The communication between them was first established directly via MQTT. When this was successful, we added NodeRed.

MCU.A  -- MQTT -- NodeRed -- MQTT -- MCU.B

At this point in the process, it is on a very basic level, just to make sure the communication works. Now that we have a basic platform, we can add functionality. 

Next up for the hardware team - setting up an Arduino-code that allows the LEDs to change color depending on which color code that has been sent to the MCU. We decided to use HEX-color codes as we thought these were easier to handle than RGB-color codes.


Next up - teaching the MCU to read a message that contains information about both which LED should light up, as well as the users color choice as per NodeRed.