For this week's assignment we need to communicate two circuits doing different things. For this assignment we need to communicate two microcontrollers with a master/slave relation.
The protocol I'll use for this assignment is I2C. I will control two microcontroller boards. The board was previously designed in Week 6.
For this assignment will use the micro controller board named roluino. This board will work as a master board and will control the outpupts board.
Above we have the outputs board that I will use to work with I2C
We prepare the output boards previously designed and manufactured in week 10. This will work as a slave.
You can download the codes from arduino and visual basic from here.
Now we have the video to prove that it works. With this visual interface we click, send it to the ATMega and then it turns on the LED in the output board, when is on, the output boards sends an answer to the atmega, and then the atmega sends a signal to turn on the motor.