Questions tagged [stepper]

Questions about programming and controlling stepper motors.

A Stepper Motor allows the user to precisely control the angle of rotation of a shaft. Stepper motors are used in a number of applications such as robotics, scanners, printers, 3D-Printers, and Radio Controlled vehicles.

203 questions
7
votes
1 answer

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-Dual-Moto/?ALLSTEPS When I connect it to my laboratory…
ce_guy
  • 73
  • 1
  • 1
  • 5
5
votes
2 answers

Can an L293D motor driver shield do microstepping?

I bought a L293D motor driver shield and have used it with a pre-made sketch for driving a pair of stepper motors, but I'm not familiar with its capabilities. The sketch I've used so far doesn't use microstepping when it's set up for this shield…
Marsh
  • 288
  • 2
  • 5
  • 13
4
votes
1 answer

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 have doubts about is what is the maximum time an…
CNA
  • 141
  • 1
  • 4
4
votes
1 answer

Arduino - stepper motor wrong steps number

I just bought a new stepper motor (400 steps for revolution, 0.9°/step) and I would like make a turn of 180° by 200 steps, but it doesn't work as expected. It looks like the motor needs only 110 steps to make a turn of 180° and I don't know the…
3
votes
1 answer

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, and my stepPin to pin 2. What I'm trying to do is…
3
votes
1 answer

How to control speed of 28BYJ-48 stepper motor without using library?

Iam using 28byj-48 stepper motor and I want to know how to control its speed without using any library. I got to know that we need to add delays in between steps but I don't know how much delay I need to add and how delay effects the rpm. It is very…
3
votes
1 answer

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 have connected the wires according to this…
Gaurav Mall
  • 134
  • 1
  • 8
3
votes
3 answers

Arduino Uno + MSD-11-EM stepdriver + NEMA 17

I am working on Arduino code for stepper motor rotations control. I want to rotate a stepper for only 4 rotations. The code is working fine but that will run only once as I have put that in setup(). I want to know if there will be any reverse…
Sonali_B
  • 443
  • 4
  • 19
3
votes
1 answer

How can I use stepper for specific degree?

I use Arduino and I'm beginner. I use the code below, but I don't understand what stepper.step(num) and STEPS in Stepper stepper(STEPS, 2,3,4,5) are, and I want to use stepper for specific degree and I don't know what I can do. for example if I want…
Fazeleh
  • 195
  • 1
  • 3
  • 10
3
votes
3 answers

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 within a time duration of 10 seconds shall the…
Carlton Banks
  • 227
  • 3
  • 11
3
votes
1 answer

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 is hooked up correctly. My goal is to press '4'…
user15514
  • 31
  • 1
  • 2
3
votes
1 answer

Weird stepper motor behaviour on RAMPS in arduino

Following this tutorial: http://www.instructables.com/id/Complete-newbie-step-by-step-3D-printer-with-all-p/?ALLSTEPS I connected DVD stepper motor to RAMPS 1.4 on arduino with Marlin software with this settings: //#define…
user15365
  • 31
  • 1
2
votes
1 answer

Stepper control using Pot over bluetooth (HC-05)

I have intermediate-level Arduino experience but it's been a few years... and, I would like to be more confident in a plan before ordering all the parts. So, basically, this is theoretical. The design cannot be simulated and I have yet to do the…
T. Paul
  • 29
  • 3
2
votes
2 answers

How do I find the whole number (n) that when multiplied by (m) will be closest to (x)?

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 same position, for every 4 steps stepper A takes,…
AJ_Smoothie
  • 504
  • 4
  • 13
2
votes
2 answers

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 to a stepper motor driver/NEMA 17 motor, with the…
jonathan
  • 86
  • 7
1
2 3
13 14