Control of Step motor

Dear Arduino family,

I hope that this post will find you all well.

I am trying to start my path learning and using Arduino taking the opportunity that I am working on a project that includes the use of stepper motor (bipolar) which I would like to do it via Arduino.

I am using Arduino Uno R4 wifi, and from this forum and YouTube I found the example (I think it is from 101) of using the L293D motor driver module which was a bit old - I like the idea of the module being fixed on the Arduino card- but I did not notice that it is no longer supported.

I had the following error (C:\Users\mekhal\Documents\Arduino\libraries\Adafruit-Motor-Shield-library-master/AFMotor.h:156:47: error: 'DC_MOTOR_PWM_RATE' was not declared in this scope
AF_DCMotor(uint8_t motornum, uint8_t freq = DC_MOTOR_PWM_RATE)) and I found that is is not anymore supported this way.

I would like to purchase a new module to use ...the simplest possible and less wire using but I do not have the necessary experience to decide:

H-bridge L298N, two-motor module

DRV8825 driver for stepper motors

A4988 driver for stepper motors

Keyes 2-channel motor driver shield L298P.

Which one should I purchase and can you recommend any tutorial to follow as I would highly appreciate that since most of the topics are old, I really afraid that I will fall for the same issue.

Thanks in advance for you all and for your kind comments.
UNO R4 WiFi Motors, Mechanics, Power and CNC

1 Like

One can find grbl or "CNC shield V3" kits with drivers. This would get you a stack-on-top Arduino shield with minimal extra connections.

The original shield was made by Protoneer before everybody cloned it:

1 Like

To be sure, please post a link to the datasheet for the stepper.
L293 and the other drivers are not compatible.

1 Like

@DaveX Thanks for the feedback well below a link for the blow pdf :
I am using [Stepper motor NEMA 17 17HS3401 0.28Nm]
17HS4401-MotionKing.pdf (94.9 KB)

Which Serie Model? (Left column in the table)

1 Like

@Railroader 3401 it is the one in the second line

Great! That stepper needs a current limiting driver like the ones used on the CNC shield. An L293D would have prodiced bad things....

2 Likes

The DRV8825 current limiting stepper driver will handle that motor. Be sure to set the current limit to 1.3A or less.

2 Likes

Do you have a soldering iron and are you good at soldering?

1 Like

Thanks a lot for the recommendations, and I am so sorry for taking time to reply as I was sick and incapable of checking feedbacks. well I can not solder for some reasons but I used the channel motor driver shield and I tried to program according to my hardware and the code is running and the motor is working fortunately.

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