Professional Documents
Culture Documents
Introduction
Arduino is an open-source platform used for building electronics projects. It
consists of a microcontroller and a piece of software i.e. Integrated
Development Environment (IDE) that runs on your computer. This code is
used to write and upload computer code to the microcontroller.
The Arduino board is a microcontroller board, which is a small circuit that
contains a whole computer on a small chip. There are different versions of
the Arduino board: they are different in components, aim and size, etc. Some
common Arduino boards which are being use now a days are: Arduino
Diecimila, Arduino Uno, Arduino Mega and lot more.
It can affect its surroundings by controlling lights, motors, and other
actuators. Arduino can sense the environment by receiving input from a
variety of sensors. The microcontroller on the board is programmed using
the Arduino programming language and the Arduino development
environment. Arduino projects can be stand-alone or they can communicate
with software on running on a computer .
Why Arduino: It is very flexible to be customized and extended and it is an opensource project, software/hardware which is extremely accessible.
It offers a variety of digital and analog inputs, SPI and serial interface
and digital and PWM outputs
Aurdino IDE:One of the most important component of the Arduino platform is the Arduino
IDE. This contains all the software which will run a computer in order to
program and communicate with an Arduino board.
There is an editor in Arduino IDE which we can use to write Arduino programs
/sketches in a simple programming .
The program we wrote is converted to C language and then compiled using
avr-gcc. This process produce binary code wich the microcontroller on the
Arduino board will be able to understand and execute.
Arduino Types
Arduino Uno (R3)
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 Pins: The labels (A0 through A5 on the UNO) are Analog In pins.
These pins can read the signal from an analog sensor and convert it into a
digital value. These pins are labeled (6) in the above figure.
Digital Pins: On the board other than analog pins we have the digital pins (0
through 13). These pins can be used for both digital input and digital output.
These pins are labeled (7) in the above figure.
Pulse Width Modulation: Next to some of the digital pins, some pins are
with tilde (~) sign. These pins include 3, 5, 6, 9, 10, and 11 on the UNO.
These pins act as normal digital pins, but can also be used for something
called Pulse-Width Modulation (PWM).These pins as being able to simulate
analog output. These pins are labeled (8) in the above figure.
Reset Button: There is a reset button in Arduino. Labeled (10) in the above
figure. By pushing it, connect the both reset pin and ground pin and restart
the code which we had loaded on the Arduino. If we want to test our code
multiple times and if our code doesnt repeat itself this can be very useful.
Technical Specifications
Microcontroller
ATmega328
Operating Voltage
5V
7-12V
6-20V
Digital I/O
PWM output)
Analog Input Pins
40 mA
50 mA
Flash Memory
by boot loader
SRAM
2 KB
EEPROM
1 KB
Clock Speed
16 MHz
Features
Processor
Arduino Uno
Arduino Due
Arduino
Arduino
Mega
Leonardo
16Mhz
84MHz
16MHz
16MHz
ATmega328
Memory
Digital I/O
2KB SRAM,
96KB SRAM,
8KB SRAM,
2.5KB SRAM,
32KB flash
512KB flash
256KB flash
32KB flash
14
54
54
20
12 input, 2
16 input, 0
12 input, 0
output
output
output
the faster CPU, the Arduino Due runs on a lower voltage: 3.3V over the
Uno's 5V. This means it cannot always support the same devices.
Features
Some of the key features of the Arduino include:
An easy USB interface . The chip on the board plugs straight into your
USB port and registers on your computer as a virtual serial port. This
allows you to interface with it as through it were a serial device. The
benefit of this setup is that serial communication is an extremely easy
(and time-tested) protocol, and USB makes connecting it to modern
computers really convenient.
13 digital pins and 6 analog pins. These pins allow you to connect
external hardware to your Arduino. These pins are key for extending the
computing capability of the Arduino into the real world. Simply plug your
devices and sensors into the sockets that correspond to each of these
pins and you are good to go.
And last, but not least, a button to reset the program on the chip.
Wireless Shields
The wireless-enabled shields for the Arduino come in two types. One,
the Wi-Fi Shield, allows the board to access the Internet through an 802.11
b/g-supported network and has a built-in micro-SD card slot to host files
accessible through the Internet or the network. The Wireless SD Shield has
an XBee module and enables communications between the Arduino and
other XBee-supported devices, including the Wireless Proto Shield.