Networking and Communications

Assignment

design and build a wired &/or wireless network connecting at least two processors.

progress

I wanted to connect my input and output board for the networking week. The idea was that the value of light intensity detected using the input board would be displayed on the LCD display of the output board.It was an interesting beacause i could use this in my final project.

First i modified my input board to include transmit ans recieve pin and i also modified it to use ATtiny44 instead of ATtiny45 since i needed more pins.
After redesigning the board with the necessary modiifcations, milling and soldering, I decided to check if the was working. So i tried to proramm the board using neils code. Code needed to be almost entirely modified due to the changes in my board(ATtiny44 instead of ATtiny45).The programming was unsuccesfull.





so i debugged the board and found a problem.During designing in eagle, i had forgotten to connect the power of FTDI to vcc, thus RxTx and FTDI was not getting power.





Since i didnt have time to redesign and make another board, i fixed it by soldering in a piece of wire.





Again i tried Neils code modified but still with the same result.I'm thinking there is some problem with the code and i couldnt figure out what. So I wrote a new program in arduino language and tried to program with arduino IDE.Here also during compiling, the same error occured. Obviously the problem was in the boards end.

I triple checked the boards connections using a multimeter and a digital microscope and stil couldn't find anything wrong with the board. It would appear problem was not with the board and code.It had to be in the connections.
I referred the attin44 datasheet and checked the design and VOILA!!! The problem was that i had connected the input of phototransistor sensor to the PB0pin of attiny44, which was a digital pin. I should have connected to analog pin.



I cut the trace using penknife and connected the sensor and PA7 using a wire piece.The board was beginning to look a bit messy...



Then i tried again.. and 10th times the charm(for me)!!! The programming was succesfull. It was a simple program to check if the board was working properly. if the value read from sensor went below 400, the LED light become HIGH.



Now that both board was working(the 2nd board was already produced in the output board), only the programming part remained.I wrote arduino code to read the sensor data and display it in the LCD display of the output board.




I have accidently deleted my files of nerworking when i tried to compress it and i dont have time for redesigning. So there will be no files to download for this week.!!

Program-download
Main Page