week 15

Networking and Communications

Design and build a wired &/or wireless network connecting at least two processors

This assignment was very hard and frustrating for me, at first I designed the PCB to handle Attiny44 LED strips with power and communicate through I2C protocol. But I had problems in programming. Then i tried to redesing the schedule example, in this case my slaves worked well, but the Master in the programmer don't allowed me to compile because it was heaviest.

First Tried

Following you can see the traces and cut .png and the PCB milled and soldered. In this case it was the slave and the Fabduino was the master.

Second Tried

Following you can see the traces and cut .png and the PCB milled and soldered

MASTER
SLAVE

Third time lucky

In previous tests I tried to make the communication with the I2C protocol, now I tried the asynchronous system. And finally it worked! following the pics of the boards.

MASTER
SLAVE

To program asynchronous serial communication my three cards (master, 2 slaves). I used this code.

To program the MASTER first, it is important to note that the address in the code is "0". Subsequently, for SLAVES should appear as "1" and "2" respectively.

MASTER
SLAVE

For tasting the network, I used the arduino serial monitor to display the operation.