Questions tagged [stepper]

Questions about programming and controlling stepper motors.

Filter by
Sorted by
Tagged with
2
votes
1answer
45 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
33 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
48 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
47 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 (...
0
votes
1answer
28 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
38 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
29 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
23 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
74 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
48 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
44 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
27 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
14 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
34 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
93 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
50 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
53 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 ...
1
vote
1answer
187 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
30 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
39 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
34 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
122 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
421 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
75 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 ...
0
votes
0answers
39 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
226 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
410 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
236 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
120 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
192 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
40 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 ...
0
votes
0answers
65 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
678 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
43 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 ...
0
votes
0answers
93 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
26 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
879 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
404 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 ...
2
votes
0answers
51 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
2answers
1k views

Execute code only once

I am trying to create an if statement that only runs once, the very first time the void loop is started and switches to another code after that. But the following only executes stepper1a(). Any help ...
0
votes
1answer
293 views

Can you drive a stepper motor without the L293D

Can you drive a stepper motor without L293D. Don't awnser without giving explanations or saying it will be cheaper to buy the L293D. Thanks
0
votes
1answer
688 views

Accelstepper - how to switch from fullstep to halfstep in loop?

I am using Accelstepper library to control a unipolar stepper motor. In my project, I would like to run the stepper in full-step mode when I need speed and in half-step mode when I need precision. As ...
0
votes
2answers
87 views

Controlling a Stepper Motor - sending to specific positions on a 'buttonPushCounter ==' cue, forwards and backwards

I am working on a project using an Arduino control a Stepper Motor. The motor drives a lead screw which moves coloured filters to specific positions along a linear track - forwards and backwards. The ...
0
votes
2answers
345 views

Slow speed with stepping motor

I am currently working on a project where I need a stepping motor and a servo running at the same time, the servo turns fine and the speed is ok, but the stepping motors speed is very slow and as a ...
0
votes
1answer
2k views

Powering an Arduino directly from a motor driver (DRV8825) or external power source?

Hello people from StackExchange, I'm new to Arduino and driving stepper motors in general; please excuse me for my limited knowledge on the subject. I've been doing research for a few hours already, ...
-1
votes
1answer
77 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 ...