Arduino
Arduino is a single-board microcontroller to make using electronics in multidisciplinary projects more accessible. The hardware consists of a simple open source hardware board designed around an 8-bit Atmel AVR microcontroller, or a 32-bit Atmel ARM.
Arduino-Uno
• Based on “Wiring Platform”, which dates to
2003
• Open-source hardware platform
• Open source development environment
– Easy-to learn language and libraries (based
on Wiring language)
– Integrated development environment (based
on Processing programming environment)
– Available for Windows / Mac / Linux
The many Flavors (Types) of Arduino:-
• Arduino Uno
• Arduino Leonardo
• Arduino LilyPad
• Arduino Mega
• Arduino Nano
• Arduino Mini
• Arduino Mini Pro
• Arduino BT
Electric Inputs And Outputs:-
How to Download And Install its Software
• Download Arduino compiler and development environment from:
• Current version: 1.0.1
• Available for:
– Windows
– MacOX
– Linux
• No installer needed... just unzip to a convenient location
• Before running Arduino, plug in your board using USB cable
(external power is not necessary)
• When USB device is not recognized, navigate to and select the
appopriate driver from the installation directory
• Run Arduino
Now Select your Board
Select Serial Port
Elements of the Arduino IDE
Arduino Sketch Structure
• void setup()
– Will be executed
only when the
program begins
(or reset button
is pressed)
• void loop()
– Will be executed
repeatedly
Using the Arduino IDE
Blink Example
Load the “Blink” example
(File-Examples-Basics-Blink)
void setup() {
// initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards:
pinMode(13, OUTPUT);-----------------------------------------Use pin 13 as a digital output.
}
void loop() {
digitalWrite(13, HIGH); // set the LED on---------------------Set output HIGH.
delay(1000); // wait for a second--------------------------------Wait 1000 milliseconds.
digitalWrite(13, LOW); // set the LED off---------------------Set output Low.
delay(1000); // wait for a second
}
Compile, then upload the program
• Congratulations! you are now blinkers!





