Questions tagged [stepper]

Questions about programming and controlling stepper motors.

Filter by
Sorted by
Tagged with
2
votes
0answers
30 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
0answers
17 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
1answer
61 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. ...
0
votes
0answers
50 views

Problems with AccelStepper/Multistepper library

I am trying to drive two stepper motors with the AccelStepper/MultiStepper library. I think I did get it to work before, but it's not working now. I have included my code below the error messages. Is ...
1
vote
0answers
31 views

How to modify this code to control a stepper with buttons

I want to change this code to use 2 buttons instead of the pot. I use this code for one motor but I need another motor that uses buttons instead of a pot. I started to modify it, I commented out some ...
1
vote
1answer
38 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
28 views

2 stepper cnc inaccurate

I'm building a simple cnc machine that just writes letters. It uses 2 steppers for x and y axis. Here is how it works generate letters in c# and convert them to list of lines send to arduino mov_xy ...
1
vote
0answers
63 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 ...
2
votes
1answer
252 views

How to control speed of 28BYJ-48 stepper motor without using library?

Iam using 28byj-48 stepper motor and I want to know how to control its speed without using any library. I got to know that we need to add delays in between steps but I don't know how much delay I need ...
0
votes
2answers
47 views

Stepper not working properly using L298N

If googled and search here but can't find the same issue. I'm using an Arduino Uno, L298N driver (5v jumper is off - actually just 2 holes where the jumper pins were supposed to be), scavenge stepper ...
1
vote
1answer
51 views

Serial Communication to Control Stepper

**I wanted to add an updated code after I have finished it to help others in the future if they are ever looking for it. EDIT AT END OF QUESTION AFTER ANSWER AND CODE UPDATE.** I currently have an Uno ...
1
vote
0answers
49 views

getting overflow on number of steps . used uno originally went to mega and still have overflow issues [closed]

using DM860T driver set at 800 steps. anything as high as 40 revolutions causes overflow. any idea of problem and how to fix? set steps per revolution to 800, and multiplied revolutions times steps (...
1
vote
1answer
33 views

How to make motors start when pressing a button, and then go through a cycle with a specific motor order?

I'm very new to arduino and have to work on a project for school. We have connected 3 motors (Servo, Stepper (180 degrees) and a DC motor) to an Arduino Uno, Adafruit motorshield and a pcb. With the ...
0
votes
0answers
58 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, ...
0
votes
1answer
47 views

Stepper motor driver not working properly

I have a problem. I am following this guide about controlling a NEMA 17 stepper motor: https://www.makerguides.com/a4988-stepper-motor-driver-arduino-tutorial/ I uploaded the code to my arduino uno ...
0
votes
1answer
26 views

DIY CNC Machine Power Requirements

I want to make a CNC machine that uses 5 NEMA 17 rated for 2A and a RAMPS 1.4 to control it all. I have a power supply that can deliver 1.5A at 12V. Is it enough? I am worried that when all 5 motors ...
2
votes
1answer
102 views

Can AccelStepper accelerate non-linearly?

I am running a Nema 23 motor with an Arduino Uno and a microstepper driver. I am making a torsional vibration demo, which uses a series of springs connected to the motor driveshaft to spin gears. ...
0
votes
1answer
54 views

Code for Degrees not

Using Audrino Nano and MKS SERVO42 42 Stepper Motor With Driver Board Closed Loop with the LCD. I have got the motor going by using the menu on board. Now able to run Code1 https://github.com/makertut/...
1
vote
1answer
49 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
31 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 ...
1
vote
1answer
15 views

AMIS30543 | Data-Sheet understanding Status register

I was reading the data Sheet of AMIS-30543 stepper motor driver and I was not able to understand how to combine the result of the Micro step position status register MSP[8:0]. I know that its a 9 bit ...
1
vote
1answer
53 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
183 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 ...
0
votes
1answer
121 views

How to use correctly a microstepping driver with a lower voltage stepper motor

I want to use a microstepping driver like Haitronic's HS2215 with a NEMA 17 stepper motor with rated voltage of 4.2V and rated current 1.5A. The input voltage range of the microstepping driver is 9-...
1
vote
1answer
114 views

AccelStepper help - it just won't move!

I should begin by saying I am not a programmer, do not really know much about programming, and am programming an Arduino Uno for the first time. I am using a Nema 23 motor (23HS22-2804S) with a ...
2
votes
1answer
390 views

Use the stepper motor library with the A4988 driver?

I want to use this library: https://www.arduino.cc/en/Reference/Stepper #include <Stepper.h> The wiring for my driver is shown here: https://www.pololu.com/product/1182 From the library, I'm ...
0
votes
0answers
43 views

Multiple Stepper Motor Circuit Issue

I am using an Arduino and a Pi to control two stepper motors connected to DRV8825 drivers. The Pi communicates with the Arduino through serial, telling the Arduino which motor to move and how far. In ...
0
votes
1answer
63 views

Is there a method of figuring out whether or not my stepper drivers are dead?

I'm working on a project that involves stepper motors, and I'm mainly using DRV8825 stepper drivers. At the moment, it seems like only one of my drivers actually gives the motors any current. The ...
0
votes
0answers
44 views

FlexyStepper: wrong behavior when changing target during movement

I'm using the FlexyStepper library. Unfortunately there's no way to open an issue on GitHub so I'm going to ask my question here. I think there's a bug in the calculations. In my application (it's not ...
1
vote
1answer
155 views

Why is my CNC shield smoking? Is it safe to keep on for long periods of time?

I am working on a project that involves moving stepper motors, and the device will have to be on for upwards of hours. I am moving the bipolar NEMA17 stepper motors using a Protoneer CNC shield V3 on ...
1
vote
1answer
812 views

Trying to understand AccelStepper constant speed

I'm starting to learn the AccelStepper library for controlling stepper motors for a project I'm working on. I'm able to get the stepper motors running with the basic examples that use acceleration. I ...
0
votes
0answers
17 views

how to make stepper motor and led run sententiously but independent of each other? [duplicate]

I came across a problem with my code, I want to be able to have a servo motor constantly spin while a few leds blink at random. I already have a code written down but the problem is is that it seems ...
2
votes
1answer
76 views

Arduino doesnt seem to be reading my pin states

I seem to have an unbelievable thing. My code was working perfectly on one arduino, when i upload the same sketch to another one, it is behaving strangely, it seems like it is not reading any of my ...
1
vote
0answers
45 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 ...
2
votes
1answer
489 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 ...
0
votes
0answers
39 views

Arduino multitasking, millis [duplicate]

My project requires that a hinged box be opened approx 90 deg. with an servo controlled with an Arduino, staying open for approx. 90 seconds. When the lid is open, then a lift mechanism with a stepper ...
0
votes
0answers
564 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
1answer
373 views

Can I control a 28BYJ-48 5V stepper with a DVR8825 driver?

I have a stepper motor 28BYJ-48 rated 5 V and I want to use a DVR8825 driver so I can use the 1/32 micro-stepping feature. My problem is that DVR8825 has a minimum operating voltage of 8.2 V. Would ...
0
votes
1answer
155 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: ...
-1
votes
1answer
244 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
vote
1answer
50 views

Determine what size power supply I need to run stepper motors

I have recently purchased two 7.4V, 1A, Planetary Gear Unipolar Stepper Motors as well as two Cytron 3A 4-16V Dual Channel DC Motor Drivers. I was told that I would need these to run the motors off an ...
1
vote
0answers
78 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
2answers
2k views

Position Feedback for Stepper Motor

I want to rotate a gearwheel with a stepper motor. While Arduino is on everything is well. My gearwheel transfer its power to a gear worm. The worm will go 10th cm and back repeatedly. When I cut the ...
-1
votes
2answers
44 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
879 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 ...
0
votes
1answer
44 views

Stepper Motor Direction via Flow Amps

I have a problem with stepper motor direction. I want to change the direction of the stepper motor rotation, when the stepper motor shaft is stuck. For example, when I hold the shaft of the ...
1
vote
0answers
98 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
27 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), ...
1
vote
1answer
1k views

Powering two stepper motors with A4988 drivers

New to this site and wanted advice and sanity checking on my project design. I know there are similar questions to this but I couldn’t find one that was closely similar to mine. I’m creating a device ...
1
vote
0answers
453 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 ...