Questions tagged [stepper]

Questions about programming and controlling stepper motors.

35 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
302 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
56 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 ...
  • 21
2 votes
0 answers
250 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
2k views

Trying to move a stepper motor back and forth

So, I am trying to move a stepper motor through a halfway revolution (1024 steps), and once that is completed, have it move back and forth by about 100 steps in either direction. I am having some ...
2 votes
0 answers
412 views

Problem controlling a Stepper motor with AccelStepper in arduino uno

I have an Arduino connected to a stepper motor with an Easy Driver. I want for the stepper motor turn to a coordinate point. I wrote a simple program in Visual Studio that sends a coordinate point to ...
2 votes
0 answers
273 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 ...
1 vote
0 answers
232 views

28BYJ-48 Stepper motor not turning counter-clockwise

I'm new here so I hope I do everything right. Right now, I'm trying to program an IR remote that controls the direction of the 28BYJ-48 stepper motor. When I try to press the down button (The button ...
  • 11
1 vote
0 answers
30 views

Problem regarding on HC-SR04 sonar with an additional stepper and SG90 servo motor

I'm making a project based on HC-SR04 ultrasonic sensor with a stepper motor and an SG90 servo motor. I have done some conditions for my stepper motor that is given below. Now I want to include my ...
  • 11
1 vote
0 answers
711 views

accelstepper continuous rotation with forward and backward control

I am using Uno and the A4988 driver with nema17 motor and finally the Accelstepper, I want to make the motor run endlessly in a direction, but when I press a button I want it to stop and run in the ...
1 vote
0 answers
88 views

How to avoid stepper motor to revert its spin direction from code

I'm working with an Arduino UNO and a stepper motor NEMA 17. I would like to know how to avoid the stepper motor to revert its spin direction when I apply a load in the shaft. The motor works as I ...
  • 111
1 vote
0 answers
167 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 ...
  • 11
1 vote
1 answer
206 views

Coding for RTC and stepper motor

How easy is it to create a code using an RTC to rotate the stepper motor one way at a specific time and back the other way at a specific time? and that time being charged different months of the year. ...
1 vote
0 answers
312 views

Using AccelStepper to move a set distance while a button is held down

I'm working on a project and using a nema 23 stepper motor and driver. Need to be able to move the stepper 1/32 rotation when I press a button. I need a small delay so I have time to release the ...
  • 11
1 vote
0 answers
454 views

Set acceleration for stepper motor with no ending

I have a problem. I am using a stepper motor with 2 buttons. In my code I am trying to rotate the stepper motor clockwise while holding button1 and counter-clockwise while holding button2. To do that, ...
1 vote
1 answer
50 views

AMIS30543 | DataSheet Understanding CIRCULAR TRANSLATOR TABLE

I was reading the data sheet of AMIS-30543 stepper motor and I didn't understand fully what does this Circular Translator Table means, I have a couple of doubts What does Circular Translator table ...
  • 171
1 vote
0 answers
133 views

Modbus programming

I have a Controllino Mega running a code that rotates a stepper one revolution CW, and one revoluction CCW. I need the program to run, just when a signal is received from an HMI that I have connected ...
  • 31
1 vote
0 answers
124 views

Stepper motor only rotates once in a loop?

I am quite new to this , I am trying to program two motors , aStepper and bStepper. I want the program to rotate aStepper then rotate the bStepper and when that is done rotate aStepper again , and ...
  • 11
1 vote
0 answers
130 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
0 answers
701 views

How can I pause a stepper motor with a ultrasonic sensor?

I'm trying to use a stepper motor to stay stationary and rotate about 90 degrees, when the ultrasonic sensor detects something in front of it, and stay at that position until the ultrasonic sensor ...
  • 11
1 vote
0 answers
111 views

How do you make a stepper motor move at decimal (such as 0.5) steps?

if I were to use a code with the following format, //some loop digitalWrite(STEP_PIN,HIGH); digitalWrite(STEP_PIN,LOW); // each loop would make the motor move at one step. With this loop I can also ...
  • 31
1 vote
0 answers
1k views

map() function with stepper motor

I am controlling a stepper motor with a potentiometer and I am trying to map the potentiometer values (0-1023) to the stepper motor steps (200). I only want this stepper motor to turn 1 (one) rotation ...
  • 23
1 vote
0 answers
221 views

How to make a stepper motor move at sinusoidal acceleration?

I am new to arduino but I know basic concepts. How do I make the motor move at sinusoidal acceleration? I used the accelstepper library and it seems that at the end of each loop of distance with ...
  • 31
1 vote
0 answers
161 views

How do you make a stepper motor move in accordance to earthquake data using arduino?

I am new to arduino. I can import the acceleration data from a text file into arduino and I can also make the motor run at that acceleration with a distance calculated from an equation. I use the ...
  • 31
1 vote
0 answers
691 views

Programming NEMA 17 2 Phase, 4 Wire Stepper Motor

I have successfully programmed the Stepper Motor 28BYJ-48 with ULN2003 driver using the code below. But then I replaced the 28BJY-48 with a NEMA 17 Motor then it won't work anymore. I researched that ...
1 vote
0 answers
464 views

Error when moving stepper motor - Alexa curtain opener

I've hit a wall with my code and keep getting a Panic error like this: Panic /Users/lewisaburrow/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/core_esp8266_main.cpp:98 ...
  • 11
1 vote
1 answer
349 views

Two stepper one by one

I want to run two stepper motor one after the other Stepper1 has to5 rotation And stepper 2 has to move 1rotation Here is the code Stepper 1 is nema 34 And stepper 2 is nema 24 #include <...
1 vote
0 answers
243 views

3-5v micro stepper connected to A4988 driver does not move and makes whirring noise

I am kind of a newbie when it comes to stepper motors so I am hoping I am not asking any stupid questions. I am trying to run a 3-5v micro stepper motor (PM15S-020-SKH4) using a Pololu A4988 stepper ...
  • 111
1 vote
0 answers
655 views

Stepper motor moves initially but after idle time, clicks and doesn't move for a while

I am using the Accelstepper library to control a stepper motor, according to commands input via Serial. It works as expected for the first time when I start Serial Monitor and send command. When ...
1 vote
1 answer
241 views

Ways to turn a knob with a stepper motor and an ATMEGA32u4

Hey all I am wondering what would be the best items to purchase for me to be able to turn this know (continuous) below: As I mentioned above, I would need the stepper motor to have a continuous ...
  • 247
0 votes
0 answers
988 views

Break a while loop with a push button (AccelStepper.h)

Disclaimer: This is my first Arduino project. Background: I am building a "rapunzel tower" lantern for my daughter: the witch pays a visit to Rapunzel meanwhile my daughter can read a book (or still ...
0 votes
0 answers
49 views

A small problem that I cannot detect, My steppers are not moving for some reason ...?

I'm working on a similar project that can be found in this link https://howtomechatronics.com/projects/arduino-mecanum-wheels-robot/ It's the same build. To control the 4 steppers (via the NRF24L01), ...
0 votes
2 answers
2k views

Nema 17, Arduino Uno and stepper motor drive ~2H42B

I tried running Nema 17 stepper motor using the drive in the pic below (not the basic L298N drive, which BTW I successfully used to rotate the motor) . Could any of you review my existing connections ...
  • 11
-1 votes
1 answer
532 views

Motor does not rotate smoothly ( Even in High speed )

I am bhanuka and i am new to Stepper motors and to this library. I am trying to control 4 NEMA 17 motors ( Different speeds in same time ) using 4 (four) DM320t stepper driver. Actually i want to ...
-1 votes
2 answers
51 views

Any advice you can give me on my step motor code?

I'm very new to Arduino, currently undertaking a uni project in which my team wish to create a sort of slot machine-esque device that uses a step motor to rotate a drum (like one of the cylinders in a ...
-1 votes
1 answer
108 views

Code causing Servo motor not to work!

My sketch is compiling and loading, but when the program runs, the Servo motor does not work. The buttons work, the LED light works, Piezo buzzer plays the melody, the Stepper motor works but not ...