Top Banner
CONTROL DE MOTORES CC José Pujol Pérez IES Vicente Aleixandre
21

Arduino control motores cc

Feb 14, 2017

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: Arduino control motores cc

CONTROL DE MOTORES CC

José  Pujol  Pérez  IES  Vicente  Aleixandre  

Page 2: Arduino control motores cc

•  SALIDAS ANALÓGICAS

•  CONTROLAR POTENCIÓMETRO SALIDA ANALÓGICA

SALIDAS ANALÓGICAS

Page 3: Arduino control motores cc

SALIDA ANALÓGICA pwm

PWM: Modulación por Anchura de Pulso- analogWrite(pin, valorPWM);pin: pines digitales con PWM:

D3, D5, D6, D9, D10, D11

valor: entre 0-255 (0-5v)

VS=5*PWM/255

Page 4: Arduino control motores cc

 

PROGRAMA FADING

Page 5: Arduino control motores cc

potenciómetro

Es una resistencia variable •  Resistencia variable 0-10 kΩ •  Divisor de tensión 0-5v

5v  

VANALOG  

0v  

Page 6: Arduino control motores cc

POTENCIÓMETRO

Page 7: Arduino control motores cc

MAP Escala un valor de un rango a otro- map(value;fromLow;fromHigh;toLow;toHigh);value: valor a escalar El caso más típico es de una entrada analógica 0-1023 a una salida analógica 0-255sensorMapvalue=map(sensorValue;0; 1023;0;255);

Page 8: Arduino control motores cc

 

ENTRADA-SALIDA ANALÓGICA

Page 9: Arduino control motores cc

•  MOTORES CC

•  CONTROL VELOCIDAD

•  puente en h Y L298

MOTORES cc

Page 10: Arduino control motores cc

MOTORES CC

Características:

•  Son económicos

•  Permiten regular su velocidad en función de

su tensión de alimentación

•  Invierten el sentido de giro en función de su

polaridad

•  Pueden necesitar un circuito de potencia cc "  

Page 11: Arduino control motores cc

MOTORES CC

Control velocidad "  

Page 12: Arduino control motores cc

MOTORES CC

Control velocidad "  

Page 13: Arduino control motores cc

PRÁCTICAS MOTORES

•  CONTROLAR UN MOTOR EN VELOCIDAD

CON UN POTENCIÓMETRO

 

Page 14: Arduino control motores cc

MOTORES CC

Inversión de giro mediante puente en H "  

Page 15: Arduino control motores cc

L298

Inversión de giro mediante puente en H y

L298 "  

Page 16: Arduino control motores cc

L298

"  

Page 17: Arduino control motores cc

PRÁCTICAS MOTORES

•  CONTROLAR UN MOTOR SENTIDO DE GIRO

•  CONTROL VELOCIDAD Y SENTIDO DE GIRO

•  AÑADIR LLAMADA A FUNCIONES

 

Page 18: Arduino control motores cc

CONTROL DE UN MOTOR SENTIDO GIRO

"  

Page 19: Arduino control motores cc

PRÁCTICAS MOTORES SALIDAS ANAL.

•  CONTROL VELOCIDAD MEDIANTE CÓDIGO

•  AÑADIR UN POTENCIÓMETRO QUE REGULE

LA VELOCIDAD MOTOR

 

Page 20: Arduino control motores cc

CONTROL DE UN MOTOR V Y SG

"  

Page 21: Arduino control motores cc

     Esta  guía  se  distribuye  bajo  licencia  Reconocimiento-­‐  ComparJrIgual  CreaJve  commons  4.0    

   

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

hUp://creaJvecommons.org/licenses/by-­‐sa/3.0/  or  write  to  CreaJve  Commons,  559  Nathan  AbboU  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 LICENCIA