What Is Arduino
What Is Arduino
cc/en/Guide/Introduction
What is Arduino?
Over the years Arduino has been the brain of thousands of projects, from everyday objects to
complex scientific instruments. A worldwide community of makers - students, hobbyists, artists,
programmers, and professionals - has gathered around this open-source platform, their
contributions have added up to an incredible amount of accessible knowledge that can be of great
help to novices and experts alike.
Arduino was born at the Ivrea Interaction Design Institute as an easy tool for fast prototyping,
aimed at students without a background in electronics and programming. As soon as it reached a
wider community, the Arduino board started changing to adapt to new needs and challenges,
differentiating its offer from simple 8-bit boards to products for IoT applications, wearable, 3D
printing, and embedded environments. All Arduino boards are completely open-source,
empowering users to build them independently and eventually adapt them to their particular
needs. The software, too, is open-source, and it is growing through the contributions of users
worldwide.
Why Arduino?
Thanks to its simple and accessible user experience, Arduino has been used in thousands of
different projects and applications. The Arduino software is easy-to-use for beginners, yet
flexible enough for advanced users. It runs on Mac, Windows, and Linux. Teachers and students
use it to build low cost scientific instruments, to prove chemistry and physics principles, or to get
started with programming and robotics. Designers and architects build interactive prototypes,
musicians and artists use it for installations and to experiment with new musical instruments.
Makers, of course, use it to build many of the projects exhibited at the Maker Faire, for example.
Arduino is a key tool to learn new things. Anyone - children, hobbyists, artists, programmers -
can start tinkering just following the step by step instructions of a kit, or sharing ideas online
with other members of the Arduino community.
There are many other microcontrollers and microcontroller platforms available for physical
computing. Parallax Basic Stamp, Netmedia's BX-24, Phidgets, MIT's Handyboard, and many
others offer similar functionality. All of these tools take the messy details of microcontroller
programming and wrap it up in an easy-to-use package. Arduino also simplifies the process of
working with microcontrollers, but it offers some advantage for teachers, students, and interested
amateurs over other systems:
Inexpensive - Arduino boards are relatively inexpensive compared to other
microcontroller platforms. The least expensive version of the Arduino module can be
assembled by hand, and even the pre-assembled Arduino modules cost less than $50
Cross-platform - The Arduino Software (IDE) runs on Windows, Macintosh OSX, and
Linux operating systems. Most microcontroller systems are limited to Windows.
Open source and extensible software - The Arduino software is published as open
source tools, available for extension by experienced programmers. The language can be
expanded through C++ libraries, and people wanting to understand the technical details
can make the leap from Arduino to the AVR C programming language on which it's
based. Similarly, you can add AVR-C code directly into your Arduino programs if you
want to.
Open source and extensible hardware - The plans of the Arduino boards are published
under a Creative Commons license, so experienced circuit designers can make their own
version of the module, extending it and improving it. Even relatively inexperienced users
can build the breadboard version of the module in order to understand how it works and
save money.
Use a ATTiny85 (can be ATTiny45, ATTiny44) to make an Arduino just for US3.00 and name it
as Tiny Arduino.
Tiny Arduino have only eight pins as shown in figure above, Pin4 is ground (Gnd), Pin8 is 5V
(Vcc), Pin1 is Reset, Pin2 and Pin3 originally used to connecting the Crystal. In order to utilize
all the IO, the internal oscillator (RC Oscillator) is used to replace the external clock which
require a crystal. Therefore the Tiny Arduino is now come with five IO. Below shows the
Arduino IO functions.
Step 1: Materials
You will see Tools>Board>ATtiny85 (w / Arduino as ISP) from the menu upon completing
of the above procedures.
This is a 5 channel running light schematic, five LED is connected to the output of ATtin85, and
the 5 resistors is use to limit current flowing through the LED.
Here is the sketch for 5 channel running light sketch, you must upload to the ATtiny85.
/ / The sketch demonstrate a 5 channel running light using ATTiny45/85 micro controller
long interval = 1000; / / set the LED blink speed (1000ms = one second)
void setup ()
{
pinMode (CH1, OUTPUT); / / set CH1 as output
pinMode (CH2, OUTPUT); / / set CH2 as output
pinMode (CH3, OUTPUT); / / set CH3 as output
pinMode (CH4, OUTPUT); / / set CH4 as output
pinMode (CH5, OUTPUT); / / set CH5 as output
}
void loop () {
digitalWrite (CH1, HIGH); / / set the LED on
delay (interval); / / wait for a second
digitalWrite (CH1, LOW); / / set
# Define MAX_CHANNEL 5
# Define CH1 0 / / ATTiny45/85 PIN5
# Define CH2 1 / / ATTiny45/85 PIN6
# Define CH3 2 / / ATTiny45/85 PIN7
# Define CH4 3 / / ATTiny45/85 PIN2
# Define CH5 4 / / ATTiny45/85 PIN3
void setup () {
/ / Serial.begin (9600);
for (byte i = 0; i <MAX_CHANNEL; i + +) {
pinMode (Channel [i], OUTPUT); / / declare all channel as output
}
allChannelOn (); / / turn on all LED for one second during startup
delay (1000);
}
void loop ()
{
runDown ();
runKnightRider ();
for (byte i = 0; i <10; i + +) {/ / loop 10 times for random LED
runRandom ();
}
}
My Arduino ISP is very simple too. Figure below shows the connection of my Tiny Arduino and
Arduino ISP.
I'm not using an Arduino duemilanove as the Arduino ISP, instead I'm using an ATmega328
MCU burned with UNO bootloader and uploaded with ArduinoISP sketch.
Source: http://ediy.com.my/index.php/blog/item/48-simplest-and-cheapest-arduino
86,669views
200favorites
License:
smchingeDIY117
Bio: A place for DIY projects
More by smching: