Arduino CC
Arduino CC
CC
INTRODUCTION
Arduino interface boards provide the engineers,artists,designers,hobbyists and anyone
who tinker with technology with a low-cost, easy-to-use technology to create their creative,
interactive objects, useful projects etc.A whole new breed of projects can now be built that can be
controlled from a computer.
WHAT IS ARDUINO?
Anyone can buy this device through online auction site or search engine. Since the Arduino is
an open-source hardware designs and create their own clones of the Arduino and sell them, so the
market for the boards is competitive. An official Arduino costs about $30 and a clone often less
than $20.
The name Arduino is reserved by the original makers. However, clone Arduino designs often
have the letters duino on the end of their name, for example, Freeduino or DFRduino. The
software for programming your Arduino is easy to use and also freely available for Windows,
Mac, and LINUX computers at no cost.
MICROCONTROLLER
Microcontroller can be described as a computer embedded on a rather small circuit board.
To describe the function of a microcontroller more precisely, it is a single chip that can perform
various calculations and tasks, and send/receive signals from other devices via the available pins.
Precisely what tasks and communication with the world it does, is what is governed by what
instructions we give to the Microcontroller. It is this job of telling the chip what to do is what we
refer to as programming on it.
However, the uC by itself cannot accomplish much it needs several external inputs power,
for one a steady clock signal for another. Also, the job of programming it has to be accomplished
by an external circuit. So typically an uC is used along with a circuit which provides these things
to it; this combination is called a microcontroller board. The Arduino Uno that you have received
is one such microcontroller board. The actual microcontroller at its heart is the chip called
Atmega328. The advantages that Arduino offers over other microcontroller boards are largely in
terms of reliability of the circuit hardware as well as the ease of programming and using it.
OPEN-SOURCE HARDWARE
Open-source hardware shares much of the principles and approach of free and open-source
software. The founders of Arduino wanted people to study their hardware, to understand how it
works, make changes to it, and share those changes with the world. To facilitate this, they release
all of the original design files (Eagle CAD)for the Arduino hardware. These files are licensed
under a Creative Common Attribution Share-Alike license, which allows for both personal and
commercial derivative works, as long as they(people) credit Arduino and release their designs
under the same license.
The Arduino software is also open-source. The source code for the Java environment is
released under the GPL and the C/C++ microcontroller libraries are under the LGPL
DESIGN GOALS
Look nice
Cheap (about 20 euros, the cost of going out for pizza in Europe)
PHYSICAL COMPUTING
Physical Computing is an approach to learn how humans communicate through computers
that starts by considering how humans express themselves physically.
ATmega8 (Microcontroller)
16 MHz
External Power
The power requirement for ARDUINO is 9 to 12V DC, 250mA or more, 2.1mm plug,
centre pin positive.
The OFF-the shelf adapter
must be rated for a minimum of 250mA current output, although you will likely want
something more like 500mA or 1A output, as it gives you the current necessary to power a
servo or twenty LEDs if you want to.
the plug must be "centre positive", that is, the middle pin of the plug has to be the +
connection.
Current rating: Since probably be connecting other things to the Arduino (LEDs, LCDs, servos)
you should get an adapter that can supply at least 500mA, or even 1000 mA (1 ampre). That way
you can be sure you have enough juice to make each component of the circuit function reliably.
The Arduino's on-board regulator can actually handle up to 20V or more, so you can actually use
an adapter that puts out 20V DC. The reasons you don't want to do that are twofold: you'll lose
most of that voltage in heat, which is terribly inefficient. Secondly, the nice 9V pin on the
Arduino board will actually be putting out 20V or so, which could lead to potential disaster when
you connect something expensive to what you thought was the 9V pin. Our advice is to stick with
the 9V or 12V DC adapter.
2.1.4 ARDUINO Family
There have been many revisions of the USB Arduino some of them are
1. Arduino UNO
2. Arduino Mega 2560
3. Arduino Duemilanove
4. Arduino Fio
5. LilyPad Arduino
6. Arduino Diecimila
7. Lilypad Arduino 03
8. Arduino NG Rev.C
9. Arduino Extrem
3. LANGUAGE REFERENCES:
The Microcontroller on the board is programmed using the Arduino programming language
(based on wiring) and the arduino development environment (based on processing).
Wiring
Wiring is an open-source programming framework for microcontrollers. Wiring allows
writing cross-platform software to control devices attached to a wide range of microcontroller
boards to create all kinds of creative coding, interactive objects, spaces or physical experiences.
The framework is thoughtfully created with designers and artists in mind to encourage a
community where beginners through experts from around the world share ideas, knowledge and
their collective experience. There are thousands of students, artists, designers, researchers, and
hobbyists who use Wiring for learning, prototyping, and finished professional work production.
Software
The software used by the arduino is Arduino IDE the Arduino IDE is a cross-platform application
written in Java, and is derived from the IDE for the Processing programming language and the Wiring
project. It is designed to introduce programming to artists and other newcomers unfamiliar with software
development. It includes a code editor with features such as syntax highlighting, brace matching, and
automatic indentation, and is also capable of compiling and uploading programs to the board with a
single click. There is typically no need to edit make files or run programs on a command. Although
building on command-line is possible if required with some third-party tools such as Ino.
The Arduino IDE comes with a C/C++ library called "Wiring" (from the project of the same
name), which makes many common input/output operations much easier. Arduino programs are
written in C/C++, although users only need define two functions to make a runnable program:
setup() a function run once at the start of a program that can initialize settings
Language reference
Arduino programs can be divided in three main parts: structure, values (variables and constants),
and functions.
Available data types in ARDUINO IDE are
void
boolean
char ( 0 255)
byte - 8 bit data ( 0 255)
int - 16-bit data (32,767 - -32,768)
long 32 bit data (2,147,483,647 to -2,147,483,648)
float
double
string - char array
String - object
array
Arithmetic operators
Arithmetic operators include addition, subtraction, multiplication and division. For math that
requires fractions, you can use float variables, if you can bear large size and slow computation
speeds in your microcontroller.
e.g. ,
y = y + 3;
x = x 7;
i = j * 6;
r = r / 5;
Comparison operators
Comparisons of one variable or constant against another are often used in if statements to test if
a specified condition are true.
e.g. ,
x == y // x is equal to y
x != y // x is not equal to y
x < y // x is less than y
x > y // x is greater than y
x <= y // x is less than or equal to y
x >= y // x is greater than or equal to y
Logical operators
Logical operators are usually a way to logically combine two expressions and return a TRUE or
FALSE depending on the operator.
There are three logical operators, AND, OR, and NOT.
e.g. ,
Logical AND:
if (x > 0 && x < 5) // true only if both expressions are true
Logical OR:
if (x > 0 || y > 0) // true if either expression is true
Logical NOT:
if (!x > 0) // true only if expression
TRUE/FALSE
These are Boolean constants that define logic levels of the arduino.
FALSE is easily defined as 0 (zero)
TRUE is often defined as 1, but can also be anything else except zero. So in a Boolean sense, -1,
2, and -200 are all also defined as TRUE.
e.g. ,
if (abcd== TRUE);
{
DoSomethingNice;
}
else
{
DoSomethingHorrible;
}
HIGH/LOW
These constants define pin levels as HIGH or LOW and are used when reading or writing to
digital pins.
HIGH is defined as logic level 1, ON, or 5 volts
LOW is logic level 0, OFF, or 0 volts.
e.g. ,
digitalWrite(13, HIGH);
INPUT/OUTPUT
These constants define pin levels as HIGH or LOW and are used when reading or writing to
digital pins HIGH is defined as logic level 1, ON, or 5 volts LOW is logic level 0, OFF, or 0
10
11
APPLICATIONS OF ARDUINO
Arduino was basically designes to make the process of using electronics in
multidisciplinary projects more accessible. It is intended for artists, designers, hobbyists, and
anyone interested in creating interactive objects or environments. Arduino can sense the
environment by receiving input from a variety of sensors and can affect its surroundings by
controlling lights, motors, and other actuators. Because of these features, arduino finds extensive
application in various fields. Arduino projects can be stand-alone or they can communicate with
software running on a computer.
Arduino is used by all class of people in a different way. Some students use it in their projects,
some using arduino for fun, some went out to become entreupreuners.This only shows how useful
is this tiny device.
ARDUINO is spreading rapidly across the globe. Arduino is actually an open source hardware
project that can be programmed to read temperatures, control a motor, and sense touch. The
Arduino is both a cute, blue micro controller platform that fits nicely in the palm of your hand and
an expanding community of developers who support it, distributed across two dozen countries,
four continents, and counting. The Arduino board is for anyone who wants to build a basic level
of intelligence into an object. Once programmed, it can read sensors, make simple decisions, and
control myriad devices in the real world. Using it is a snap: first, hook up a few sensors and
output devices to the Arduino, and then program it using the free developers software. Next,
debug your code and disconnect the Arduino. Then little blue Arduino becomes a standalone
12
computer. The original intention of the Arduino project was to see what would happen if
community support were substituted for the corporate support that is usually required for
electronics development. The first developers Massimo Banzi, David Cuartielles, David
Mellis, and Nicholas Zambetti ran a series of workshops on assembling the Arduino, giving
away the board to stimulate development.
Thousands of projects have been done worldwide using this tiny little device. Some of which to
mention are:
Ultrasonic Sensor
Infrared detectors
SONAR
13
LED array
LCD module
Oscilloscope
Light harp
VU meter
LCD Thermostat
The hypnotizer
Lie detector
Infrared remote
Starter Projects
A Thriving Community.
Simple is attractive
REFERENCES
1. http://www.arduino.cc
2. http://en.wikipedia.org/wiki/Arduino -wikipedia
3. Jonathan Oxer,Hugh Blemings Practical Arduino-cool projects for open source hardware
4.Simon monk 30 ARDUINO PROJECTS for the EVIL GENIUS.
5. http://www.arduino.cc/playground/Projects/ArduinoUsers
6.http://www.arduinothedocumentary.org
7.http://www.google.com
8.http://www.accessories.android.com
14