Questions tagged [stepper]

Questions about programming and controlling stepper motors.

32 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
1k views

A4988 Vref too low

I'm driving a stepper rated at 5V/1.7A using an A4988-based driver circuit with a 12V power supply. An Arduino controls the stepping sequence. According to the datasheet for my A4988, I should be ...
1
vote
0answers
35 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 ...
1
vote
0answers
211 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 ...
1
vote
0answers
371 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 ...
1
vote
0answers
214 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
1answer
181 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 ...
1
vote
1answer
1k 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 ...
0
votes
1answer
32 views

FlexyStepper: set current position leads to reach the old target

I'm using the FlexyStepper library.Unfortunately there's no way to write an issue to the author so I'm going to ask my question here. The documentation says about the setCurrentPosition*() functions: ...
0
votes
1answer
55 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 ...
0
votes
0answers
30 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 ...
0
votes
0answers
64 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 ...
0
votes
0answers
22 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
0answers
172 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 ...
0
votes
0answers
135 views

how do i use a Nema 34 stepper motor with DM860 motor driver using input degrees?

I use Arduino and I'm beginner. Anyone can help me for the script code? I use the code below, but i don't understand.
0
votes
0answers
55 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 ...
0
votes
0answers
333 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 ...
0
votes
0answers
88 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 ...
0
votes
0answers
84 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 ...
0
votes
0answers
345 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 ...
0
votes
0answers
369 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 ...
0
votes
0answers
191 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 ...
0
votes
0answers
217 views

Is there a module for driving 2 stepper simultaneously?

I'm looking for a module (not a shield) to drive 2 stepper motors simultaneously. The solution I found for now is 2 TB6612FNG modules, but if someone knows something that can work with 2 steppers ...
0
votes
0answers
521 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 ...
0
votes
0answers
468 views

A4988 stepper motor driver, arduino UNO and Haydon linear actuator

I bought a Haydon LC1574W linear actuator for a small project I'm working on. I have an A4988 Pololu stepper motor driver, is it possible to control the Haydon linear actuator using this stepper motor ...
0
votes
2answers
1k 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 ...
-1
votes
2answers
38 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
2answers
106 views

Could i use a stepper motor?

i want to make a 3-axis gimbal with arduino but brush-less motors seem incredibly hard so would stepper motors work for this purpose? if their is a way if not, is how can i connect 3 gimbal motors to ...
-1
votes
1answer
57 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 ...
-1
votes
1answer
479 views

Will Arduino Mega support stepper motor NEMA 24, NEMA 34

Will two stepper motor NEMA 24, 10 kg cm, 2. 8 amp, 24 vdc work at same time on Arduino Mega and when they stop stepper motor NEMA 34, 34 kg cm, 4amp, 24 VDC will work or not? This is my first project ...
-1
votes
2answers
57 views

How do i test whether my code fulfills the timing requirement?

I at the moment trying to interface to an stepper motor control board - (ST330-V3) I wrote the code, but aren't sure how i should test it. Is there someway i could scope it, such that also can be ...
-1
votes
1answer
3k views

Arduino NOOB - Stepper Motor + Rotary Encoder Control

I have a very basic Arduino setup : Arduino Uno Rotary encoder Nema 17 stepper motor + A4988 driver How can I control the rotation of the motor with the rotary encoder? How can I get it to make one ...
-1
votes
1answer
160 views

Keeping track of the number of rotations of a stepper motor

Using the stepper.h library in Arduino IDE, how can we control the number of rotations the motor has to move?