You are here:>>Pinouts for L298 Arduino Shield
Pinouts for L298 Arduino Shield 2015-11-26T17:31:18+00:00

Home Forums Advice Pinouts for L298 Arduino Shield

Tagged: 

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • John
    Post count: 0

    I purchase a Drok L298 H-Bridge Shield, but I am having difficulty identify the Arduino pin to L298 functionality. I downloaded the documentation and reviewed the Schematic, but I don’t see the mapping to the Arduino pins. Do you have any documentation or example INO that demonstrates the functionality?

    Drok
    Keymaster
    Post count: 2971

    Dear John,
    Did you buy this L298 H-Bridge Shield?
    If yes, download code to the Arduino control board, then plug in L298P shield, then connect to an external power supply, then it can drive you motor.

    If not, please tell us your order number or give us the product link.

    Best regards,
    DROK

    Michael Kosinski
    Post count: 0

    I would be interested in this information too. I purchased the L298P H-Bridge Shield but the documentation that was included was faded so I could not identify the Arduino Pins that control the motor terminals. An example arduino ino file would help.

    Drok
    Keymaster
    Post count: 2971

    Hi Michael,
    Did you buy the Arduino control board, If yes, please plug into L298P shield, then connect to an external power supply, then it can drive the motor.

    Sorry that system error and I cannot attach the file. could you please give us your mail then we will send it to you directly.

    Best regards,
    DROK

    John
    Post count: 0

    Yes, I purchased this board:
    http://www.amazon.com/gp/product/B00ZOYX3XS/ref=as_li_tl?keywords=L298P+motor+driver

    I do have an Arduino and have it connected, but need to understand the pinouts for the Arduino to the Motor Driver interface.

    Example:
    Arduino Pin 13 -> Motor Driver Enable 1
    Arduino Pin 12 -> Motor Driver Enable 2

    and so on…

    If you can provide a link to Arduino code that provides that old example, that would be great.

    The manual I found for the L298 only provide C and not Arduino INOs.

    Thanks in advance,
    John

    Drok
    Keymaster
    Post count: 2971

    Dear John and Michael,

    Below is the PDF file link for L298P Motor Shield, you can test example there.

    http://www.droking.com/wp-content/uploads/2015/12/091035_L298P-Motor-Shield-Instruction.pdf

    Then if you still have any other questions, don’t hesitate to write back to us.

    Best regards,
    DROK

    John
    Post count: 0

    Thank you. This is exactly what I was looking for.

    Regards

    Drok
    Keymaster
    Post count: 2971

    You are welcome.

    Best regards,
    DROK

    Tyler
    Post count: 0

    Drok,

    Do you have a sample code for 1 stepper motor instead of 2 dc motors?

    Drok
    Keymaster
    Post count: 2971

    Hello Tyler,
    Thank you for writing in.
    We are sorry that we do not have a sample code for 1 stepper motor.
    Beg your understanding and if you have any questions, please feel free to contact us.
    Best regards

    Michael
    Post count: 0

    I recently puchased the L298P shield and want to incorporate it in to a robot build that includes a bluetooth transiever a pixycam tracking camera and 2 dc motors. Your pdf file pinout does not show me all the pinouts on the board. Do you have a more detailed schematic. And is there any library for this shield?

    Drok
    Keymaster
    Post count: 2971

    Hello Michael,
    Thank you for purchasing.
    Here is the graphic illustration of the pinouts of the product.L298P Motor Shield Pinout Illustration
    Hope this will be helpful to you.
    Best regards

    Michael
    Post count: 0

    Finally got code uploaded and rightside is not working. I currently have PWML going to pin 10, PWMR going to pin 11, DIR_L going to pi 12 and DIR_R going to pin 13. I did flip thes to see if it was a coding problem but no joy. The right side leds for forward and reverse do not work also pluged up a motor and it doesnt work on right side (motor A) either.

    Drok
    Keymaster
    Post count: 2971

    Hello Michael,
    Thank you for your reply.
    Pin 12 is for setting the forward of high level motor and the reverse of low level motor of Motor A; Pin13 is for setting the forward of high level motor and the reverse of low level motor of Motor B. E1 is connected to Pin 10 and E2 is connected to Pin11, which is for PMW, can control the speed of Motor A and Motor B.
    Here is the Program code for you:
    int E1 = 10;
    int M1 = 12;
    int E2 =11;
    int M2 = 13;

    void setup()
    {
    pinMode(M1, OUTPUT);
    pinMode(M2, OUTPUT);
    }

    void loop()
    {
    { int value;
    for(value = 0 ; value <= 255; value+=5) { digitalWrite(M1,HIGH); digitalWrite(M2, HIGH); analogWrite(E1, value); //PWM调速 analogWrite(E2, value); //PWM调速 delay(30); } delay(1000);} { int value; for(value = 0 ; value <= 255; value+=5) { digitalWrite(M1,LOW); digitalWrite(M2, LOW); analogWrite(E1, value); //PWM调速 analogWrite(E2, value); //PWM调速 delay(30); } delay(1000);} } Hope this can help you. Best regards

    JP
    Post count: 0

    Tyler, have you, or anyone else, been able to find code for a stepper motor instead of 2 dc motors? I have also purchased this product, but can’t find the right code.

Viewing 15 posts - 1 through 15 (of 17 total)
Reply To: Pinouts for L298 Arduino Shield
Your information: