• @Ducky Thank You for you information and reply.
    @Gordon I found my problem but still have one issue for me.

    First: in bread board, power circuit(+,-)is separated at half point so i need to make the far right two wire near.

    The unsolved issue is i can't solve when i using [C6,C7,C8,C9] or [C6,C7,C4,C5]
    the motor is not work properly.
    Example if i using [C6,C7,C8,C9] and code like below . the motor should be stop,
    but one of the motor is still working

    var outputs = [C6,C7,C4,C5]; 
    digitalWrite(outputs[0],0); // output 1
    digitalWrite(outputs[1],0); // output 2
    digitalWrite(outputs[2],0); // output 3
    digitalWrite(outputs[3],0); // output 4
    

    I need to code like below to stop both of the motor

    var outputs = [C6,C7,C4,C5]; 
    digitalWrite(outputs[0],0); // output 1
    digitalWrite(outputs[1],0); // output 2
    digitalWrite(outputs[2],0); // output 3
    digitalWrite(outputs[3],1); // output 4
    

    I have testing few hours in [C6,C7,C8,C9] and [C6,C7,C4,C5] this two group.
    but the result is same all not work properly for me.

    After few hours I change my Circuit PIN to B3,B4,B5,B6
    Like the Attach Images below

    and code like below is work properly for me

    Both motor is Run

    var outputs = [B3,B4,B5,B6]; 
    digitalWrite(outputs[0],0); // output 1 
    digitalWrite(outputs[1],1); // output 2 
    digitalWrite(outputs[2],0); // output 3 
    digitalWrite(outputs[3],1); // output 4
    

    Both motor is Stop

    var outputs = [B3,B4,B5,B6]; 
    digitalWrite(outputs[0],0); // output 1 
    digitalWrite(outputs[1],0); // output 2 
    digitalWrite(outputs[2],0); // output 3 
    digitalWrite(outputs[3],0; // output 4
    

    I have No Idea why the PIN in the "C" is not working properly but the PIN in "B" is working Good?


    1 Attachment

    • final.jpg
About

Avatar for jacklee @jacklee started