Networking Comunication

For this week assignment we had to Build a wired and/or wireless network with at least two nodes.

First step was milling and stuffing the boards.

I used led as output in the bridge and in one of the nodes and dc motor in the second node

Next step was programming the boards.

I download neil's C code the Hello. bus. 45

Each of the boards acts as a node including the bridge so each has to be programmed with a different id.

This is done on line 41 of the c file.

HTML.net fablabil

I named the bridge as node 0 by saving the c file with 0 in the i.d. line.

Then I connect the FTDI cable to the bridge, connected the programmer, open terminal, navigated to the file location and programmed the board using this line:

make -f hello.bus.45.make program-avrisp2 (or fabisp)

HTML.net fablabil

Node #0 was programed:

HTML.net fablabil

Next step was doing the same with two other boards: I connected them to the power supply of the bridge board, opened and modify the c code to node i.d 1 and save the file.

That way I Programmed node 1 and did the same for node 2.

For testing I opened the arduino serial monitor,

Typed one of the node i.d's and all 3 boards flashed once while selected board flashed twice.

HTML.net fablabil

Last step was trying to modify the code by my own.

I changed the delay of the one with the dc motor into 2000 ms, in order to let it sweep little longer

HTML.net fablabil

For the led I multplie the flash comand in the code main loop, so it flashed few times