3. • Eaaaaasy to use
• Inexpensive
• Cross-platform
• Simple, clear programming environment
• Open source and extensible software
• Open source and extensible hardware
Why Arduino?
6. How to Use the Arduino
• Write code in Arduino IDE.
• Connect Arduino to PC using USB cable.
• Click button on IDE to compile program.
• Click button on IDE to load program
unto microcontroller.
• Voila!
7. …any device that accepts input,
performs some computations or
processing of the input and produces
an output.
Technically, that makes an Arduino a computer.
Compared to a Computer
14. Processing
Atmega328P Specs
Program Memory Size 32KB (16K x 16)
Program Memory Type FLASH
FLASH Memory 32 K
EEPROM Size 1KB
RAM Size 2KB
Voltage - Supply (Vcc/Vdd) 1.8 V ~ 5.5 V
28. Programming Workflow
2. Verify/compile code
3. Upload code unto microcontroller
Converts wiring language to bytes of instructions in one Intel hex file.
Loads hex file unto microcontroller
1. Write code
Keep your eye on the logs
30. For All You JS Lovers
Sample Program 1
1
var
five
=
require("johnny-‐five");
2
var
board
=
new
five.Board();
3
4
board.on("ready",
function()
{
5
var
led
=
new
five.Led(13);
6
led.blink(500);
7
});
1
var
five
=
require("johnny-‐five");
2
var
board
=
new
five.Board();
3
4
board.on("ready",
function()
{
5
var
led
=
new
five.Led(11);
6
led.fadeIn(2000);
7
});
Sample Program 2
43. Microcontroller ATMega328P
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limit) 6-20V
Digital I/O Pins 14 (of which 6 provide PWM output)
PWM Digital I/O Pins 6
Analog Input Pins 6
DC Current per I/O Pin 20 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 32 KB (ATmega328P) of which 0.5 KB used by bootloader
SRAM 2 KB (ATmega328P)
EEPROM 1 KB (ATmega328P)
Clock Speed 16 MHz
Length 68.6 mm
Width 53.4 mm
Weight 25 g
UNO Technical Specifications