14. Networking and communications

in this week I made my echo hello world board talk to my atmega board and to tell it to close the LED Light when the buttun is pressed.

I started with writing a code for my echo hello as the following:

then on the Atmega board:

outcome:

Group Assginment

link to the group assignment

I^2C

I thought also to try the I^2C which is a communication method used to communcate between microcontrollers.

according to the diagram above, I need a circuit to be the master circuit, so I am going to make my echo hello board as the master board.

by using a bread board, I have connected the SDA and SCL from avr isp header.

so the code I use is as the following:

and then the slave board is my Arduino Board

and I have used the following code for it

Downloads