For this assigment i design and build a wired network connecting processors. I designed just in one new board because i was willing to the other boards that i alredy had designed. I made a mistake while design the bord and i forgot 2 connection. I just realize after soldering it. i had to connect the FTDI pins to the microcontroller pins that was really delicate but i was able to do it and make it work. After i started to try to program the boards , i had a really hard time tryng to make my code work. I tried to code with arduino but most of the example that i found were coding with other languages. Because i was using Attinny microcontroller i had to install the TineWire libary to arduino. For a reason that i still dont know i could use one board , it was the only borad which didn't accept my code. So i decided to make communication just with two board. But i was still not able to make it work. In the end i end up breaking the connection that i made, so i decide to start again.
So i started again, with my main board that i designed for my final project and with my board of the output week. To make the code i used JEAN-BAPTISTE code as a example for mine. For some reason his code that i dont know his code was pretty similar to mine but the way he code worked better with mine boards. So for the Main board i used the Wire libary becase the microcontroller is a Atmega328p and for the slave i used the TineWire libary becase the microcontroller was attinny45. I also used the button example and the blink example in my code to make to send the code when i press the button, then my led on the master would blink twice, the led on the slave twice and than the led on the master again to make sure the whole Networking was working. Before connecting the two board i test if the master was working. When i pressed the button the led blinked, it was working so i could start with the communication. I send the first time the code , it didn't work. I fix it and did try to send again but i had issues with the connection between the programer and the board. I end up having to change the board because it didn't work anymore. I used the board of the Circuit Board Design . After i send the code i kind of work but the Led of the slave bord blinked really weak. After looking through BAPTISTE documentation i noticed he used some resitors between the connections of the 2 boards. To connect the boar i had to connect the A5 ( ATMEGA328P) (SDL) pin to the 9 (attyny44) and the A4 (SDA) to the pin 7. This is the Final master code: This is the Final slave code: Here is the file.