Arduino_eghost2ndDay
-
Author
diego-casado-mansilla -
Category
Investor Relations
-
view
515 -
download
0
Embed Size (px)
description
Transcript of Arduino_eghost2ndDay

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 (Ej. Servo Motores). Hands-on 4 sketches. Preguntas, dudas, evaluación.
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2

3
FIRST EXAMPLE (BLINK)
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2

4
FIRST EXAMPLE (BLINK)
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2

5
LÓGICA DE PROGRAMACIÓNA
rdu
ino - #
eg
host 2
6-2
7/2
01
2

6
FIRST EXAMPLE (BLINK)
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2
Upload

7
¿QUÉ VAMOS A USAR?
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2

8
SENSORES Y ACTUADORES (I)A
rdu
ino - #
eg
host 2
6-2
7/2
01
2

9
SENSORES Y ACTUADORES (I)A
rdu
ino - #
eg
host 2
6-2
7/2
01
2

10
SENSORES Y ACTUADORES (I)
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2
Photocell (light sensor)
Rotation sensor(potentiometer)
Simple buttons

11
SENSORES Y ACTUADORES (II)
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2
Motores
Luces Led
Piezo Buzzer

12
OTROS….
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2
Cables
Luces Led

13
OTROS….
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2

14
LIBRERÍAS ARDUINO (I)
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2
Funcionalidad Extra (Hardware o datos)

15
LIBRERÍAS ARDUINO (I)
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2
Funcionalidad Extra (Hardware o datos)
~/Arduino/libraries/ ~/Arduino/sketchbook/libraries/

16
LIBRERÍAS ARDUINO (I)
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2
Funcionalidad Extra (Hardware o datos)
~/Arduino/libraries/ ~/Arduino/sketchbook/libraries/
Cabecera <* .h> y el fuente <*.cpp> Carpeta/Directorio

17
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2
LIBRERÍAS ARDUINO (II)

18
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2
LIBRERÍAS ARDUINO (III)
Importar la librería a tu Sketch
Crear un nuevo objeto de la librería
Configurar tu objeto (dependiendo de la librería)
Llamar la función que necesites

19
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2
LIBRERÍAS ARDUINO (IV)
Crea tus propias librerías!!!

20
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2
LIBRERÍAS ARDUINO (IV)

21
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2
LIBRERÍAS ARDUINO (IV)

22
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2
LIBRERÍAS ARDUINO (IV)

23
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2
LIBRERÍAS ARDUINO (IV)

24
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2

25
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2

26
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2

27
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2

28
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2

29
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2

30
Ard
uin
o - #
eg
host 2
6-2
7/2
01
2