forked from ros-agriculture/lawn_tractor
-
Notifications
You must be signed in to change notification settings - Fork 1
Controlador del motor de dirección
Juan Eduardo edited this page Sep 2, 2019
·
1 revision
Cytron 30A Bi-directional DC Motor Driver
int DIRPin = 14;
int PWMPin = 20;
void setup() {
pinMode(DIRPin, OUTPUT); // Set digital pin 14 as an output.
}
void loop() {
digitalWrite(DIRPin, HIGH); // Set the rotation direction.
analogWrite(PWMPin, 50); // Turn the motor on at half speed for one second.
delay(1000);
analogWrite(PWMPin, 0); // Turn the motor off for one second.
delay(1000);
digitalWrite(DIRPin, LOW); // Reverse the rotation direction.
analogWrite(PWMPin, 50); // Turn the motor on at half speed for one second.
delay(1000);
analogWrite(PWMPin, 0); // Turn the motor off for one second.
delay(1000);
}
void setup()
{
Serial.begin(38400);
}
int val;
void loop()
{
val = analogRead(21);
Serial.print("analog 0 is: ");
Serial.println(val);
delay(250);
}
Este es un proyecto abierto en todos los sentidos. Usted esta invitado a trabajar con el equipo y solo debe de presentarse en alguna de las siguientes plataformas: Unirse al grupo de Whatsapp, un Whatsapp al coordinador o enviar un correo.
- Inicio.
- Objetivos.
- Plan de trabajo.
-
Proceso.
- Requisitos.
- Materiales.
- Software.
-
Electromecánica.
- GPS.
- Sobre Piksi Multi y RTK.
- Electromecánica.