In lesson 5: http://www.ladyada.net/learn/arduino/lesson5.html
About halfway down the page with the "Iffy statements" header, I don't think that the image matches the schematic: http://www.ladyada.net/images/arduino/digiledswitch.jpg
The LED and the resistor should be switched around. This is because from pin 12 the current is supposed to flow through the resistor into the LED so it doesn't burn out. The current isn't supposed to flow into the LED then into the resistor and then into ground.
I tested this and it works my way.
Lesson 5 "Iffy Statements" Correction
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 10
- Joined: Fri Mar 18, 2011 5:13 pm
Re: Lesson 5 "Iffy Statements" Correction
Same thing a little bit more down when you connect 2 LEDs.
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: Lesson 5 "Iffy Statements" Correction
(it doesnt matter)
- westfw
- Posts: 2005
- Joined: Fri Apr 27, 2007 1:01 pm
Re: Lesson 5 "Iffy Statements" Correction
"(it doesnt matter)" because the current in a series circuit is the same through all the components (and wires too.) This is one of the fundamental theorems of electric circuit analysis.
Please be positive and constructive with your questions and comments.