Escolar Documentos
Profissional Documentos
Cultura Documentos
Matrcula
#1719463
#1729264
#1622887
#1719477
#1719491
Tabla de contenido
Objetivo......................................................................3
Material.......................................................................3
Cuestionario.................................................................3
Diagrama de flujo...........................................................5
Cdigo en Arduino.........................................................5
Diagrama esquemtico....................................................6
Conclusin...................................................................6
Bibliografa..................................................................6
Objetivo
Controlar la velocidad y el sentido de giro de un motor de DC con
Arduino.
Material
1 motor de DC de 5 VDC
1 circuito integrado L293D
Cuestionario
1. Describa los tipos de motor de DC existentes y sus
aplicaciones.
The field winding of a DC motor can be connected in various different
ways according to the application envisaged for the motor in question.
The following configurations are possible:
In the series-wound DC motor the field winding is connected in
series with the armature and the full armature current flows
through the field winding. This arrangement results in a DC motor
that produces a large starting torque at slow speeds. This type of
motor is ideal for applications where a heavy load is applied from
rest. The disadvantage of this type of motor is that on light loads
the motor speed may become excessively high. For this reason,
this type of motor should not be used in situations where the load
may be accidentally removed.
In the shunt-wound DC motor the field winding is connected in
parallel with the armature and thus the supply current is divided
between the armature and the field winding This arrangement
results in a DC motor that runs at a reasonably constant speed
over a wide variation of load but does not perform well when
heavily loaded.
The compound-wound DC motor has both series and shunt field
windings and is therefore able to combine some of the advantages
of each type of motor.
2. Cmo se puede variar la velocidad y el sentido de giro de
un motor de DC?
La velocidad se modifica variando el voltaje, y el sentido
modificando los polos.
3. Adjunte y describa el funcionamiento del circuito integrado
L293D.
El L293D es un driver de 4 canales capaz de proporcionar una
corriente de salida de hasta 600mA por canal y puede soportar
picos de hasta 1.2 A. Cada canal es controlado por seales TTL y
Diagrama de flujo
INICIO
Se escribe el
cdigo principal
Fin
Cdigo en Arduino
// Control de Motor con un driver L293D
int valor = 0; // variable que contiene el valor numrico
int motorAvance = 10; // Avance motor PIN 10
int motorRetroceso = 11; // Retroceso motor PIN 11
void setup() { } // No es necesario
void loop() {
analogWrite(motorRetroceso, 0); // Motor hacia adelante y aumenta la
velocidad
for(valor = 0; valor <= 255; valor+=5) {
analogWrite(motorAvance, valor);
delay(30);
}
for(valor = 255; valor >=0; valor-=5) { //Motor hacia adelante y
disminuye la velocidad
analogWrite(motorAvance, valor);
delay(30);
}
analogWrite(motorAvance, 0); // Motor hacia atrs y aumenta la
velocidad
for(valor = 0; valor <=255; valor+=5) {
analogWrite(motorRetroceso, valor);
delay(30);
}
for(valor = 255; valor >= 0; valor-=5) { // Motor hacia atrs y disminuye
la velocidad
analogWrite(motorRetroceso, valor);
delay(30);
}
}
Diagrama esquemtico
Conclusin
Se introdujo el concepto de circuito integrado y especficamente se
aprendi a trabajar con el L293D. Se logr controlar la velocidad y el
sentido de giro del motor utilizado y de manera general todo se
comprob satisfactoriamente segn las hiptesis de los integrantes del
equipo y los datos planteados.
BIBLIOGRAFA
https://ardubasic.wordpress.com/2014/05/23/control-de-motores-de-cccon-l293d/
https://alonsodub.wordpress.com/2012/06/08/control-de-motor-ccvelocidad-y-direccion/