Button Blink
I followed the Arduino tutorial and set up my circuit like this, with the button resistor and LED connected to the ground rail and the button connected so that it can allow power flow between the 5V pin and digital pin 2.
I did not run into any big challenges during this experiment, though I did make a small mistake. I accidentally switched the positions of the 100 ohm and 10k ohm resistors. As a result, the Arduino viewed the switch as always closed / LOW and the LED did not light up. After double checking the band colors with online resources, I was able to identify which resistor was which. The set-up worked after switching them back around.
No comments:
Post a Comment