
Networking and Communication
Connecting 2 Attinys
In this assingment i decided to conect my 2 previous boards, the Hello Wold and the Ultrasonic sensor board to create a network
My goal was to give the input using a ultrasonic sensor in board 1 and this will send a signal to light up the board 2 LED
To keep it simple i used the 2x3 pinheader as the connection betwen the 2 boards
I tried to use the SPI protocol in order to make the communication but i was unable to solve some prblems i was having
In order to the Hello board to blink according to the ultrasonic sensor in board 1 i made the pin 5 as a input in hello board and as a output on the ultrasonic board
I needed to make the Tx and the Rx inverted on both boards so the Tx in board 1 is the Rx in the hello board


Ultrasonic board:
Link to original assingment page Eagle .sch File Avaliable Here Ultrasonic Eagle .brd File Avaliable Here Ultrasonic Code Avaliable HereHello World Board:
Link to original assingmet page .sch File Avaliable Here .brd File Avaliable Here Code Avaliable HereI also tried to use another form of communication betwen boards, using adressing and hard coding each node to set it's ID
I tried to send a number to each board using serial, but I was having some problems because the number tranform in hexadecimal, so i had to change the code to adapt to this problem using the ASCII Table
In this communications assingment i used two "Hello World" boards and a PC to send the data to the boards