PhotoTransistor Board and Code
Files
Eagle Schematic
Eagle Board
Roland Modela PNG
Silhouette Sticker for soldering
Arduino Code
Designing the Board
Board was designed in EagleCad. There were multiple problems with my first schematics. First, I didn't realize that I didn't need a resonator on this board. I figured all boards needed them. That, coupled with other design problems, prompted me to design a new board.
The second attempt I redesigned my board from scratch and ran into more trivial schematic errors. My experience reminded me of making silly algebraic errors on Math exams. Three jumpers were too many and I went for another redesign.
Getting it Right
Third time is a charm, and I got the designs right enough for my purposes.
Code
Code is a retooled version of week 7's serial communication. Baud rate is set at 4800. All the code does is send the data from the phototranistor pin over the serial line every 10 seconds. This phototransitor needs a helluva powerful light to read under 1000 though.