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.
119 questions
-2
votes
1
answer
72
views
NEMA 17 with A4988 Runs Smoothly During Code Upload but Moves Erratically Afterward [closed]
Problem Description:
I'm controlling two NEMA 17 stepper motors with A4988 drivers and an Arduino Uno. I'm experiencing a peculiar issue where one motor runs perfectly smooth during code upload but ...
0
votes
1
answer
95
views
Why does my stepper motor have jerky motion with DRV8825 microstepping?
I’m using a NEMA 17 stepper motor (model 42SHDC3030Z-23WB-1 / 17HS4401S) with a DRV8825 driver with small radiator and an ESP32. Even when set to 1/16 microstepping, the motor motion is very jerky.
It ...
1
vote
2
answers
154
views
Controlling a stepper using PIR and Hall effect sensor
I'm trying to make a box that revolves around a pivot point using a NEMA17 stepper motor. The idea is straightforward: US1881 Hall effect sensor will change state based on magnets on the base of the ...
1
vote
1
answer
128
views
How to run G code with SoftwareSerial?
I'm trying to build my own CNC machine. Since I need to control a large number of motors at the same time, I want to control it via an Arduino master and several slaves with CNC shields. Now I'm ...
0
votes
1
answer
158
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 ...
1
vote
2
answers
192
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 ...
1
vote
0
answers
101
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 ...
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, ...
0
votes
1
answer
98
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 ...
0
votes
1
answer
147
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 ...
0
votes
0
answers
143
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) ...
-1
votes
1
answer
1k
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 ...
0
votes
2
answers
1k
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 ...
2
votes
2
answers
502
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
0
answers
335
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) ...
0
votes
1
answer
678
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 ...
1
vote
2
answers
1k
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 ...
1
vote
0
answers
253
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-...
-1
votes
1
answer
502
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 ...
1
vote
0
answers
50
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 ...
0
votes
1
answer
145
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 ...
0
votes
1
answer
288
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 - ...
0
votes
1
answer
610
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 ...
1
vote
1
answer
105
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 ...
0
votes
1
answer
644
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 ...
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() ...
0
votes
1
answer
934
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 ...
1
vote
2
answers
225
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 ...
2
votes
0
answers
149
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 ...
1
vote
1
answer
549
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 ...
1
vote
2
answers
807
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 ...
1
vote
0
answers
522
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....
1
vote
2
answers
472
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 ...
5
votes
1
answer
196
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 ...
1
vote
0
answers
707
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 ...
1
vote
1
answer
2k
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 ...
2
votes
1
answer
904
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) ...
2
votes
0
answers
852
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(...
1
vote
1
answer
293
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 ...
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 ...
1
vote
0
answers
370
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 ...
1
vote
0
answers
61
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 ...
1
vote
0
answers
199
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 ...
1
vote
1
answer
850
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 ...
0
votes
1
answer
200
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 ...
1
vote
0
answers
287
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 ...
1
vote
1
answer
159
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 ...
1
vote
1
answer
3k
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 ...
1
vote
1
answer
509
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 ...
2
votes
1
answer
602
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 ...