Hello everyone, my name is Yabed and I'm learning how to MAKE (almost) anything

Fab Academy 2014

>> Week 13, Apr 23: Networking and communications

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

 

Now I have to learn about networks and communications. For this assignment, I prepared a "serial asynchronous" network. For this purpose I built the bridge and two network nodes, then I made the programming and, finally, by means of serial monitor, we checked the communication between nodes. I think this is a good beginning to understand the functioning of networks and I hope I can learn more about this matter, especially about wireless networks.

Below, I report the process of this assignment:

Make the PCBs for the Bridge and Nodes.

Making of the network cable and verifying their correct functioning

Now, everything is ready to start programming each PCB

Programming Bridge:

1. Download the files:
- hello.bus.45.c
- hello.bus.45.make


2. modified hello.bus.45.c in line 41
#define node_id '0'

3. Connect FTDI cable and the FabISP

4. Then, from the folder where the files are saved and in the terminal, run the following command:

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

Programming Nodes:

For Nodo 1:

1. modified file hello.bus.45.c in line 41

#define node_id '1'

2. Connect: FTDI cable in Bridge, the network cable between the bridge and the node, the FabISP in the node port.

3. Then, from the folder where the files are saved and in the Terminal run the following command:

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

Repeat the process for node 2, being careful when modifying the file with extension "c"

For Node 2:

modified file hello.bus.45.c in line 41

#define node_id '2'


The check the functioning:

Connect the network nodes, the FTDI cable; then, open the serial monitor and configure it to 9600 bauds. Finally, in the serial monitor screen, when entering the node ID Number, the corresponding node will turn the led on twice.

See video

 

 

 

scroll up