Lesson 0 Getting Started
Lesson 0 Getting Started
Lesson 0 Getting Started
Getting Started
Created by Simon Monk
Guide Contents 2
Overview 3
Parts 4
Part 4
Qty 4
Breadboard 6
Installing Arduino (Windows) 8
Installing Arduino (Mac and Linux) 12
Boards and Ports 15
The Lessons 19
Part
Qty
Arduino Uno R3
1
USB Lead
1
Half-size Breadboard
1
100 µF capacitor
1
L293D IC
1
Piezo sounder
1
Small 6V DC Motor
1
5V Stepper Motor
1
Servo Motor
PN2222 Transistor
1
1N4001 diode
1
Breadboard is a way of constructing electronics without having to use a soldering iron. Components are pushed into
the sockets on the breadboard and then extra 'jumper' wires are used to make connections.
If you were to pull the self adhesive backing off the back of your breadboard, it would look something like this.
On either edge of the board are much longer sections of clip that join together the columns of holes marked by the
blue and red lines on the front of the breadboard. These are generally used for GND (blue) and 5V (red).
There is a red jumper wire going from the 5V socket on the Arduino to one of the long power connectors on the
breadboard. The resistor has one lead pushed into one of the holes on that 5V red column. The resistor's other lead
goes to one of the rows on the right hand side of the board in the center of the board.
The LED spans another connector on the same row as the resistor lead (connecting them together) and the blue (GND)
long connector on the right of the breadboard. This long blue GND strip is connected near its top to the GND
connection of the Arduino.
In a separate step, you must then install USB drivers, which is the only bit that is a bit fiddly.
Get started by visiting the Arduino.cc (https://adafru.it/aHs) website. As of April 2014 we suggest v1.05 as 1.5 is still in
beta. If 1.5 is no longer in beta when you read this you can try it out!
Start by downloading the the zip file for Windows. There is only one version of the software, whether you are using
Windows XP through to Windows 7.
When the zip file has downloaded, extract the contents onto the Desktop, by right-clicking on the file and selecting
'Extract All...' from the pop-up menu.
The Arduino folder contains both the Arduino program itself and also the drivers that allow the Arduino to be
connected to your computer by a USB cable. Before we launch the Arduino software, you are going to install the USB
drivers.
Plug one end of your USB cable into the Arduino and the other into a USB socket on your computer. The power light
on the LED will light up and you may get a 'Found New Hardware' message from Windows. Ignore this message and
cancel any attempts that Windows makes to try and install drivers automatically for you.
The most reliable method of installing the USB drivers is to use the Device Manager. This is accessed in different ways
depending on your version of Windows. In Windows 7, you first have to open the Control Panel, then select the option
to view Icons, and you should find the Device Manager in the list.
Under the section ‘Other Devices’ you should see an icon for ‘unknown device’ with a little yellow warning triangle
next to it. This is your Arduino.
Click 'Next' and you may get a security warning, if so, allow the software to be installed. Once the software has been
installed, you will get a confirmation message.
The process for installing the Arduino software on the Mac is a lot easier than on the PC. As before, the first step is to
download the file. In the case of the Mac, it is a zip file.
Once downloaded, double-click on the zip file, which will extract a single file called ‘Arduino.app’. This is the whole
You can now find and launch the Arduino software in your Applications folder. As you are going to use it frequently,
you may wish to right-click its icon in the dock and set it to Keep In Dock.
There are many different LINUX distributions and the instructions for each distribution are a little different. The Arduino
community has done a great job of putting together sets of instructions for each distribution. So follow the link below
and select one of the ten or more distributions on offer.
This will start the Arduino IDE, but before you can get programming, you have to tell the Arduino software which type
of Arduino board you are using and also select the port it is connecting to.
To tell the Arduino IDE which type of board you are using. From the 'Tools' menu, select Board and then 'Arduino Uno'
or 'Leonardo' as appropriate.
If you are using a Mac or Linux, there will be more options there, but it will usually be the top option in the list, as this
will be the device most recently plugged in. This is useful, as the name of the port may not look like it has anything to
do with Arduino. It will probably be called something like /dev/tty.usbmodemXXXX or /dev/ttyUSBn
In the next lesson, you will start by programming your Arduino board to make its built-in LED blink.
They follow in a logical order, with each lesson building on the lessons that have come before.
Simon Monk is author of a number of books relating to Open Source Hardware. The following books written by Simon
are available from Adafruit: Programming Arduino (http://adafru.it/1019), 30 Arduino Projects for the Evil
Genius (http://adafru.it/868) and Programming the Raspberry Pi (https://adafru.it/aM5).