Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [stepper-motor]

A stepper motor or step motor or stepping motor is a brushless DC electric motor that divides a full rotation into a number of equal steps. The motor's position can then be commanded to move and hold at one of these steps without any position sensor for feedback (an open-loop controller), as long as the motor is carefully sized to the application in respect to torque and speed.

Filter by
Sorted by
Tagged with
0 votes
1 answer
40 views

How to control a stepper motor using an absolute position sensor which has an error band?

I am using Feather M4 express development board with DC Motor + Stepper FeatherWing and Ethernet FeatherWing stacked on it. The idea is to read the target position from the UDP from 0 t0 360 degrees ...
dreamcoder's user avatar
0 votes
0 answers
44 views

Absolute encoder reading with stepper motor

I am using Feather M4 express development board with DC Motor + Stepper FeatherWing and Ethernet FeatherWing stacked on it. The idea is to control the steps of the stepper motor by reading the encoder ...
dreamcoder's user avatar
0 votes
0 answers
50 views

Controlling a NEMA 17 with PID on TB6600, motor too slow

I'm writing there as I am kinda desperate to find a solution after many trials, back and forth with online solutions and ChatGPT, so maybe someone here can help. My project is quite simple: I'm trying ...
ColChope's user avatar
1 vote
2 answers
109 views

Uneven stepper motor acceleration / code execution

I have created a library to control a stepper motor. I have a controller that accepts a pull signal, and then executes a step, so my code needs to generate a state change in order to make the ...
Wojciech Kosela's user avatar
1 vote
0 answers
47 views

Driving stepper to follow sequential positions

I was exploring the stepper motor library AccelStepper and using it because of it's easy interface to control multiple stepper motors simultaneously. Recently I got a problem. I needed a stepper motor ...
winner's user avatar
  • 11
2 votes
1 answer
239 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, ...
Michael Junior's user avatar
0 votes
1 answer
76 views

Give zero volt to specific servo motors in a certain time

I have a robot that uses 4 mechanical arms. Each mechanical arm has 4 "READYTOSKY 30kg" servo motors on them. At some point, I need to use the absolute maximum force of only two mechanical ...
Noy's user avatar
  • 11
0 votes
1 answer
64 views

Confusing stepper reaction to increase in delayMicroseconds()

I have been following this tutorial using the same hardware, TB6600 driver, 42HS48-1704A (yes I think its supposed to be 42hs40 but thats not what it says the sticker) stepper but am controlling via a ...
DrBwts's user avatar
  • 161
0 votes
0 answers
79 views

Using an A4988 stepper motor driver for a low current (15mA) stepper motor

I have a BKA30DR5 stepper motor that operates at 15mA. I want to drive it using an A4988 stepper motor module. I've previously driven stepper motors that use much higher currents (around 1A) ...
Bas's user avatar
  • 109
-1 votes
1 answer
732 views

AccelStepper.h - How can I quickly increase the speed of a NEMA 17 motor?

I'm pretty new to Arduino. I am trying to build a self-balancing robot. I am using A4988 drivers, an ESP32 microcontroller, NEMA 17 motors, and a 6050 MPU. The problem is that, although the speed ...
camu's user avatar
  • 1
0 votes
2 answers
624 views

Unable to control motor with ESP32 using logic level shifter

I am using an ESP32 a TB6600 micro stepper, and a Nema 23 stepper motor, I am trying to control the motor with the esp32 but the TB6600 requires a 5v signal, I tried to fix this by using a logic level ...
warherolion's user avatar
2 votes
2 answers
340 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 ...
jonathan's user avatar
2 votes
0 answers
204 views

Controlling Stepper motor using RC receiver

I am using Arduino UNO with a DM556 Micro step driver to control the Stepper motor. PUL+ --> pin 3 DIR+ --> pin 5 RC receiver --> pin 2 Using CH2 of receiver With out the RC receiver (R9SX) ...
MJay's user avatar
  • 21
0 votes
1 answer
524 views

I am attempting to control two stepper motors by using serial input. My code works, however I have to press the new directional command multiple times

I am using two 28BYJ-48 stepper motors with two motor drivers that they come with. (I don't know the name of them.) Here is my code: /* * Code to control two stepper motors simultaneously using the ...
Gabriel Adams's user avatar
1 vote
2 answers
912 views

Stepper motor micros (millis) non-blocking delay simple example?

I am trying to get a simple non-blocking replacement for: digitalWrite(stepPinX, HIGH); delayMicroseconds(500); digitalWrite(stepPinX, LOW); delayMicroseconds(500); This is what I tried, and the ...
adamaero's user avatar
  • 198
1 vote
0 answers
139 views

Stepper motor not working with A4988 driver

I have been trying to run stepper motor via Arduino Uno and A4988 motor driver via this tutorial: https://howtomechatronics.com/tutorials/arduino/how-to-control-stepper-motor-with-a4988-driver-and-...
user89175's user avatar
-1 votes
1 answer
362 views

How many stepper motors can you run on one Arduino Uno? Ideas on how to run 9?

I am in middle school and new to Arduino. I just learned to set up and code a stepper motor on my Arduino Uno from watching YouTube videos. I want to set up 9 stepper motors to all run at the same ...
JDRNeedsHelp's user avatar
1 vote
0 answers
42 views

Trying to understand stepper behavior, and I have some specific questions

I'm using a repurposed MKS Gen L V1.0 board (arduino MEGA + RAMPS, basically) to control a pair of IR sensors and a NEMA 23 stepper with TB6600 driver. The application is simple: raise and lower the ...
Bill in Kansas City's user avatar
0 votes
1 answer
109 views

Blink LED without delay with stepper motor

Based on a previous question I modified the script to use blink without delay. Unfortunately, it does not work, any idea why? I am using SparkFun RedBoard Plus, Qwiic LED Stick - APA102C, Adafruit ...
hsi100 's user avatar
0 votes
1 answer
205 views

Stepper motor and blink LED

I connected a LED stick to a stepper motor. Is it possible to blink the LED without stopping the motor rotation? I am using SparkFun RedBoard Plus, Qwiic LED Stick - APA102C, Adafruit Stepper motor - ...
hsi100 's user avatar
0 votes
1 answer
451 views

ESP8266 web server not responding when running a http request function

I am trying to build something that can control a stepper motor based on weather information from openweathermap. I've set up a ESP8266 webserver to manually control motor movement with buttons and I ...
user2201584's user avatar
1 vote
1 answer
73 views

Please help me navigate the stepper motor object definition in the documentation

I am trying to use the stepper library and the stepper object is documented like this This function creates a new instance of the Stepper class that represents a particular stepper motor attached to ...
Confused individual's user avatar
0 votes
1 answer
386 views

Using a 5 pin button with Arduino Correctly

I am trying to build a simple motor test sketch, currently, to test a NEMA 23 stepper motor and the DM542T stepper driver. Here is the code, and I am having trouble figuring out how to properly wire ...
dinotom's user avatar
  • 360
1 vote
0 answers
1k views

AccelStepper motor current position

When using the AccelStepper library to control the motor, I need the current position of the motor at any given time when in motion. However, the functions in this library blocks so currentPosition() ...
thediyer's user avatar
0 votes
1 answer
776 views

arduino 28BYJ-48 stepper only whining, not rotating

Edit, this question has been answered in the comments by chrisl, and also after retesting the code with delay() which showed I forgot to update my lastupdate variable(eerst), I have answered it in the ...
TeD van Loon's user avatar
1 vote
2 answers
181 views

I am trying to automate my sun shade on my back porch with a Nema17 Stepper motor

I am very new to Arduino (and fritzing so please excuse my poor layout). I am trying to automate my patio sun shade, eventually it will incorporate a photocell but I wanted a proof of concept first ...
Balthozar's user avatar
2 votes
0 answers
121 views

AccelStepper library - motor ticks when turning

When I'm using the AccelStepper library to control this closed loop stepper motor, the motor ticks when turning, maybe ~5 ticks/sec. Depending on the speed of the motor the ticks become more (at ...
nightman's user avatar
0 votes
1 answer
500 views

How to sue Arduino Nano to control Stepper motor with Firmata

I have a stepper motor and at present it is controlled by a sketch all working fine. I need now to add it to a Win32 app to control it in circuit with existing Servo Motor. The servo Motor is working ...
user3884423's user avatar
1 vote
2 answers
595 views

Digispark Rev.3 Kickstarter ATTiny85 using all 6 pins

i have some trouble to use i2c and the other pins at the same time. im tring to control the attiny over i2c with a arduino and the attiny should control a 28byj-48 stepmotor. i started to setup the ...
Kim's user avatar
  • 11
1 vote
0 answers
469 views

NEMA 17 Stepper motor + Arduino Mega + driver doesn't move using GRBL and UGS

3x NEMA 17 Stepper Motors: https://www.amazon.com/gp/product/B00PNEQKC0/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1 3x DM542T Stepper Driver: https://www.omc-stepperonline.com/download/DM542T....
user77595's user avatar
1 vote
2 answers
373 views

Regulate Water Pumps flow by DC Stepper Motor Driver

I'm an Arduino beginner. I've got 2 x 12V DC water pumps https://www.ebay.co.uk/itm/224461221015 plus 12V, 2A AC/DC adapter to feed them. I would like to regulate the speed (flow) of the pumps ...
ondrej's user avatar
  • 23
5 votes
1 answer
148 views

Wirelessly (but fast) transfer STEP and DIR output from Arduino to stepper driver

Very short version: Looking for a way to wirelessly get STEP and DIR signals (only those two signals) from an Arduino to a DRV8825 stepper driver about a meter away: Arduino -> STEP and DIR IO pins ...
Jasper's user avatar
  • 151
1 vote
0 answers
484 views

CD rom stepper getting warm

I'm trying to run a SPS-15RF stepper motor from an old cd rom drive. I'm using a CNC shield and a4988 driver with a 6v power supply. The motion is smooth and fine. I know it has 18 pulse/revolution ...
2012User's user avatar
  • 149
1 vote
1 answer
1k views

AccelStepper Library Help - Simultaneous Motor Driving

I’m working on a 4 wheeled robot driven with stepper motors. I have a Raspberry Pi that sends a random (based on input image) pulse count to the Arduino board serially and then steps that amount. I’m ...
PlasticBlaze's user avatar
2 votes
1 answer
675 views

How to calculate required amperage of multiple motors?

I a very simple question about calculating the amperage I need to run 5 stepper motors from my Arduino Uno. If I have 5 28BYJ-48 stepper motors(which are 5V and are said to require about 240mA each) ...
KidWithComputer's user avatar
2 votes
0 answers
802 views

Help needed with driving multiple stepper motors on arduino UNO

I am brand new to Arduino but have good experience with Raspberry Pi's and Microchips. My problem is that I am having trouble driving many stepper motors at once. I am using the AccelStepper library(...
KidWithComputer's user avatar
1 vote
1 answer
230 views

Why does my stepper motor run when I open the Serial port?

For some reason my motor moves a certain amount every time I open the serial port without giving it any other instructions. It will move further by the same amount if I close and reopen the serial ...
SPatel's user avatar
  • 13
2 votes
0 answers
974 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 ...
Jonasoos's user avatar
1 vote
0 answers
319 views

Moving and Stopping Stepping motor without using delay

I'm using a stepper motor with an external limit switch (so when power is on the motor will know where to start from) with an L6470 motor drive. What I want to do here is when power is ON → turn ...
Claire's user avatar
  • 11
1 vote
0 answers
50 views

Need help with independent speed control on multiple steppers

I am a NOOB. I admit to a huge lack of understanding of programming. I just need my machine to work. I cannot wrap my head around getting independent speed control of 2 steppers since it seems that ...
robertbaker's user avatar
1 vote
0 answers
137 views

Stepper Motor Inconsistent Jittering

I am trying to run a stepper motor using an Arduino stepper motor shield like the Adafruit V1 motor shield. In my code I am just trying to get the motor to rotate forwards and backwards. When I first ...
NinjaOtt3r's user avatar
1 vote
1 answer
727 views

Stepper motor won't change directions!

I am driving a bipolar stepper motor with an a4988 driver using the AccelStepper library. My goal is to press a button and the motor moves CW, then another button for CCW. I have looked at another ...
Epsicro N's user avatar
0 votes
1 answer
148 views

What motor to move a small telescope?

i just bought a hobby telescope, it works well for being nothing much than a toy, the very problem is that the gesrs that should keep it stable are all plastic and very hard to tighten while keeping ...
Strae's user avatar
  • 101
1 vote
0 answers
257 views

Input from serial monitor to control stepper direction coding problem

I am attempting to create a simple code that will home the motor then wait for input for direction. I have the homing function working, however the loop that reads the data from the serial monitor ...
Anthony's user avatar
  • 11
1 vote
1 answer
129 views

Ok to Connect 2.9V Stepper to 3.3V pin?

So I have a stepper motor that's rated for 2.9V and 0.8A and I connected it to a L9110 Driver and I wanted to drive it with my arduino. But I don't know how to drive it safely without damaging the ...
Mohamed Technology's user avatar
1 vote
1 answer
2k views

End stops for stepper motor

I need to add some end stops to this stepper motor code. I'm using one axis of a joystick to control a carriage that goes back and forth on a long screw. I have hall switches for both ends, I just ...
edrummer's user avatar
1 vote
1 answer
333 views

Using same GPIO pins to control multiple stepper drives

I have an Arduino Mega 2560 and I want to control four 23-frame steppers same speed/direction for a conveyor application. I want these to be synchronized exactly as possible for smooth operation. Can ...
Robert Born's user avatar
2 votes
1 answer
489 views

Unsure if my NEMA 14 stepper motor wiring is correct

So I'm pretty brand new to Arduino's in general so I do apologize if its a simple mistake. But basically I'm trying to use the <Stepper.h> library to control my NEMA 14 motor on an arduino with ...
Geo's user avatar
  • 21
0 votes
1 answer
137 views

How to put together an HKT30 optical rotary encoder?

I'm working on a project involving stepper motors. It is important for this project to track the position of these motors, so I decided to buy an optical rotary encoder, specifically an HKT30(HKT3005-...
jimmyfinestein's user avatar
1 vote
1 answer
124 views

Is this a feasible circuit?

The last couple months I’ve been working on this project, I’m nearing its end and I’m getting really excited! However, this is still pretty new to me and so I was hoping my electrical diagram/...
dhw123's user avatar
  • 11