Arduino 1
Arduino 1
Arduino 1
1/26
What is Arduino?
"Arduino
2/26
What is Arduino?
Contd..
Its.
Open source Hardware and Software
prototyping platform
Which.
Uses sensors- to capture data:
e.g.motion, temperature, light,
sound, RFID
Controls things- hooked up to it:
Like- motors, lights, LCD, coffee
machines, dishwashers, doors, etc.
3/26
Why Arduino?
Current scenario::
Inexpensive:
Cross-platform :(IDE available
for Windows, OSX and Linux)
Simple, clear programming
environment (C like syntax, a lot
of pre-built libraries)
Open source and extensible
software and hardware as well
4/26
Short Introduction
To
Arduino Board
(Hardware)
02/23/15
5/26
02/23/15
6/26
USB to Serial
Conv.
FTDI
FT232-IC
Power
Connector
Digital I/O
pins:
Microcontroll
er
Analog I/O pins-6
7/26
02/23/15
8/26
0.5 KB used by
bootloader
02/23/15
9/26
Arduino Schematic
Arduino
10/26
02/23/15
12/26
Short Introduction
To
Arduino IDE
Integrated Development
Environment
(Software)
02/23/15
13/26
Input Area
Status Bar
Program Notification
02/23/15
14/26
Arduino IDE
Arduno
15/26
Arduino
STANDARD
LIBRERIES:
EEPROM , Ethernet, Firmata
,LiquidCrystal, Servo , SPI,
SoftwareSerial, Stepper, Wire .
CONTRIBUTED
LIBRERIES:
Metro, Mstimer2, LedControl,
LedDisplay etc
02/23/15
16/26
Coding guidelines
Arduino
coding guidelines
17/26
Arduino Pins
18/26
19/26
02/23/15
20/26
02/23/15
22/26
Timer
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/signal.h>
SIGNAL(SIG_OVERFLOW1) {
PORTB = ~ PORTB;
}
void main() {
DDRB=0xFF;
TIMSK= (1<<TOIE1);
TCCR1A=0x00; // timer1 in normal mode operation
TCCR1B=0X05; // pre scaling by 1024
TCNT1L=0x00;
TCNT1H=0X00;
sei();
while (1);
}
02/23/15
23/26
Timer
24/26
library
Using functions in Arduino
environment
25/26
26/26
27/26