Luis Ernesto Flores Olazo- academy 2014

NETWORKING AND COMMUNICATION

for this assignment I have to build a network of microcontrollers and communicate each other. First we have to fabriate the boards: 1 bridge and 2 nodes.

To do that you have all the files in the SERIAL-asynchronous section here

Photo: Bridge and Node

Photo: Boards fabricated

Programing: Dowload the file here : http://academy.cba.mit.edu/content/tutorials/akf/Downloads/bus_fixed.zip unzip the file and change the line (#define node_id ’0′) for each board (--For bridge #define node_id '0' --For node 1 #define node_id '1' --For node 2 #define node_id '2' )

To flash the boards connect the fab isp to each board, open a terminal on ubuntu and write:

- sudo make -f hello.bus.45.make program-usbtiny

- sudo avrdude -p t45 -P usb -c usbtiny -U flash:w:hello.bus.45.c.hex

Plug your bridge into your computer (with the nodes attaches). Connect the nodes with a cable as shown in the picture above. Open a Arduino IDE Open the serial monitor from the "Tools" menu > serial monitor Make sure the baud rate is set to 9600. Enter number of a node - press the key or the "send" button on the serial monitor. The LEDs on all the boards should light up once. After all the boards light up, the board with the number you entered into the serial monitor should light up again.

Finaly the result :