Arduino Development Board
Arduino Development Board
Embedded System
Week 2
OPENING PRAYER
2
At the end of this discussion, students will be able to:
3
ARDUINO
The Arduino is an open-source
DEVELOPMENT platform for rapidly and easily getting
BOARD started in embedded systems. It is
composed of an Arduino board and the
Arduino development environment. You
write programs in the development
environment on your computer, then
transfer this program using the
development environment over to the
Arduino board, where components and
shields can be connected to allow for
more functionality.
4
OPEN-SOURCE The idea behind open-source
hardware is to allow other people the
chance to look at the inner workings –
the source code – of the software and
modify it or adapt it if they have the
ability and time to do so.
Arduino boards can be used
with both IBM-compatible and Apple
computers. Simply download the Arduino
IDE from the Arduino website, then
choose the installers that are specific to
your operating system.
5
There are many shapes and
sizes of Arduino and Arduino-
compatible boards out in the
market. However, there are four
key-shapes and sizes – so called
form-factors.
TYPES OF
6
ARDUINO BOARDS
ARDUINO UNO
The Arduino Uno is the entry-
level board you can play with. Its size
allows easy connections by hand or by
slotting in shields on top of the board.
Currently, the Arduino Uno offers a
surprisingly reasonable space of 32Kb
for storing programs, and allows up to 20
hardware connection points.
7
ARDUINO MEGA
If you find the program space
lacking, or need more hardware
connections, the Arduino Mega offers
three times the connectivity. Most
shields that work with the Arduino Uno’s
form factor would easily work on top of
the Arduino Mega.
8
ARDUINO MICRO If you want to slip the Arduino
into something smaller, the Arduino
Micro comes in in under two inches long
and three-quarters of an inch wide. It
comes packed with more connectivity
options than Arduino Uno, allowing you
to make your own USB devices.
However, its size and shape mean that
the commonly available shields for the
Arduino are not compatible with the
Arduino Micro.
9
ARDUINO GEMMA
10
SHIELDS
The Arduino Uno and Mega are
laid out such that you can slip on
additional features to these boards.
Arduino shields are designed to be
stacked on top of the Arduino (and
sometimes, other shields) to provide
such features as WiFi, Bluetooth, or the
ability to control motors and the like. This
will be discussed further in the a later
chapter.
11
BREAKOUT
BOARDS
If the Arduino is a development
board for the Atmel microcontroller, a
breakout board is a development board
for various peripherals that are not on a
shield. Many sensors and output devices
that are almost impossible to wire by
hand come in a form that is easier to
work with.
12
“Hello
World!”
Since the Arduino (and most
embedded systems for that matter) do
not have a screen connected to them,
you need a low-tech way to show that
your program works: make a small
light ON and OFF.
13
Make sure you type exactly as you see the code written above. The
language is case-sensitive, meaning pinMode and PinMode are two different
things.
14
TROUBLESHOOTING
The board was not found. The
message is Problem uploading to
board. If this is the case, check the
board type and serial port again. Try
removing and plugging the board again.
If possible, swap cables or try a different
board. If it does not resolve the issue,
you may gave to check if the correct
device drivers were installed.
15
TROUBLESHOOTING
16
1. Make sure you have exactly one void
loop ( ) function and exactly one void
TROUBLESHOOTING setup ( ) function.
Here, the terms input and output are from the perspective of the Arduino.
An output is any signal being sent out from the Arduino, while an input is any
signal into the Arduino.
20
After completing all the tasks listed inside the setup ( ) function, the
Arduino then executes the statements in the loop ( ) function. This function will
keep on running for as long as the Arduino is powered and does not malfunction.
Let’s look at the loop function for Hello World!
▪ is a semiconductor
device that emits visible
light when an electric
current passes through
it.
23
SCHEMATIC SYMBOL
24
RESISTORS
▪ are electronic
components which have
a specific, never-
changing electrical
resistance.
25
BREADBOARD
▪ is a solderless device
for temporary prototype
with electronics and test
circuit designs.
26
RESISTORS
▪ HAS NO POLARITY
27
SCHEMATIC SYMBOL
28
JUMPER WIRES
Any questions?
31