[closed, it was a hardware problem] About Shield motor driver l239d

Hi, I will go straight into the problem
In the image I connected these to M1


and used this code to test

#include <AFMotor.h>
AF_DCMotor motor(1);
void setup() {
    Serial.begin(9600); 
    motor.setSpeed(255); 
} 
void loop() {
    motor.run(FORWARD);
    delay(1000); 
    motor.run(BACKWARD);
    delay(1000);
    motor.run(RELEASE);
    delay(1000);
}

but the motor does not seem to moving, I don't know where did I do wrong. Did I do something on the code? or was the wiring bad? Any help is appreciated thanks
(the DC did run if I connect one of the wire to the GND between the Ms but can't seem to control it, removing power jumper doesn't change any either. Servos and other components seems to work normally. M2/3/4 doesn't work too)
Here's another picture with power connected

Please post schematics showing pin labels and power supply. Hand drawn by pen and paper is fine.

1 Like

here, basically I'm trying to do like this


and this is the clearer image of the component I'm using
image

Please read reply #2 again. Here's some additional help: How to get the best out of this forum - Using Arduino / IDE 1.x - Arduino Forum

alright I will add asap

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.