Tagged: 091035
-
AuthorPosts
-
JohnNovember 26, 2015 at 5:31 pmPost 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?
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,
DROKMichael KosinskiNovember 30, 2015 at 5:33 pmPost count: 0Hi 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,
DROKJohnDecember 2, 2015 at 7:23 pmPost count: 0Yes, I purchased this board:
http://www.amazon.com/gp/product/B00ZOYX3XS/ref=as_li_tl?keywords=L298P+motor+driverI 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 2and 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,
JohnDear 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,
DROKJohnDecember 9, 2015 at 1:56 pmPost count: 0TylerMarch 2, 2016 at 6:30 pmPost count: 0MichaelMarch 3, 2016 at 5:13 pmPost count: 0I 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?
MichaelMarch 21, 2016 at 10:30 pmPost count: 0Finally 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.
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 -
AuthorPosts