EasyManua.ls Logo

Sparkfun Electronics RedBoard - Circuit 4: Multiple LEDs; Multiple LEDs Overview; Circuit 4 Assembly Guide

Sparkfun Electronics RedBoard
88 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
So you have gotten one LED to blink on and o –
fantastic! Now it's time to up the stakes a little bit – by
connecting EIGHT LEDS AT ONCE. We'll also give
our RedBoard a little test by creating various lighting
sequences. is circuit is a great setup to start practicing
writing your own programs and getting a feel for the
way RedBoard works.
Along with controlling the LEDs, you’ll learn about a
couple programming tricks that keep your code neat
and tidy:
for() loops - used when you want to run a piece of
code several times
arrays[ ] - used to make managing variables easier by
grouping them together
Multiple LEDs
PARTS:
LED
8
X
Wire
10
X
330Ω
Resistor
8
X
CIRCUIT #4
4
IOREF
RESET
RESET
7-15V
SCL
SDA
AREF
GND
13
12
~11
~10
~9
8
7
~6
~5
4
~3
2
1
0
TX
RX
13
3.3V
5V
GND
GND
VIN
A0
A1
A2
A3
A4
A5
POWER
ANALOG IN
DIGITAL (PWM~)
ON
ISP
TX
RX
LEARN. SHARE. HACK.
Resistors (330 ohm)
(Orange-Orange-Brown)
LEDs
(Light-Emitting Diodes)
RedBoard
PIN 2
PIN 3
PIN 4
PIN 5
GND (Ground)
Resistors (330 ohm)
(Orange-Orange-Brown)
LEDs
(Light-Emitting Diodes)
RedBoard
PIN 6
PIN 7
PIN 8
PIN 9
GND (Ground)
Page 33