The Arduino IDE shows no error but my linear stepper motor does not move. I am using Arduino UNO R3 and L298N driver.
This is my stepper motor
This is my arduino code
The Arduino IDE shows no error but my linear stepper motor does not move. I am using Arduino UNO R3 and L298N driver.
This is my stepper motor
This is my arduino code
You can't power a stepper from an Arduino. Use a separate power supply and see if that helps.
More information needed. How are you powering the motor? Just compiling with no errors doesn't mean the code is good! Show the code with proper tags.
The L298N is not a stepper motor driver, it is used for small brushed DC motors.
It is best to avoid any tutorial that suggests otherwise, as you will almost always have trouble replicating what the author did.
Pololu has the best selection of stepper motor drivers, and provides accurate wiring and operating instructions.
According to the data sheet the L298 is a perfectly fine stepper motor driver - last decade. I have used it - it does use the entire chip to drive one stepper motor.
The L298 won't work at all with modern low impedance steppers.
@nxrne please post a link to the product page or data sheet for the stepper actuator, the stepper power supply, and a wiring diagram. Also post your code, using code tags.
Can You post a link to that datasheet? That board was surely state of the art when it was made somewhere in the far past but not at all today.
I did say last decade
. Today there are better choices, as noted in other posts. https://www.sparkfun.com/datasheets/Robotics/L298_H_Bridge.pdf pages 8-9
My first stepper driver was a couple of TTL chips to generate the sequence from step and direction inputs and TIP120s to drive the motor coils - no micro at all. Obviously not the way to go now, unless you were doing a history project
.
I also have some 741s, TIP120s and ULN2003A devices that I will use where appropriate but certainly wouldn't buy any more at this point since there are much better options.
There seems to be a problem with Internet hobby projects that use 10-15 year old parts (often at higher prices than more modern parts).
Most modern steppers are low impedance, and must be driven by a current controlled stepper driver. But nobody knows the specifications of the stepper OP has. Maybe it's a high impedance motor, and can be driven at low speed by a plain/crappy L298 H-bridge.
OP, please post the coil resistance of your stepper motor.
We can't advice you looking by just at a picture without weblink or technical data.
Leo..
Showing no errors only means the compiler can make sense if the syntax you used. It does NOT mean the program will do what you want. This will remain true for as long as the compiler is unable to read your mind and work out what you want to do as opposed to what you told the computer to do through your code.
The L298 was around in the 70s, so it is well over 40 years old by now. It was designed in the days when electronics used mainly 12 or 24V as a power supply. It is useless for controlling stepping motors, if you think the data sheet shows otherwise then you can't understand data sheets.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.