Skip to content

Commit c8fae22

Browse files
committed
Add current limiting resistors for LEDs to circuit description comments
I followed the existing precedent set in the "WhileStatementConditional" example for the text. 220 ohm is the value used in the tutorials for the examples, as well as being what is provided in the Starter Kit.
1 parent 8e69527 commit c8fae22

File tree

11 files changed

+14
-14
lines changed

11 files changed

+14
-14
lines changed

Diff for: examples/02.Digital/Button/Button.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
when pressing a pushbutton attached to pin 2.
66
77
The circuit:
8-
- LED attached from pin 13 to ground
8+
- LED attached from pin 13 to ground through 220 ohm resistor
99
- pushbutton attached to pin 2 from +5V
1010
- 10K resistor attached to pin 2 from ground
1111

Diff for: examples/02.Digital/Debounce/Debounce.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
minimum delay between toggles to debounce the circuit (i.e. to ignore noise).
77
88
The circuit:
9-
- LED attached from pin 13 to ground
9+
- LED attached from pin 13 to ground through 220 ohm resistor
1010
- pushbutton attached from pin 2 to +5V
1111
- 10 kilohm resistor attached from pin 2 to ground
1212

Diff for: examples/02.Digital/StateChangeDetection/StateChangeDetection.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
The circuit:
1313
- pushbutton attached to pin 2 from +5V
1414
- 10 kilohm resistor attached to pin 2 from ground
15-
- LED attached from pin 13 to ground (or use the built-in LED on most
16-
Arduino boards)
15+
- LED attached from pin 13 to ground through 220 ohm resistor (or use the
16+
built-in LED on most Arduino boards)
1717
1818
created 27 Sep 2005
1919
modified 30 Aug 2011

Diff for: examples/03.Analog/AnalogInOutSerial/AnalogInOutSerial.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- potentiometer connected to analog pin 0.
1010
Center pin of the potentiometer goes to the analog pin.
1111
side pins of the potentiometer go to +5V and ground
12-
- LED connected from digital pin 9 to ground
12+
- LED connected from digital pin 9 to ground through 220 ohm resistor
1313
1414
created 29 Dec. 2008
1515
modified 9 Apr 2012

Diff for: examples/03.Analog/AnalogInput/AnalogInput.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
one side pin (either one) to ground
1313
the other side pin to +5V
1414
- LED
15-
anode (long leg) attached to digital output 13
15+
anode (long leg) attached to digital output 13 through 220 ohm resistor
1616
cathode (short leg) attached to ground
1717
1818
- Note: because most Arduinos have a built-in LED attached to pin 13 on the

Diff for: examples/03.Analog/Calibration/Calibration.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
The circuit:
1414
- analog sensor (potentiometer will do) attached to analog input 0
15-
- LED attached from digital pin 9 to ground
15+
- LED attached from digital pin 9 to ground through 220 ohm resistor
1616
1717
created 29 Oct 2008
1818
by David A Mellis

Diff for: examples/03.Analog/Fading/Fading.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
This example shows how to fade an LED using the analogWrite() function.
55
66
The circuit:
7-
- LED attached from digital pin 9 to ground.
7+
- LED attached from digital pin 9 to ground through 220 ohm resistor.
88
99
created 1 Nov 2008
1010
by David A. Mellis

Diff for: examples/04.Communication/Dimmer/Dimmer.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
set the brightness of the LED.
88
99
The circuit:
10-
- LED attached from digital pin 9 to ground.
10+
- LED attached from digital pin 9 to ground through 220 ohm resistor.
1111
- Serial connection to Processing, Max/MSP, or another serial application
1212
1313
created 2006

Diff for: examples/04.Communication/PhysicalPixel/PhysicalPixel.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Processing (see code below), Flash (via a serial-net proxy), PD, or Max/MSP.
1010
1111
The circuit:
12-
- LED connected from digital pin 13 to ground
12+
- LED connected from digital pin 13 to ground through 220 ohm resistor
1313
1414
created 2006
1515
by David A. Mellis

Diff for: examples/04.Communication/ReadASCIIString/ReadASCIIString.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
It parses them into ints, and uses those to fade an RGB LED.
77
88
Circuit: Common-Cathode RGB LED wired like so:
9-
- red anode: digital pin 3
10-
- green anode: digital pin 5
11-
- blue anode: digital pin 6
9+
- red anode: digital pin 3 through 220 ohm resistor
10+
- green anode: digital pin 5 through 220 ohm resistor
11+
- blue anode: digital pin 6 through 220 ohm resistor
1212
- cathode: GND
1313
1414
created 13 Apr 2012

Diff for: examples/05.Control/IfStatementConditional/IfStatementConditional.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
- potentiometer
1111
Center pin of the potentiometer goes to analog pin 0.
1212
Side pins of the potentiometer go to +5V and ground.
13-
- LED connected from digital pin 13 to ground
13+
- LED connected from digital pin 13 to ground through 220 ohm resistor
1414
1515
- Note: On most Arduino boards, there is already an LED on the board connected
1616
to pin 13, so you don't need any extra components for this example.

0 commit comments

Comments
 (0)