Arduino
PRESENTED BY
J.ARTHI
Contents:
Introduction
About Arduino
Advantages of Arduino
Popular aduino boards
Architecture of Arduino Uno
Features of Arduino Uno
Programming in Arduino
Sketch in Arduino
Program structure
Compiling and uploading
Basic functions in Arduino
Program to glow inbuilt led
Conclusion
Introduction
In recent years,Arduino has been the microcontroller for many
projects
It is because,it provides simplified technology,faster prototyping and
user-friendly interface
About Arduino
Open source electronic prototyping platform based on flexible easy
to use hardware and software
Single-board microcontroller,intended to make the environment
more accessible
It senses the environment by receiving input from variety of sensors
and affects its surroundings by controlling lights,motors and other
actuators
Advantages of arduino
Open source
Simplified and user friendly pogramming
Portable
Low power consumption
Low cost
Popular Arduino Boards
Arduino Uno-most popular
Arduino Leonardo
Arduino Mega
Arduino Due
Arduino micro
Arduino LilyPad
Arduino Yun
Architecture of arduino
Features of Arduino Uno
ATmega328 Microcontroller
Operating voltage : 5V and 3.3V
Input voltage(recommended) : 7-12V
Input Voltage(limits) : 6-20V
Digital I/O Pins : 14 (6 pins provides PWM output)
Analog input pins : 6
DC current per I/O pin : 40 mA
DC current for 3.3V pin : 50 mA
Flash memory : 32KB(non-volatile)
SRAM : 2KB(volatile)
EEPROM : 1KB(non-volatile)
Clock frequency : 16MHz
Programming in Arduino Uno
Arduino Uno can be programmed with Arduino IDE(Integrated
Development Environment) software
Amega328 on the Arduino has a bootloader that allows us to
upload the program to the board without use of external hardware
programmer
Arduino IDE works on windows,linux and Mac
Sketch in arduino
The program written in the Arduino
IDE is called as sketch
A bare sketch consists of two
functions namely setup() and loop()
Program structure
2 functions: setup(),loop()
void setup(): It is called only when Arduino is powered on or reset.It is
used for variable declaration and pin mode configurations
Void loop(): The code written here will be run continuously till the
device is powered off.
Configuring board and port
Compiling and uploading
Compiltion is the process of converting sketch code into the
machine language code that the Arduino runs
On successful compilation,the program can be uploaded to the
Arduino board
Compiling and uploading
Basic functions
pinMode(pin_no,STATUS);
analogRead(pin_no);
analogWrite(pin_no,STATE);
digitalRead(pin_no);
digitalWrite(pin_no,STATE);
delay(time);
Serial.begin(baud_rate);
Serial.println(value);
Serial.print(value);
To glow led alternatively
Conclusion
Arduino is a cheap and versatile open source prototyping
environment
Programming language is simple
It has a terrific community support and documentation
References
http://www.Arduino.cc/
http://playground.Arduino.cc/
http://learn.adafruit.com/category/learn-arduino
THANK YOU