Top Banner
PRÁCTICAS DE PROGRAMACIÓN CON ARDUINO P10: CONTROL Vehículos con SERVOS José Pujol Pérez IES Vicente Aleixandre
14

P10: Arduino Basic Shield: Control Vehiculos con Servos

Jul 29, 2015

Download

Education

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: P10: Arduino Basic Shield: Control Vehiculos con Servos

PRÁCTICAS DE PROGRAMACIÓN CON ARDUINO

P10: CONTROL Vehículos con SERVOS

José  Pujol  Pérez  IES  Vicente  Aleixandre  

Page 2: P10: Arduino Basic Shield: Control Vehiculos con Servos

OBJETIVOS

•  Controlar un vehículo de forma automática

•  Controlar servomotores continuos  

Page 3: P10: Arduino Basic Shield: Control Vehiculos con Servos

Ideas Previas:

•  ¿Como funciona un servomotor continuo?

•  ¿Puedo controlar un vehículo de forma automática

con dos servomotores?

•  ¿Que le puedo añadir para que el vehículo sea

''inteligente''?

 

INTRODUCCIÓN

Page 4: P10: Arduino Basic Shield: Control Vehiculos con Servos

Controlar un vehículo de forma automática

Ideas:

•  Crear rutinas adelante, atras, izquierda y derecha

•  Hacer que el vehículo siga una trayectoria prefijada

•  Crear un laberinto y ver que grupo lo soluciona antes

 

HACER

Page 5: P10: Arduino Basic Shield: Control Vehiculos con Servos

•  SERVOMOTORES CONTINUOS

•  CONEXIÓNES ARDUINO SERVOMOTORES

•  CONTROL SERVOMOTORES

•  DELAYMICROSECONDS

•  CONTROL VEHÍCULO

•  LLAMADA A FUNCIONES

 

INFORMACIÓN

Page 6: P10: Arduino Basic Shield: Control Vehiculos con Servos

 

SERVOMOTORES CONTÍNUOS Es una modificación de los servomotores de posición para que puedan girar continuamente. Características: •  Velocidad reducida •  Permiten cambiar sentido de giro

Page 7: P10: Arduino Basic Shield: Control Vehiculos con Servos

 

SERVOMOTORES CONTÍNUOS Funcionamiento: Variando el ancho de pulso controlamos su sentido de giro

An9horario  

Fijo  

Horario  

Page 8: P10: Arduino Basic Shield: Control Vehiculos con Servos

Motor sentido antihorario

 

CONTROL SERVOMOTORES

Page 9: P10: Arduino Basic Shield: Control Vehiculos con Servos

DELAYMICROSECONDS

- delayMicroseconds (μs);Pausa el programa durante los microsegundos

especificados.

Page 10: P10: Arduino Basic Shield: Control Vehiculos con Servos

 

CONTROL VEHÍCULO

Page 11: P10: Arduino Basic Shield: Control Vehiculos con Servos

Rutina adelante

 

CONTROL VEHÍCULO

Page 12: P10: Arduino Basic Shield: Control Vehiculos con Servos

 

LLAMADA A FUNCIONES Nos permiten agrupar las diferentes rutinas de forma que el programa nos quede más ordenado.

Page 13: P10: Arduino Basic Shield: Control Vehiculos con Servos

•  ¿Qué hemos conseguido hacer?

 

reflexionamos

Page 14: P10: Arduino Basic Shield: Control Vehiculos con Servos

     Este  guía  se  distribuye  bajo  licencia  Reconocimiento-­‐  Compar9rIgual  Crea9ve  commons  4.0    

   

(cc)  2014  José  Pujol  Pérez  Some  rights  reserved.  This  work  licensed  under  Crea9ve  Commons  AQribu9on-­‐ShareAlike  License.  To  view  a  copy  of  full  license,  see                  

hQp://crea9vecommons.org/licenses/by-­‐sa/3.0/  or  write  to  Crea9ve  Commons,  559  Nathan  AbboQ  Way,  Stanford,  California  94305,  USA.    

Some  of  the  figures  have  been  taken  from  the  Internet  Source,  and  author  and  licence  if  known,  is  specified.    

For  those  images,  fair  use  applies.    

 

licencia