ENGLISH:
The motor shield l293d can run 4 DC-motors in two ways: "FORWARD" or "BACKWARD".
l293d motor shield image:
the M1(see the image above) port of my shield can run a dc motor in only one way. measuring on my multimeter the voltage used by shield, i can measure a negative voltage when he run.
Code:
#include <AFMotor.h>
AF_DCMotor motor1(1);
void setup() {
motor1.setSpeed(125);
}
void loop() {
motor1.run(FORWARD);
delay(2000);
motor1.run(RELEASE);
delay(1000);
motor1.run(BACKWARD);
delay(2000);
motor1.run(RELEASE);
delay(1000);
}
In my case, the dc motor can run only in "BACKWARD" way.
Please show me how to fix this problem.
PORTUGUÊS(PTBR):
O motor shield l293d consegue usar 4 motores CC(DC, mesma coisa) em dois sentidos: horário e anti-horário.
imagem do shield:
(veja a imagem acima, na parte em inglês)
No meu shield, a porta M1 acionar um motor CC/DC apenas no sentido anti-horário. Medindo com um multímetro a voltagem da porta M1, consegue medir uma voltagem negativa quando ele começava a rodar no sentido anti-horário.
Código Fonte:
(Veja o código acima, na parte em inglês.)
Por favor, mostrem-me como consertar este problema.