Professional Documents
Culture Documents
riuno? UNO
What language can be used
to program adruino device?
•C++
•Arduino code is written in C++ with an a
ddition of special methods and function
s, which we'll mention later on. C++ is a
human-readable programming languag
e.
Site some major
components of a
druino and give
explanation to
each component
USB Connec
tor
• This is a printer USB port us
ed to load a program from t
he Arduino IDE onto the Ar
duino board. The board can
also be powered through th
is port.
Power port:
•The Arduino board can be powere
d through an AC-to-DC adapter or
a battery. The power source can b
e connected by plugging in a 2.1m
m center-positive plug into the po
wer jack of the board. The Arduin
o UNO board operates at a voltag
e of 5 volts, but it can withstand a
maximum voltage of 20 volts. If th
e board is supplied with a higher v
oltage, there is a voltage regulator
(it sits between the power port an
d USB connector) that protects th
e board from burning out.
Microcontroll
er
• It is the most prominent b
lack rectangular chip with
28 pins. Think of it as the
brains of your Arduino. Th
e microcontroller used on
the UNO board is Atmega
328P by Atmel ( a major
microcontroller manufact
urer). Atmega328P has th
e following components i
n it:
• Flash memory of 32KB. The program lo
aded from Arduino IDE is stored here.
• RAM of 2KB. This is a runtime memory.
• CPU: It controls everything that goes o
n within the device. It fetches the progr
am instructions from flash memory an
d runs them with the help of RAM.
• Electrically Erasable Programmable Rea
d Only Memory (EEPROM) of 1KB. This
is a type of nonvolatile memory, and it
keeps the data even after device restar
t and reset.
• Atmega328P is pre-programmed with b
ootloader. This allows you to directly u
pload a new Arduino program into the
device, without using any external hard
ware programmer, making the Arduino
UNO board easy to use.
Analog input pins
:
• The Arduino UNO board has 6 anal
og input pins, labeled “Analog 0 to
5.” These pins can read the signal fr
om an analog sensor like a temper
ature sensor and convert it into a d
igital value so that the system unde
rstands. These pins just measure v
oltage and not the current because
they have very high internal resista
nce. Hence, only a small amount of
current flows through these pins.
• Although these pins are labeled an
alog and are analog input by defaul
t, these pins can also be used for di
gital input or output.
Digital pins: