Today we made a two simple circuits which involved getting a LED to work. The first one was simply putting the 5v through a resistor and LED to ground. This lit up the LED. In the second circuit we powered the circuit through a pin in an arduino which was controlled by a switch. We fed a wire from the switch to pin 5 in the arduino and depending on if it was high or low it turned on power through pin 10. I got mine to work after making the mistake of putting the switch the wrong way around. Duh!

Without button pressed
With button pressed



No comments:
Post a Comment