Logo academy

WEEK 15

EMBEDDED NETWORKING AND COMMUNICATIONS

Fab Academy 2017 at Fab Lab Barcelona By Trinidad Gomez Machuca

Learning outcome W15

Demonstrate workflows used in network design and construction

Implement and interpret networking protocols

Serial Asynchronous

For this assignment i decided to make the Serial Asynchronous because i wanted to understand in the basic level how the networks works. For this i followed the Edgar documentations of this assignment that is very helpful. After this i would like to explore wireless communication for my final project that i will post here when i finished, but first the basic.

Boards

Here you can find all the files Embedded Networking and Communications with all the important files for programing and fabricate the boards. In this assignment you have to make at least two different boards, one bridge and the Nodes that you want, in my case i did two nodes.

Bridge

ATTINY45SI

AVRISPSMD/2X03SMD

CAP-US1206FAB/1uf

LEDFAB1206

PINHD-2X2-SMD/2X02SMD

RES-US1206FAB/10K

RES-US1206FAB/1K

FTDI-SMD-HEADER/1x06SMD/

File File File

Node

ATTINY45SI

AVRISPSMD/2X03SMD

CAP-US1206FAB/1uf

LEDFAB1206/

PINHD-2X2-SMD/2X02SMD

RES-US1206FAB/10K

File File File

Finally

File

Programming

In the programming part you have to know you need to program every board per separate. First the bridge and then one node and the other. When yoy have downloaded the files from Fab Acamey for this exercise you have to run the make file. Go to your terminal, located it the folder where you put the make file and then program. If you open the c file you will see that there is one line of the code that you have to undestand that this is like the direction in the network, in this case the bridge Will be cero. So connect the bridge board in one side the FTDI and in the other AVR programmer.

Before you run the make file you have to make sure that the ide is correct, the bridge is the first one so 0 number is ok, now MAKE FILE!

File File File

For programming the nodes, you need to understand how to conected the boards. As you can see the nodes boards doesn't have FTDI cable, so when you try to connect only the AVR or the USB programmer it will not work because you need to energy. In my case I connected it and Arduino and i put a jumper from the 5v(arduino) to V(node board) and to the Ground(arduino) to the GND(node board), so now you can program them.

File

Now repeat the same but before change in the C file the id of the nodes and save the file. In this case, i'm programming the second node, so first i change the id number, i saved the C file and the I run the make file.

File

After you programmed every board per separate, you have to connect them together. Finally to see if its working, go to Arduino ID and open any file you have, it doesn't matter the file and open directly the serial monitor, now if everything is connected correct you can write the 0, 1 o r 2 number and run.

File

Depending on the number that you write is the board that is going to blink the led.

File

Final Result

SOFTWARE USED

//Eagle

//Photoshop

Links for the Assignment

Embedded Networking and Communications

Embedded Networking and Communications Class

Embedded Networking and Communications Assignments and Assessment

DOWNLOAD

Bridge Files

Node Files

Code Files


Fab Academy 2017 Fab Lab Barcelona Trinidad A. Gomez Machuca
IAAC trinidad.gomez@iaac.net