This week's project involved designing a network by linking two processors.
In my project I created a network of two Arduino boards. The master board
speaks to the slave board through I2C.
I implemented the connection using the Wire library for Arduino.
(http://arduino.cc/en/Reference/Wire).
This tutorial was really useful in understanding how I2C for Arduino works.
(http://www.instructables.com/id/I2C-between-Arduinos/?ALLSTEPS)
Hardware
The hardware involved connecting the analog pins 4,5 of the master board to
the analog pins 4,5 of the slave board. Furthermore, the grounds of the two
boards had to be connected.
In they Arduino IDE I programed the master board to send bits using the Wire.write()
command. The slave board would read the incoming bits using the Wire.read() command
and then according to their number, one of the LEDs would blink.