arduino - hardware livre e robótica
DESCRIPTION
Slides da palestra sobre Arduino, hardware livre e robótica no FLISOL de Goiânia, 2010TRANSCRIPT
![Page 1: Arduino - Hardware Livre e Robótica](https://reader030.vdocuments.pub/reader030/viewer/2022020101/5479b7955906b520358b45b8/html5/thumbnails/1.jpg)
Arduino: Hardware Livre e Robótica
Marinho Brandão, FLISOL 2010, Goiânia
![Page 2: Arduino - Hardware Livre e Robótica](https://reader030.vdocuments.pub/reader030/viewer/2022020101/5479b7955906b520358b45b8/html5/thumbnails/2.jpg)
Quem é o palestrante
![Page 3: Arduino - Hardware Livre e Robótica](https://reader030.vdocuments.pub/reader030/viewer/2022020101/5479b7955906b520358b45b8/html5/thumbnails/3.jpg)
Quem é o palestrante
É pragmático Desenvolvedor há 14 anos Autônomo, consultor e desenvolvedor Co-fundador da comunidade Django brasileira Autor do Geraldo Reports Programador Python do Ano em 2009 Estudando Automação Industrial
![Page 4: Arduino - Hardware Livre e Robótica](https://reader030.vdocuments.pub/reader030/viewer/2022020101/5479b7955906b520358b45b8/html5/thumbnails/4.jpg)
O que é Arduino?
Ator Arduíno Colassanti
![Page 5: Arduino - Hardware Livre e Robótica](https://reader030.vdocuments.pub/reader030/viewer/2022020101/5479b7955906b520358b45b8/html5/thumbnails/5.jpg)
O que é Arduino?
Criado por Massimo Banzi em 2005 Placa controladora com entradas e saídas e
processador Atmel ATMega328p Licença Creative Commons Possui inúmeras variantes Utiliza linguagem Wiring (baseado em C++) Baixo custo (27 dolares no eBay)
![Page 6: Arduino - Hardware Livre e Robótica](https://reader030.vdocuments.pub/reader030/viewer/2022020101/5479b7955906b520358b45b8/html5/thumbnails/6.jpg)
Exemplos de Hardware Livre
RepRap
UzeBox Open Console
![Page 7: Arduino - Hardware Livre e Robótica](https://reader030.vdocuments.pub/reader030/viewer/2022020101/5479b7955906b520358b45b8/html5/thumbnails/7.jpg)
Exemplos de Hardware Livre
BugLabs BUGBase
Elphel Camera
![Page 8: Arduino - Hardware Livre e Robótica](https://reader030.vdocuments.pub/reader030/viewer/2022020101/5479b7955906b520358b45b8/html5/thumbnails/8.jpg)
Exemplos de Hardware Livre
Open Automation Project Leaf Project
![Page 9: Arduino - Hardware Livre e Robótica](https://reader030.vdocuments.pub/reader030/viewer/2022020101/5479b7955906b520358b45b8/html5/thumbnails/9.jpg)
Exemplos de Hardware Livre
Ben NanoNote
Neo FreeRunner(OpenMoko)
![Page 10: Arduino - Hardware Livre e Robótica](https://reader030.vdocuments.pub/reader030/viewer/2022020101/5479b7955906b520358b45b8/html5/thumbnails/10.jpg)
Paralelo com mainboard
AÇÃO REAÇÃO
EN
TR
AD
AS
SA
íDA
S
PROCESSADOR
PERIFÉRICOS
![Page 11: Arduino - Hardware Livre e Robótica](https://reader030.vdocuments.pub/reader030/viewer/2022020101/5479b7955906b520358b45b8/html5/thumbnails/11.jpg)
Paralelo com mainboard
PORTA USB
E/S DIGITAIS
E/S ANALÓGICAS
CHIP ATMEGA
ENTRADA 9V
LEDS
RESET
5V e GND
![Page 12: Arduino - Hardware Livre e Robótica](https://reader030.vdocuments.pub/reader030/viewer/2022020101/5479b7955906b520358b45b8/html5/thumbnails/12.jpg)
IDE para programação
![Page 13: Arduino - Hardware Livre e Robótica](https://reader030.vdocuments.pub/reader030/viewer/2022020101/5479b7955906b520358b45b8/html5/thumbnails/13.jpg)
Hello World com LEDs
int pLed = 13;
void setup() { pinMode(pLed, OUTPUT);}
void loop() { digitalWrite(pLed, HIGH); delay(1000); // 2 segundos digitalWrite(pLed, LOW); delay(1000); // 2 segundos}
![Page 14: Arduino - Hardware Livre e Robótica](https://reader030.vdocuments.pub/reader030/viewer/2022020101/5479b7955906b520358b45b8/html5/thumbnails/14.jpg)
Sensor de luz (LDR)
int valor;
void setup() { Serial.begin(9600);}
void loop() { valor = analogRead(3); Serial.println(valor); delay(1000); // 1 segundo}
![Page 15: Arduino - Hardware Livre e Robótica](https://reader030.vdocuments.pub/reader030/viewer/2022020101/5479b7955906b520358b45b8/html5/thumbnails/15.jpg)
Motores de passo (servo e stepper)
#include <Servo.h>Servo servo;int pos = 1;int dir = 1;
void setup() { servo.attach(10);}
void loop() { servo.write(pos); if (pos<=0 || pos>=180){ dir = dir * -1; } pos = pos + dir * 19; delay(1000);}
![Page 16: Arduino - Hardware Livre e Robótica](https://reader030.vdocuments.pub/reader030/viewer/2022020101/5479b7955906b520358b45b8/html5/thumbnails/16.jpg)
Componentes essenciais
Arduino e cabo USB Fios/jumpers Resistores (470Ω, 1kΩ, 2kΩ, 4.7kΩ, 10kΩ) Leds 5v Transistores PNP e NPN 2v ou 3v Diodos Zener 2v ou 3v Protoboard Alicate de corte Estilete Multímetro Potenciômetro Servo 180º e/ou continuous rotation Palitos de picolé Liguinhas de borracha Cola quente de silicone
![Page 17: Arduino - Hardware Livre e Robótica](https://reader030.vdocuments.pub/reader030/viewer/2022020101/5479b7955906b520358b45b8/html5/thumbnails/17.jpg)
Componentes adicionais
LDR (sensor de luz) Motor (rotor) DC Sonar (sensor ultrassônico) Caixinha de acrílico Aparelho de solda Jacarés Furadeira e brocas para acrílico, madeira e alumínio Parafusos, porcas e arruelas Relés e bornes Engrenagens Timpot Braçadeiras Bateria 9v, interruptor e conector de bateria Rodinhas Sensores em geral
![Page 18: Arduino - Hardware Livre e Robótica](https://reader030.vdocuments.pub/reader030/viewer/2022020101/5479b7955906b520358b45b8/html5/thumbnails/18.jpg)
Dicas para iniciantes
Começar do mais simples
Não comprar kits, e sim componentes
Aprender o básico de circuitos elétricos e
mecânica
E-bay é um dos melhores sites de compra
Rodinhas, eixos, engrenagens do 1,99
Instalar o Fritzing
![Page 19: Arduino - Hardware Livre e Robótica](https://reader030.vdocuments.pub/reader030/viewer/2022020101/5479b7955906b520358b45b8/html5/thumbnails/19.jpg)
Referências
http://en.wikipedia.org/wiki/History_of_computing_hardware
http://en.wikipedia.org/wiki/Open-source_hardware
http://arduino.cc/
http://www.arduinoshow.com/
http://en.qi-hardware.com/wiki/Main_Page
http://en.wikipedia.org/wiki/Open-source_robotics
http://www.allelectronics.com
http://github.com/marinho/eletronica
http://del.icio.us/marinho/arduino
![Page 20: Arduino - Hardware Livre e Robótica](https://reader030.vdocuments.pub/reader030/viewer/2022020101/5479b7955906b520358b45b8/html5/thumbnails/20.jpg)
Perguntas?
Marinho Brandão
[email protected]://www.marinhobrandao.com
http://www.aprendendodjango.com