Tuesday, February 25, 2014

Steps to make the Arduino Motor Shield r3 better.


I bought a motor shield recently from a third distributor, but found it really useless.

1.There is no example in Arduino IDE.
  Stepper examples are not for this shield.
2.Bad design.
  PCB design has been changed to be easy for DC motors, but very complex for step motor. But the original L298P design is easy for both of them!


I made several changes to the Motor Shield when I found the terrible design of the official Arduino Motor Shield, w

Here are the changes:   according to the sch.pdf
1.Remove the chip IC2, which is CD4077D  in the schematic.
2.Connect pin_2 and pin_3, which is called BRAKER-A in the schematic.
3.Connect pin_11 and pin_13, which is called BRAKER-B in the schematic.


4.Re-connect the PWMA to PIN10 of Arduino Board. on the back of the shield board.
   cut the existing line (PWMA with pin3)  with a knife.
   re-connect to pin10.
 It is OK if you dont want to do this step.

Then, the PIN label can be changed as :

I am using IN1,IN2,IN3,IN4, ENA, and ENB which are the original names of the chip L298P.



Finally, if you want to drive a step-motor, the official arduino example can be used with two little changes.

Firstly, create a stepper with new pin IDs (12,9,13,8).
then put the ENA and ENB at HIGH status in the setup() function.



That's all. You can compile and upload to the UNO.




No comments:

Post a Comment