Wednesday, September 20, 2006
lab: week 2, 1st Arduino program
This is a simple lab in digital input/output with a microcontroller. The LEDs are wired in series with a momentary button, to the Arduino, which is also delivering 5V to the bread board. I used a simple program for switching between the red and green LED, and uploaded it to my Arduino board with the Arduino IDE.
At first, I had a 220 resistor in place instead of a 10k resistor.. AND had the power and ground going directly to the button. I could get my red LED to turn on (the default LED that should be on, when the board is first powered), but I could not get my green LED to light up when i pushed the button. Instead, each time I pushed and released my button, the entire Arduino board would restart (which makes sense of course, given how i had initially wired it.
A kindly pcomp soul helped me notice my oversight, however, and all works well now.