Week 11: Output devices

I made an input and output board all in one for my final project. The board detects motion and illuminates an LED when the sensor detects movement. The final functioning board is
a frankenstein version of this board and schematic in Eagle- I ended up removing the mosfets as they had no real function on the board. Thanks to Yasi, Hunmin and Calvin for their hacking abilities!

The milled and stuffed board programmed immediately with Arduino, but the programmed board refused to be programmed because all the pins were high and would not be programmed
low. I got no error messages in Arduino for this. We got it to work with a small LED and once I switched to using a 9 volt battery for the power source and replaced the 20 megahurtz resonator
with a 16 megahertz resonator, the board finally began to program. I struggled with the pyroelectric motion sensor (HC-SR501) for ages before switching to the ultrasonic distance measuring module
for Arduino (HC-Sr04) which worked much better. I programmed the LED to glow red and then switch to green when detecting motion.