Chapter 2: Getting Started with Arduino
22
Next, we have to tell the Arduino software that there
is a board plugged in. In the software, click Tools >
Board and select Arduino UNO. Then, click Tools > Port
and select the port that has Arduino listed. It’s usually
the last one on the list. After both board and port are
properly selected, we can upload our code by clicking
the circle button with the arrow pointing right. That’s the
upload button. If everything has lined up correctly, your
sketch will say “done uploading.” Look at your board!
Is the light blinking on and off steadily? You did it!
Now, play with what you have created! Change the code!
Try shortening or extending the delay time numbers,
and upload again, so you can start to get a feel for the
control you have. The more you play, the more you’ll
get comfortable and familiar with the technology. The
goal is for the technology to be second nature, so the
later work of adapting robotic movements and actions
to comedic timing is easy. As you start to develop
your own routines, you’ll need to be comfortable with
going back and forth between uploading to the board,
testing, and then going back and tweaking your code.
MORE ABOUT THE BOARD
Let’s look at the board again. I’m not going to break down
every single element of the Arduino board here, but there
are a few things I do want to point out.
The Arduino UNO has 13 digital output pins. These pins
are used to activate various components like your relays,
LEDs, and servos. That’s 13 opportunities all on one board.
As you progress with this technology, you may find yourself
using almost all of these pins at once on a single project!
Make_RobotMagic_Interior_FIN.indd 22Make_RobotMagic_Interior_FIN.indd 22 9/14/21 3:33 PM9/14/21 3:33 PM