Sobirov. Asilzoda: Arduino
Sobirov. Asilzoda: Arduino
Asilzoda
ARDUINO
Arduino.
• Introduction
• Arduino is an open-source platform used for building electronics pr
ojects. Arduino consists of both a physical programmable circuit bo
ard (often referred to as a microcontroller) and a piece of software,
or IDE (Integrated Development Environment) that runs on your co
mputer, used to write and upload computer code to the physical boa
rd.
Arduino
• The Arduino platform has become quite popular with people just star
ting out with electronics, and for good reason. Unlike most previous
programmable circuit boards, the Arduino does not need a separate p
iece of hardware (called a programmer) in order to load new code on
to the board -- you can simply use a USB cable. Additionally, the Ar
duino IDE uses a simplified version of C++, making it easier to learn t
o program. Finally, Arduino provides a standard form factor that bre
aks out the functions of the micro-controller into a more accessible p
ackage.
ARDUINO
What does it do
• The Arduino hardware and software was designed for artists, designers, hobbyists, hackers, ne
wbies, and anyone interested in creating interactive objects or environments. Arduino can inter
act with buttons, LEDs, motors, speakers, GPS units, cameras, the internet, and even your sma
rt-phone or your TV! This flexibility combined with the fact that the Arduino software is free,
the hardware boards are pretty cheap, and both the software and hardware are easy to learn h
as led to a large community of users who have contributed code and released instructions for a
huge variety of Arduino-based projects.
• For everything from robots and a heating pad hand warming blanket to
honest fortune-telling machines, and even a Dungeons and Dragons dice-throwing gauntlet, t
he Arduino can be used as the brains behind almost any electronics project.
What's on the board?
• There are many varieties of Arduino boar
ds that can be used for different purposes.
Some boards look a bit different from the
one below, but most Arduinos have the m
ajority of these components in common:
Power (USB / Barrel Jack)
• GND (3): Short for ‘Ground’. There are several GND pins on the Arduino, a
ny of which can be used to ground your circuit.
• 5V (4) & 3.3V (5): As you might guess, the 5V pin supplies 5 volts of power,
and the 3.3V pin supplies 3.3 volts of power. Most of the simple components
used with the Arduino run happily off of 5 or 3.3 volts.
• Analog (6): The area of pins under the ‘Analog In’ label (A0 through A5 on t
he UNO) are Analog In pins. These pins can read the signal from an analog s
ensor (like a temperature sensor) and convert it into a digital value that we ca
n read.
Pins (5V, 3.3V, GND, Analog, Digital, PWM, AREF)
• Digital (7): Across from the analog pins are the digital pins (0 through 13 on the UNO). Th
ese pins can be used for both digital input (like telling if a button is pushed) and digital outp
ut (like powering an LED).
• PWM (8): You may have noticed the tilde (~) next to some of the digital pins (3, 5, 6, 9, 1
0, and 11 on the UNO). These pins act as normal digital pins, but can also be used for some
thing called Pulse-Width Modulation (PWM). We have a tutorial on PWM, but for now, th
ink of these pins as being able to simulate analog output (like fading an LED in and out).
• AREF (9): Stands for Analog Reference. Most of the time you can leave this pin alone. It is
sometimes used to set an external reference voltage (between 0 and 5 Volts) as the upper lim
it for the analog input pins.
Reset Button
• The black thing with all the metal legs is an IC, or Integrated Circuit
(13). Think of it as the brains of our Arduino. The main IC on the Ar
duino is slightly different from board type to board type, but is usuall
y from the ATmega line of IC’s from the ATMEL company. This can
be important, as you may need to know the IC type (along with your
board type) before loading up a new program from the Arduino soft
ware. This information can usually be found in writing on the top sid
e of the IC. If you want to know more about the difference between v
arious IC's, reading the datasheets is often a good idea.
Voltage Regulator
• The Uno is a great choice for your first Arduino. It's got everyt
hing you need to get started, and nothing you don't. It has 14
digital input/output pins (of which 6 can be used as PWM out
puts), 6 analog inputs, a USB connection, a power jack, a reset
button and more. It contains everything needed to support the
microcontroller; simply connect it to a computer with a USB c
able or power it with a AC-to-DC adapter or battery to get st
arted.
Arduino Uno (R3)
LilyPad Arduino