Lesson 5 "Iffy Statements" Correction

For makers who have purchased an Adafruit Starter Pack, get help with the tutorials here!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
haveavoice
 
Posts: 10
Joined: Fri Mar 18, 2011 5:13 pm

Lesson 5 "Iffy Statements" Correction

Post by haveavoice »

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.

haveavoice
 
Posts: 10
Joined: Fri Mar 18, 2011 5:13 pm

Re: Lesson 5 "Iffy Statements" Correction

Post by haveavoice »

Same thing a little bit more down when you connect 2 LEDs.

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Lesson 5 "Iffy Statements" Correction

Post by adafruit »

(it doesnt matter) ;)

User avatar
westfw
 
Posts: 2005
Joined: Fri Apr 27, 2007 1:01 pm

Re: Lesson 5 "Iffy Statements" Correction

Post by westfw »

"(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.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Starter Pack”