People who code: we want your input. Take the Survey

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
3
votes
2answers
38 views

AMIS30543 - Library code | Order of pinDirection and pinOut

This piece of code was taken from AMIS30543- Arduino library, void init(uint8_t slaveSelectPin) { ssPin = slaveSelectPin; digitalWrite(ssPin, HIGH); pinMode(ssPin, OUTPUT); } Facts I know ...
3
votes
1answer
209 views

How to slowly change direction of the stepper motor with AccelStepper?

I know that direction can be changed with .setSpeed(speed); ... //check input .setSpeed(-speed); I need to slowly decelerate and accelerate backwards, so I have to use .setAcceleration(200); ... ....
2
votes
1answer
620 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 ...
2
votes
2answers
858 views

How do I make a stepper motor compass cross 360° to 0°?

I am building a wet compass for a flight simulator. I currently have a stepper motor functioning well with the simulator but at the point of crossing 360° to 0° the stepper does a full reverse 360° to ...
2
votes
1answer
496 views

Communicating with Arduino Mega 2560 Serial ports through x2 RS232

I am trying to driver a stepper motor using an Arduino Mega 2560. There will ideally be two RS232 signals being read into / written from the Arduino, each using male USB 3.0 connectors; one of these ...
2
votes
1answer
29 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 ...
2
votes
0answers
39 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(...
2
votes
0answers
48 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
0answers
54 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
0answers
2k views

Stepper Motor button control with A4988 Driver

So I'm quite new to programming and have inevitably worked myself into a corner. What I am trying to accomplish is to allow for a stepper motor, (powered by an A4988 driver) to move with the push of a ...
1
vote
1answer
32 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) ...
1
vote
1answer
72 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
1answer
86 views

2 stepper drivers speed control

I'm using two tb6600 to control two step motors. It's for letter writing cnc machine. Moving single axis works fine. I want to push 2 steppers in the same time along a diagonal. I tried to calculate ...
1
vote
1answer
5k views

Accelstepper run stepper backward

Update: Below I implemented how I understood your suggestions. And it still does only turn in one direction (forward). Curiously if I entered M_DEST in the stepperOneForward() function it turned ...
1
vote
1answer
4k views

Controlling stepper motor direction with push buttons

I'm trying to control the direction of three 28byj-48 stepper motors using the ULN2003 drivers. I am using 6 push buttons, 2 for each motor. what I want is for each motor to be stationary by default ...
1
vote
1answer
38 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
2answers
56 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 ...
1
vote
1answer
31 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 ...
1
vote
1answer
51 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 ...
1
vote
1answer
240 views

Stepper motor slow when reading from MPU 6050 sensor

I'm trying to get an inverted pendulum project working (following the instructions here), and while my stepper motor moves the cart just fine when that's the only code in the Arduino sketch, as soon ...
1
vote
1answer
781 views

Grbl on Arduino Uno (Elegoo) with DM542 + nema24 stepper motor not working

i've already searched and tried for a quite depressing amount of hours, but am not able to solve this problem: The parts are the following: - Elegoo Arduino Uno, on wich i flashed GRBL - 24v Power ...
1
vote
1answer
44 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 ...
1
vote
1answer
51 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 ...
1
vote
1answer
51 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 ...
1
vote
1answer
50 views

Stepper motor not working as expected

Kunal Gupta: Guys plss help me .... I am having issues in using stepper motor I have tried both 28bjy with uln2003 and l293d .. giving it output supply of 5V . Motor is vibrating but its shaft is not ...
1
vote
1answer
56 views

I cannot get my code to play music in a or manner. I have to open one switch then the other. Music should play with either door open

Problem is if I open the necklaceDoor first, nothing happens. I have to open the ringDoor first. That turns everything on. Then with the necklaceDoor open, the stepper motor will turn off and the ...
1
vote
1answer
62 views

How can I increase the responsiveness/speed of my stepper motor?

I'm trying to control the positioning of a NEMA17 bipolar stepper motor by turning the knob of a potentiometer, using an EasyDriver board. The control part is solved. My problem is that if I quickly ...
1
vote
1answer
126 views

Making Serial act as an interrupt

I am trying to make a program to control a stepper motor with serial inputs, and in writing a function to jog it, I am having trouble figuring out how to make a serial input stop the loop that steps ...
1
vote
1answer
616 views

Motor with sinusoidal motion

I need to run a motor to have a harmonic motion with specified amplitude and frequency ( harmonic motion mean that the angular position of the motor is a sine function of the time). I’m Looking to do ...
1
vote
1answer
177 views

Are my stepper motors being burnt out? What is the issue here?

I am building a mini-cnc laser engraver as shown in this intructable and this youtube video. I have built the circuit (minus the jst connector and two male pins at the top left of the board) and have ...
1
vote
2answers
681 views

Why does a delay make my stepper stop? And why does the break command raise an error?

I am using a stepper motor for a project that I want it to stop. I tried for loops, while, and an if statement. All of these were placed inside the void loop, because it raised an error. My code ...
1
vote
0answers
21 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
0answers
43 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
0answers
20 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
0answers
21 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
0answers
20 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
0answers
24 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
2answers
159 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
0answers
123 views

Angle sensor to measure the stepper motor shaft rate of rotation

what Kind of Sensor that i can use to know how much angle stepper Motor shaft has rotated ? Actually,I am thinking to rotate my stepper Motor at 1 rpm and my stepper Motor shaft Diameter is 8mm and ...
1
vote
1answer
208 views

Continuous push button detection in for Stepper control

Currently, I've worked on code for controlling stepper motor with pushbuttons. So, basically, I have to press two push button to run forward and backwards. but the problem is when I press the 1st ...
1
vote
0answers
36 views

Using arduino uno and an adafruit shield to control 3 dc motors and a linear stepper motor

Hello I am currently doing a project at my university which requires me to order and program 4 motors using an arduino. I will be using an arduino uno and an adafruit motor shield. 2 of the dc motors ...
1
vote
1answer
219 views

Trouble trying to turn a stepper while a button is pressed down

So i'm currently coding a little device that rotates a step motor round one 8th of a full revolution every time a button is pushed. the motor is attached to a question reel with 8 questions on it, ...
1
vote
0answers
177 views

Motor keeps spinning crazily after UNO board reset

I'm using a NEMA 17 stepper motor with A4988 motor driver and Arduino Uno board. I have used full microstepping (1/16th, so one revolution = 3200 steps). I'm coming across this strange problem. ...
1
vote
0answers
103 views

How to control 30 stepper motors using Arduino?

To prototype my project, I'm going to use an Arduino. I need to control 30 step motors. 4 of these step motors should always be ready to work, no matter other motors are working or not. But the other ...
1
vote
0answers
95 views

Slow serial communication with arduino and response on the application?

Currently, I'm doing a project as I want to use my Arduino Mega 2560 as an interface to my computer with a photo interrupter and stepper motor. So I need to send some commands and data to the Arduino ...
1
vote
0answers
214 views

Arduino Stepper motor control programming problem

I want to control the speed and position of stepper motor by a 4*4 keypad and monochrome graphic lcd interfaced with arduino. some open sources gave me good hint points to start controlling the ...
1
vote
1answer
744 views

Driving a stepper motor using ESP8266

I have a stepper motor, and a Uln2003a stepper driver, which is connected to an ESP8266. The ESP8266 is powered via USB, and the stepper motor is powered via the driver, which is then powered by an ...
1
vote
0answers
73 views

Trouble running two NEMA 17's with a joystick

So I'm trying to make a motorized dobsonian telescope using two NEMA 17 motors with Easy Driver boards. I want to control the x and y axis with a joystick. I found a code that ran one with a joystick ...
1
vote
0answers
20 views

Can't find exact Part type of Stepper Motor Driver

I have searched everywhere and can't seem to find the exact model/part number for this Stepper Motor Driver.
1
vote
0answers
281 views

Stepper wait for X seconds in a loop with millis (not delay)

In the code below I would like the stepper to bounce back and forward between two limit switches and while it is doing this it should turn and than wait for e.g. 1 second. I thought I could achieve ...