Circuit 2
Arduino Code:
1
Troubleshooting:
LED Not Lighting Up?
LEDs will only work in one direction. Try taking it out and
twisting it 180 degrees (no need to worry, installing it
backward does no permanent harm).
Program Not Uploading
This happens sometimes, the most likely cause is a confused
serial port, you can change this in tools>serial port>
Still No Success?
A broken circuit is no fun, send us an e-mail and we will get
back to you as soon as we can:
You should see your LED blink on and off. If
it isn't, make sure you have assembled the
circuit correctly and verified and uploaded the
code to your board or see the troubleshooting
tips below.
Before you can use one of the RedBoard's pins, you need to tell the
RedBoard whether it is an INPUT or OUTPUT. We use a built-in
"function" called pinMode() to do this.
When you're using a pin as an OUTPUT, you can command it to be
HIGH (output 5 volts), or LOW (output 0 volts).
digitalWrite(13, HIGH);
pinMode(13, OUTPUT);
Code to Note:
Real World Application:
Almost all modern flat screen televisions and monitors
have LED indicator lights to show they are on or off.
Open Arduino IDE
//
File > Examples > SIK Guide >
Circuit # 1
What you Should See:
This is where you will find the
Arduino code for each circuit.
Remember to Verify and
Upload your code.
See if your circuit is complete
and working in this section.
Begin to understand how the
Arduino code works. See below.
IOREF
RES
ET
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
DIGIT
AL (PWM~)
ON
ISP
TX
RX
IOREF
RES
ET
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
DIGIT
AL (PWM~)
ON
ISP
TX
RX
LEARN. SHARE. HACK.
This is a section dedicated to the most
common mistakes made while assembling
the circuit.
Here you will find examples of the circuit
you just completed in the real world.
Many of the theories in these circuits are
used in things you use everyday!
Page 24
Summary of Contents for RedBoard
Page 13: ...Page 11...