Programming Arduino (1) Pages 32
Programming Arduino (1) Pages 32
Getting Started
Having introduced the Arduino, and learned a little about what it is that we
are programming, it is time to learn how to install the software that we will need
on our computer and to start working on some code.
Powering Up
When you buy an Arduino board, it is usually preinstalled with a sample Blink
program that will make the little built-in light-emitting diode (LED) flash.
The LED marked L is wired up to one of the digital input output sockets on
the board. It is connected to digital pin 13. This does not mean that pin 13 can
only be used to light the LED; you can also use it as a normal digital input or
output.
All you need to do to get your Arduino up and running is supply it with some
power. The easiest way to do this is to plug it into the USB port on your
computer. You will need a type-A-to-type-B USB lead. This is the same type of
lead that is normally used to connect a computer to a printer.
If everything is working OK, the LED should blink. New Arduino boards
come with this Blink sketch already installed so that you can verify that the
board works.