Arduino
CARACTERÍSTICAS E
SIMPLICIDADE
Utiliza microcontrolador AtMEGA 8,168, 328,1280, 2560.
RISC - Reduced Instruction Set Computer ou Computador comum
Conjunto Reduzido de Instruções.
20 MIPS (milhões de instruções por segundo).
Memória Flash: 8kb,16kb, 32kb, 128kb, 256kb.
14 portas digitais
6 portas analógicas
Oferece um IDE e bibliotecas de alto nível
Hardware e Software Open-Source
Programado em C/C++
Transferência de firmware via USB
TIPOS DE ARDUINO
Arduino 2009 Arduino Mega
Arduino UNO
Arduino ADK (Google ADK - Android)
Arduino BT
Arduino Nano
LilyPad
TIPOS DE ARDUINO
CARACTERÍSTICAS DO ARDUINO UNO
●
Microcontrolador Atmega 328
●
Voltagem Operacional 5V
●
Voltagem de entrada (recomendada) 7-12V
●
Voltagem de entrada (limites) 6-20V
●
Pinos E/S digitais 14 (dos quais 6 podem ser saídas PWM)
●
Pinos de entrada analógica 6
●
Corrente CC por pino E/S 40 mA
●
Corrente CC para o pino 3,3V 50 mA
●
Flash Memory 32 KB (ATmega328) dos quais 0,5KB são utilizados
pelo bootloader.
●
SRAM 2 KB (ATmega328)
●
EEPROM 1 KB (ATmega328)
●
Velocidade de Clock 16 MHz
PROTOBOARD
ESQUEMA
PORTAS DIGITAIS
●
Trabalha com 0 e 1 na lógica
binária
●
De 0 à 0,8 volts = 0
●
De 2 à 5 volts = 1
PORTAS ANALÓGICAS
Valor lido é análogo à tensão 0 volts = 0
Conversor A/D de 10 bits: 0 à 1023
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}