Week 10: Inputs

                                                                                    

                                                                                    

I uploaded to youtube, with some effects, they made my finger fuzzy for some reason... I don't know why that happened, I tried to fix it, but couldn't succeed.

                                                                                    

            This week I made a LED blinking lights that light up when it is dark. I think this will contribute to my final project. It is often dangerous for me to go outside when it's dark because it is very hard to see what's infornt of me on the road. I want to have some kind of light that blinks when it gets dark.

                                                                                    

                                                                                    

            I eagle to design the board. I used two LED lights and phototransistor and aTtiny 45. I set it to 1000 dpi and be sure to clikc monochrome.

                                                                                    

                                                                                    

             The problem with windows eagle is that you need to invert everything in fabmodule. Also I had a problem with the end mill. The end was not sharp enough or broken. So I used a new end to mill.

                                                                                    

                                                                                    

            TADA~ I have a nice board, but the bottom part was still not milled perfectly. I think it's because of the taping issue I had. I had not taped the bottom equally and that's why the bottom part was not milled correctly.

                                                                                    

                                                                                    

Soldering was not the hardest part, but knowing whether all the parts were linking was the hard part. I asked Rob to help me know whether all the parts were connected. The mistake I made was that not all parts were connected. My schematic was wrong. I correctly wired the parts, but one part was not conected. The unconnected parts were shown in red.

                                                                                    

                                                                                    

I was a bit lazy to mill the whole board again and also the board design should change drastically if those two things had to be connected. Thus, I cheated a little bit :)

                                                                                    

                                                                                    

I used the connecting wire to connect those two places.

As can be seen from the video, the hardest part was to program. I used hello.light.c file that is uploaded in the fab website and modified in a way that it corresponds to light intensity. So, if there is not enough light, the led will light up. I had no had luck with lighting up the second LED. I wanted to have both LEDs ligh up simultaneously. I declared the parts up where the initializing parts, but I guess I had the port number wrong.