arduino_eghost

77
ARDUINO …From scratch @dieguich, @juanarmentia, [email protected] & @jon_lazaro

Upload: diego-casado-mansilla

Post on 28-Jan-2015

105 views

Category:

Technology


0 download

DESCRIPTION

This talk is a customized mix of: http://www.slideshare.net/eoinbrazil/iotc08-the-arduino-platform http://www.slideshare.net/adafruit/open-source-hardware-overview http://www.slideshare.net/coopermaa/arduino-introduction-by-coopermaa http://todbot.com/blog/spookyarduino/ http://www.slideshare.net/adg89/seminario-de-arduino-deustotech http://www.slideshare.net/omerk/introduction-to-arduino-2705908 http://www.slideshare.net/arduinoteam/open-source-hardware-summit-speech-2011 Thaks to all the authors for your excellents slides

TRANSCRIPT

Page 1: Arduino_eghost

ARDUINO…From scratch

@dieguich, @juanarmentia, [email protected] & @jon_lazaro

Page 2: Arduino_eghost

2

PLANIFICACIÓN DEL CURSO

Primer día (2h teoría) Introducción El mundo de Arduino

OSHW Plataformas y Shields Sensores y Actuadores

Motivación: Proyectos IDEs

Arduino y otros IDEs Primer contacto (Blink).

Segundo día (2h práctica) Librerías de Arduino. Hands-on 4 sketches. Preguntas, dudas, evaluación.

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 3: Arduino_eghost

3

¿EMPEZAMOS?

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Al Lío!!

Page 5: Arduino_eghost

5

INTRODUCCIÓN

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 6: Arduino_eghost

6

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 7: Arduino_eghost

7

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 8: Arduino_eghost

8

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 9: Arduino_eghost

9

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

USB Port

Power Supply

Digital In/Out Pins

Analog Input Pins

Power Pins

Atmega328p

USB to Serial

I2C (4 & 5)

Serial - Uart

SPI

Bootloader

Page 10: Arduino_eghost

10

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

+5V

+5V

0V

0V

[ HIGH- LOW ]

[ 0 - 1023 ]

Page 11: Arduino_eghost

11

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

February 1982 February 2005

Page 12: Arduino_eghost

12

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 13: Arduino_eghost

13

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

• Open Source Hardware?

• Is FOSS like?

Page 14: Arduino_eghost

14

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 15: Arduino_eghost

15

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 16: Arduino_eghost

16

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 17: Arduino_eghost

17

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 18: Arduino_eghost

18

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 19: Arduino_eghost

19

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 20: Arduino_eghost

20

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 21: Arduino_eghost

21

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 22: Arduino_eghost

22

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 23: Arduino_eghost

23

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

http://en.wikipedia.org/wiki/Open-source_hardware

Page 24: Arduino_eghost

24

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 25: Arduino_eghost

25

¡¡QUE LÍO!!

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 26: Arduino_eghost

26

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

http://arduino.cc/cgi-bin/yabb2/YaBB.pl

Page 27: Arduino_eghost

27

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 28: Arduino_eghost

28

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 29: Arduino_eghost

29

BOARDS OFICIALES (I)

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

UNO

Duemilanove

Mega

Nano

Page 30: Arduino_eghost

30

BOARDS OFICIALES (II)

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

LilyPad

Mega ADK

Mini

Page 31: Arduino_eghost

31

BOARDS OFICIALES (III)

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Arduino Due (Cortex-M3)

Arduino Leonardo

Page 32: Arduino_eghost

32

BOARDS COMPATIBLES (OSHW)

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Freeduino Seeeduino

Boarduino(ladyada) Teensyduino

Zigduino (ZigBee)

Page 33: Arduino_eghost

33

BOARDS CLONES (NOT AT-MEGA)

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Pinguino (PIC18/32)

Netduino (Atmel ARM7, use .NET)

FEZ Panda (NXP ARM7, use .NET)

mbed (NXP ARM Cortex-M0/M3)

Page 34: Arduino_eghost

34

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Microcontroller ATmega328p

Operating Voltage

5V

Digital I/O Pins 14 (of which 6 provide PWM output)

Analog Input Pins

6

DC current per I/O Pins

40mA

DC current for 3.3V Pin

50mA

Flash Memory 32KB

SRAM 2KB

EEPROM 1KB

Clock Speed 16MHz

ICSP Header In System Programming, used when you want to burn the bootloader, you'll need an AVR-ISP

Page 35: Arduino_eghost

35

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 36: Arduino_eghost

36

EXTENDING ARDUINO CAPABILITIES – THE SHIELDS

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Motor ShieldTouch Shield

Input Shield SEMeter Shield(Smart Meter)

EduShield

Page 37: Arduino_eghost

37

EXTENDING CAPABILITIES – COMMUNICATION SHIELDS

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

XBee GPRS

EtherNEt

BlueTooth

Wi-Fi

RfID

Page 38: Arduino_eghost

38

SENSORES Y ACTUADORES (I)A

rdu

ino - #

eg

host 2

6-2

7/2

01

2

Page 39: Arduino_eghost

39

SENSORES Y ACTUADORES (I)A

rdu

ino - #

eg

host 2

6-2

7/2

01

2

Page 40: Arduino_eghost

40

SENSORES Y ACTUADORES (I)

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Photocell (light sensor)Rotation sensor(potentiometer)

PIR

Sharp IR SensorHumiditySound

Page 41: Arduino_eghost

41

SENSORES Y ACTUADORES (II)

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Temperature

Tri-Axis Accelerometer

AC Current Sensor

CO2 Sensor

Pressure

Polar Heart Rate Sensor

Page 42: Arduino_eghost

42

SENSORES Y ACTUADORES (III)

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Motores

Luces Led

Piezo Buzzer

Page 43: Arduino_eghost

43

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Let me Google….

Where can we buy an Arduino ?

Page 44: Arduino_eghost

44

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 45: Arduino_eghost

45

INSPIRACIÓN….

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 46: Arduino_eghost

46

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 47: Arduino_eghost

47

DOMÓTICA

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

http://bitly.com/zfZT3H

Page 48: Arduino_eghost

48

MATERIAL DE OFICINA (I)

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 49: Arduino_eghost

49

MATERIAL DE OFICINA (II)

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 50: Arduino_eghost

50

¿QUÉ PUEDES IMPRIMIR?

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Manilla puerta

Perchero

Page 51: Arduino_eghost

51

MÚSICA

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 52: Arduino_eghost

52

ARDUINO MEETS ANDROID (I)

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 53: Arduino_eghost

53

ARDUINO MEETS ANDROID (II)

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

http://bitly.com/wdrPee

Page 54: Arduino_eghost

54

ARDUINO MEETS ANDROID (III)

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

http://noxdroid.org

Page 55: Arduino_eghost

55

COMPRAS E INVENTARIOS

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 56: Arduino_eghost

56

INTERFÁZ HUMANO-TANGIBLE

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

http://bit.ly/PZ5Vlq

Page 57: Arduino_eghost

57

ROBÓTS DE TODA CLASE

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 58: Arduino_eghost

58

ROPA Y TEXTIL

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 59: Arduino_eghost

59

ELECTRODOMÉSTICOS

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

http

://socia

lcoffe

e.m

ore

lab

.deu

sto

.es

Page 61: Arduino_eghost

61

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 62: Arduino_eghost

62

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 63: Arduino_eghost

63

FIRST EXAMPLE (BLINK)

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 64: Arduino_eghost

64

FIRST EXAMPLE (BLINK)

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

On board LED on Pin 13

Page 65: Arduino_eghost

65

FIRST EXAMPLE (BLINK)

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 66: Arduino_eghost

66

FIRST EXAMPLE (BLINK)

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 67: Arduino_eghost

67

LÓGICA DE PROGRAMACIÓNA

rdu

ino - #

eg

host 2

6-2

7/2

01

2

Page 68: Arduino_eghost

68

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 69: Arduino_eghost

69

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 70: Arduino_eghost

70

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 71: Arduino_eghost

71

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 72: Arduino_eghost

72

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 73: Arduino_eghost

73

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 74: Arduino_eghost

74

FIRST EXAMPLE (BLINK)

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Upload

Page 75: Arduino_eghost

75

NO SÓLO ARDUINO IDEA

rdu

ino - #

eg

host 2

6-2

7/2

01

2

Page 76: Arduino_eghost

76

REFERENCIAS DE FOTOGRAFÍAS http://www.cccb.org/lab/es/ici/una-revolucio-educativa/ http://www.lasseriesdetuvida.com/?page_id=20087 http://www.mediabistro.com/unbeige/if-designers-are-the-enemy-are-

innovators-the-heroes_b2965 http://cobaq17verdema.blogspot.com.es/2011/05/reciclaje-las-tres-rrr.html http://funcorner.eu/tag/ipod/ http://www.autism-community.com/community-center/ http://free-images-of.com/tag/thinking-images/ http://findingthewritemoment.blogspot.com.es/2011/07/i-get-inspiration-

to-write-in-weirdest.html http://www.motivationalmemo.com/130-inspiration-quotes-for-those-who-

need-inspiration/ http://blog.timesunion.com/payitforward/all-susan-stricklean/2003/ http://www.esuppliersindia.com/meson-india-pvt-ltd-/actuators-pr540004-

sCATALOG-swf.html http://reprap.org/wiki/RepRap/es http://www.moderndesigntrends.com/?p=vdgwauafoei&paged=15 http://tdistler.com/tag/funny http://technabob.com/blog/2010/11/15/twitter-monkey-arduino-monkey/

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

Page 77: Arduino_eghost

Ard

uin

o - #

eg

host 2

6-2

7/2

01

2

77