Sie sind auf Seite 1von 28

STEP-BY-STEP GUIDE TO

ARDUINO ROBOT BUILDING

Presented by Andrew Reyes & Rene G.


1. MATERIALS
ARDUINO
BREADBOARD
(1)
(1)

RESISTORS
(3)
WIRES
(5)

LEDs
(3)
2. STEPS
STEP
1

Use a Sharpie to
label your
breadboard:

+ = positive
- = negative

(Label should be
on the outside
rows)

VIEW 1
Take RESISTOR 1.
Put one resistor leg in NEGATIVE ROW.
Put other resistor leg in POSITIVE box.
STEP
(Order doesn’t matter: resistor legs aren’t positive or negative
like LEDs) 2
NEGATIVE ROW

VIEW 1 VIEW 2
STEP
3

LONG LEG
Take out all of your
LEDs.

LEDs have two

SHORT LEG
different kinds of
legs: positive and
negative.

The order IS
IMPORTANT.

Use Sharpie to
color all short legs
for all LEDs black.
Black will =
VIEW 1 negative.
Take one LED. (The color doesn’t matter).

Put the negative (black) leg of LED in the positive pinhole of


your first resistor.
STEP
Put your positive leg (long) into a pinhole that is 4 spaces
4
away from the negative.
NEGATIVE ROW

1
2
3
4
VIEW 1 VIEW 2
Put Resistor #2 into negative row. (To be organized,
used a new set of pinholes like in the picture).
STEP
Then put second leg into positive box, just like in
step 2.
5
NEGATIVE ROW

Second set of pinholes in NEGATIVE ROW

VIEW 1 VIEW 2
STEP
6

JUST LIKE STEP 4:

Take one LED. (The color doesn’t matter).


1 2 3 4
Put the negative (black) leg of LED in the positive
pinhole of your first resistor.

Put your positive leg (long) into a pinhole that is 4


spaces away from the negative.

VIEW 1
STEP
7

JUST LIKE STEP 5:

Put Resistor #3 into negative


row. (To be organized, used a
new set of pinholes like in the
picture).

Then put second leg into


positive box, just like in step 2.

VIEW 1
STEP
8

JUST LIKE STEP 6:

Take one LED. (The color


doesn’t matter).

Put the negative (black) leg of


LED in the positive pinhole of
your first resistor.

Put your positive leg (long)


into a pinhole that is 4 spaces
away from the negative.
VIEW 1
STEP
9

Put one end of WIRE #1 in


pinhole in row next to LED #1.
(Red Circle)

Put other end of WIRE #1 in


pinhole #11 on the ARDUINO
board. (Yellow Circle)

VIEW 1
STEP
10

JUST LIKE STEP 9:

Put one end of WIRE #2 in


pinhole in row next to LED #2.
(Red Circle)

Put other end of WIRE #2 in


pinhole #12 on the ARDUINO
board. (Yellow Circle)

VIEW 1
Put one end of WIRE #3 in
pinhole in row next to LED #3.

JUST LIKE STEP 10:


(Red Circle)
STEP
Put other end of WIRE #3 in
pinhole #13 on the ARDUINO
11
board. (Yellow Circle)

VIEW 1 VIEW 2
3. PRETEST
TEST
STEP
1

Insert one end of WIRE #4 into


the first pinhole of the
POSITIVE ROW.

Insert one end of WIRE #5 into


the first pinhole of the
NEGATIVE ROW.

VIEW 1
VIEW 1 TO TEST:

Connect other end of WIRE #4


TEST
(positive) to the POSITIVE side
of the 9V battery.
STEP
Connect other end of WIRE #5
2
(positive) to the NEGATIVE
side of the 9V battery.

IF:
3 LEDs TURN ON,
THEN:
SUCCESS! FINISH STEP 12.

IF:
3 LEDs DON’T TURN ON,
THEN:
TROUBLESHOOT
STEP
12

FIND POWER LABEL ON


ARDUINO.

Insert other end of WIRE #4


(positive) into the 5V (“volt,”
positive) pinhole.

Insert other end of WIRE #5


(negative) into the GND
(“ground,” negative) pinhole.
VIEW 1
PIN 13-> PIN 12->
POSITIVE LEG (LONG POSITIVE LEG (LONG LEG) OF LED 2
LEG) OF LED 1

5V->POSITIVE ROW

PIN 11->
POSITIVE LEG (LONG LEG) OF LED 3 FINAL SETUP GND->NEGATIVE
ROW
4. PROVE YOUR
UNDERSTANDING
2 Now take everything apart.

1 You are here! You finished! 3 Build it again.


If possible, don’t use the instructions.

This challenge will help make sure you have understood the basics of
WIRING for your robot! So…do you really understand? PROVE IT!
5. INTRO TO
CODING
CODING IS A LANGUAGE.

YOU NEED TO LEARN


THIS CODING LANGUAGE
TO CONTROL YOUR
ROBOT.

THIS EXAMPLE WAS


DONE FOR YOU.
LET’S LOOK AT THE
ORGANIZATION:

1. SECTION 1:
2. SECTION 2:
3. SECTION 3:
LET’S LOOK AT THE
ORGANIZATION:

SECTION 2:
What does it say?
1. There are 3 things connected to the Arduino:
1 in pinhole 13, 2 in pinhole 12, 3 in pinhole
11.
2. Each connected item should let electricity go
out from that pinhole.
• OUTPUT = “let electricity go out”
LET’S LOOK AT THE
ORGANIZATION:

SECTION 2:
HOW do you say it?
1. First, notice that we have a SECTION TITLE:
“void setup ()”.
2. Second, notice how we create a space to add
information for that section title:
• { = Beginning of space
• } = End of space
3. Third, notice that we have that same pattern
in SECTION 3: “void loop()”
• { = Beginning of space
• } = End of space
LET’S LOOK AT THE
ORGANIZATION:

SECTION 2:
HOW do you say it?
3. Third, notice that we have that same pattern
in SECTION 3: “void loop()”
• { = Beginning of space
• } = End of space

Das könnte Ihnen auch gefallen