SECOND VERSION
For this activity, two parts have been developed, one that will consist in communicating to two mBots through the IR sensor and another through the Wi-Fi module.
We can incorporate to mBot the LED Matrix or the TFT LCD screen to see the messages and when they are sent and receive these.
The mCore board incorporates two IR (infrared) sensors, one that sends (IR Transmitting) and one that receives (IR Receiver), as we can see in the image.
We use these for connect 2 mBots:
To select the message that we want to send, we have created a list with the messages assigned to the numbers from 0 to 9:
As you can see, the messages are from the computer world, so we will use the mBot to send and receive possible computer failures.
To choose the message we will use the mBot remote control:
The number of the received message will be displayed in the LED Matrix and the message text will be displayed on the TFT LCD Screen.
A sound will also be emitted and the mBot lights will change, so that the notification would be more perceptive as possible.
The receiver mBot will always be listening, and the moment it receive a message, the function of the message in question will be activated.
If we use the mBot Wi-Fi module, we can send messages between the mBots at a greater distance.