Questions tagged [stepper]
Questions about programming and controlling stepper motors.
202 questions
7
votes
1
answer
25k
views
How to control a Nema 17 stepper motor with an arduino? (too much current / heat)
I am trying to control a Nema 17 motor with a L298n dual bridge and an Arduino Mega.
My wiring is from this Instructable:
http://www.instructables.com/id/Control-DC-and-stepper-motors-with-L298N-...
4
votes
1
answer
10k
views
Maximum Delay time
I am designing a driver for a Bipolar stepper motor using Arduino Mega 2560 and DRV8825 Stepper driver.
In my application, a stepper motor (Nema 24) will run for 5 minutes and stop for 2 minutes. I ...
3
votes
3
answers
938
views
Ensuring specific frequency at specific time?
I, at the moment am trying to come up with a simple way where I can program an Arduino to provide a step signal with a given frequency, at a specific time.
The frequency has to be ramped up, and ...
3
votes
1
answer
3k
views
Stepper Motor is not working with A4988 board
So, I have been following this tutorial on how to run a stepper motor with Arduino using an A4988 Stepper Driver. This is the tutorial: How To Control a Stepper Motor with A4988 Driver and Arduino. I ...
3
votes
1
answer
1k
views
How to change the direction of a stepper motor using the AccelStepper library?
I'm using a Nema 17 stepper motor (200 steps) and a DRV8825 motor driver. This is the configuration I am using:
I am using a 9 V power supply. The dirPin is connected to pin 3 on the Arduino board, ...
3
votes
1
answer
6k
views
Send stepper to position and back AccelStepper
At the moment I am working on a code that should send a plateau to a certain position and back. The plateau is being moved by the stepper, in my case a Nema 17 with a Polulu DRV8825 driver. Everything ...
2
votes
2
answers
667
views
How do I find the whole number (n) that when multiplied by (m) will be closest to (x)? [closed]
I've designed an apparatus that uses stepper motors, and they are linked together so that when armature A turns, it consequently moves armature B by a ratio of 1/4. In order to keep armature B in the ...
2
votes
2
answers
501
views
TMC2208 Stepper Motor does not change its RPM linearly
This is my first project working with stepper motors, so I may have a bit of a shaky understanding of the electronic side of the project. I'm trying to create a simple device with 4 buttons connected ...
2
votes
1
answer
4k
views
How to pull a pin low?
On the instructions for this motor driver, it says that motors can be put to sleep by "pulling a pin low".
SLP - Logic Input. When pulled LOW, outputs are disabled and power consumption is minimized....
2
votes
1
answer
147
views
Arduino doesnt seem to be reading my pin states
I seem to have an unbelievable thing. My code was working perfectly on one arduino, when i upload the same sketch to another one, it is behaving strangely, it seems like it is not reading any of my ...
2
votes
1
answer
1k
views
Problem in reading data from encoder with arduino
Hello guys I am trying to count the number of the steps of a stepper motor with an encoder (Avago heds).
I found an Arduino sketch to count that steps and display them on the console and I found ...
2
votes
2
answers
2k
views
Make a stepper motor move
I am at the moment trying to make a bipolar stepper motor move.
I am interfacing it through a control board, which takes the input Step, Dir, En, and 5V.
I am providing those input signal via an ...
2
votes
1
answer
721
views
Can AccelStepper accelerate non-linearly?
I am running a Nema 23 motor with an Arduino Uno and a microstepper driver. I am making a torsional vibration demo, which uses a series of springs connected to the motor driveshaft to spin gears. ...
2
votes
1
answer
2k
views
Use the stepper motor library with the A4988 driver?
I want to use this library: https://www.arduino.cc/en/Reference/Stepper
#include <Stepper.h>
The wiring for my driver is shown here:
https://www.pololu.com/product/1182
From the library, I'm ...
2
votes
1
answer
826
views
How to drive a stepper motor, by having it go even steps forward and odd steps back? [closed]
I have a question about driving a stepper motor back and forward. Basically I want it to do a total of 24 steps (12 forward and 12 back) but I don't want to repeat the same steps when coming back.
So ...
2
votes
2
answers
9k
views
Stepper Motor with Limit Switches
I have the code below which is my attempt to control a stepper motor direction that moves a carriage to the right and left. In addition there are limits at each end of the travel that when activated ...
2
votes
2
answers
366
views
motor does not move without Serial.println
having strange behavior with motor shield and steppers. when i'm trying to make onestep, motor just makes some high-frequent noise, but when i add Serial.println for debugging, it moves as intended.
...
2
votes
1
answer
3k
views
How to count steps of a stepper motor with AccelStepper?
I want to turn on my motor and count how many total rounds it has until my limit switch is switched on. After that, I want to count rounds counterclockwise until another limit switch is pushed. For ...
2
votes
0
answers
1k
views
How to let Stepper motor spin constantly?
When i run the code on the Arduino the Stepper only does a small turn every cycle. How can i make that constantly turning?
#include <Servo.h>
Servo myservo; // create servo object to control ...
2
votes
0
answers
66
views
Arduino Uno - Stepper motor not working with button
I am completely new to Arduino, and all sorts of hardware and software. I have a stepper motor, which I want to rotate by a number of rotations when I press a button, and then go backwards by a number ...
2
votes
0
answers
264
views
Stepper motor just oscillates with arduino and L293D
I am trying to control my stepper motor using arduino duemilanove, with L293D as H-bridge. I use a NEMA 17, stepper motor 42BYGH-036B I have used both the default example program from arduino IDE, and ...
2
votes
1
answer
781
views
How fast can I drive a stepper motor? [closed]
I have a 28BYJ 48, 5V stepper motor. After some trial and error I got it working with the all the sample examples in Arduino IDE.
However when I increase the speed of the motor using setSpeed() ...
2
votes
0
answers
293
views
Interfacing a stepper motor with arduino
I am having issues with interfacing my stepper motor, connected to a control board being this one
Due to some reason I am not able to move it, unless I remove the enable signal. I can change the ...
2
votes
2
answers
2k
views
Stepper motor clock [closed]
I am currently using an Adafruit motor shield on my arduino uno for the first time.
The idea is turning the stepper motor with basicly 1RPM. But i just cant do it.
This is the first time working with ...
1
vote
3
answers
1k
views
How to rewrite code in millis?
I am currently working on a project that makes a plateua move back and forth using a stepper motor. On this plateau I have attached LEDs that create patterns.
However, the plateau should be moving ...