Week 14

Networking and Comminications

Assignment

Individual assignment:
Design and build a wired &/or wireless network connecting at least two processors
Group assignment:
Send a message between two projects

Files

Bridge:
Bridge_board
Bridge_Schematic
Bridge_png
Outline_Bridge_png
Bridge_svg
Bridge_code
Node:
Node_Board
Node_Schematic
Node_png
Outline_Node_png
Node_code

Bridge



Node



The master will send a signal to the slave and it will then do it. One board controlling another.

Code



I burned the bootloader on all boards. I used the fabISP.

Testing with the blink in arduino.

Node

First I have to find out which pin the LED is on, and what to call it in Arduino. So I look at this pinout:

I connected the GND and VCC to the FTDI cable.
I then uploaded the blink code.



The code was succesfully uploaded, but nothing happened to the board. And it is supposted to blink now.
I tried this with both of the nodes.

I then set it up with the FTDI cable connected to the bridge, the bridge connected to the node, and the node connected to the programmer.



I remembered that it wouldn't be the first time if I had turned the LED the wrong way.
I desoldered the LEDs and turned them around. I pluged in the FTDI cable connected to the boards, and it worked.
Now I knew that my Nodes were working.



Code v2

I am using THIS code for the I2C master and slave

Bridge

I had to download the TinyWireM.h library for arduino.
I included it in the code.
I uploaded the code to the master:


The code is uploaded on the board.

Node

For the node I had to find the TinyWireS online. I found it HERE. And downloaded it.
Now I had to include it to the Arduino library so I can use it.
After this I uploaded the code to the slave:


The code is uploaded on the board.



Both of the codes succesfully uploaded to the boards.
Now I had to see if it worked.
I pluged everything in the computer, but nothing happens. I try to open the Serial Monitor, but nothing happens.
I then had help operating the oscilloscope, but this still didn't show any output.
The Nodes should be working, because I just testet it, so the problem mush lie within the Bridge or the code.

I cant seem to find the problem in the code.