Questions tagged [stepper]
Questions about programming and controlling stepper motors.
192
questions
0
votes
1
answer
65
views
Give zero volt to specific servo motors in a certain time
I have a robot that uses 4 mechanical arms. Each mechanical arm has 4 "READYTOSKY 30kg" servo motors on them.
At some point, I need to use the absolute maximum force of only two mechanical ...
0
votes
1
answer
27
views
Confusing stepper reaction to increase in delayMicroseconds()
I have been following this tutorial using the same hardware, TB6600 driver, 42HS48-1704A (yes I think its supposed to be 42hs40 but thats not what it says the sticker) stepper but am controlling via a ...
2
votes
2
answers
179
views
TMC2208 Stepper Motor does not change its RPM linearly
This is my first project working with stepper motors, so I may have a bit of a shaky understanding of the electronic side of the project. I'm trying to create a simple device with 4 buttons connected ...
2
votes
0
answers
98
views
Controlling Stepper motor using RC receiver
I am using Arduino UNO with a DM556 Micro step driver to control the Stepper motor.
PUL+ --> pin 3
DIR+ --> pin 5
RC receiver --> pin 2
Using CH2 of receiver
With out the RC receiver (R9SX) ...
1
vote
1
answer
254
views
How to drive two Stepper motors and use an Ultrasonic sensor together?
I am working on an autonomous robot using two 4-pin stepper motors, HC-SR04 ultrasonic sensor, 2 L298N motor drivers (one for each motor), and an Arduino Uno. My problem is that when I use the stepper ...
1
vote
0
answers
65
views
A4988 Jitter on stepper motor, some of the time
Hardware:
Arduino Uno Rev3
A4988 Driver
Nema 8 Stepper
Setup:
I've adjusted the VRef of the driver based on the formula VRef = Imot * 8 * Rsen. With the values of Imot = .5 (max = .6), Rsen = .068.
...
1
vote
1
answer
59
views
Need help figuring out how to organise a system to run a stepper motor at low speed without Steps-skipping
TL;DR : How to prevent step-skipping with a NEMA gearbox motor at low speed.
I am in the process of creating a system in which I want an object to turn on a plate and to show a letter depending on the ...
0
votes
2
answers
1k
views
Using a limit switch to stop a stepper motor
I am building a machine with a moving bed, the bed moves forward and backward. I need to incorporate a limit switch at the two ends that makes sure the motors stop at the two extremes. I have 2 ...
2
votes
1
answer
1k
views
How to count steps of a stepper motor with AccelStepper?
I want to turn on my motor and count how many total rounds it has until my limit switch is switched on. After that, I want to count rounds counterclockwise until another limit switch is pushed. For ...
1
vote
1
answer
57
views
Please help me navigate the stepper motor object definition in the documentation
I am trying to use the stepper library and the stepper object is documented like this
This function creates a new instance of the Stepper class that represents a particular stepper motor attached to ...
1
vote
0
answers
686
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 ...
1
vote
1
answer
153
views
Where am I going wrong in modifying Timer0 and the ISR interrupts in this example?
(Arduino) Hello I don't know where I am going wrong here, please advise.
In the end I want to step a bipolar motor, HIGH/LOW, using Timer0 with OCR0A and OCR0B interrupts to adjust the motors step ...
1
vote
0
answers
33
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 ...
0
votes
1
answer
653
views
arduino 28BYJ-48 stepper only whining, not rotating
Edit, this question has been answered in the comments by chrisl, and also after retesting the code with delay() which showed I forgot to update my lastupdate variable(eerst), I have answered it in the ...
1
vote
1
answer
151
views
Stepper motor with microstep driver
In my project I have to control a stepper motor using arduino and microstep driver, can I control the motor so that it can move 90 degrees then stop for like a second and then move again and repeat ...
1
vote
1
answer
67
views
Issue with input from weighing scale controlling a stepper motor based valve
Hello and thanks for any help in advanced.
What changes do I need to make to my code to get rid of the issue of the valve opening up again at end of cycle in "Auto" function.
Hardware:
...
0
votes
3
answers
80
views
Why can't I just plug a stepper or gimbal motor (BLDC) into the ground, 5v, and analog pins of my Arduino?
I plugged a BLDC gimbal motor in to my Arduino today, and it made a very small jitter. I tried to set an analog pin for the signal pin of the motor (motor had three pins, I assumed one was power, one ...
1
vote
2
answers
401
views
Arduino Motor Control at a Specific Time
Hello. Currently I'm working on creating an automatic dog food dispenser. I'm using a Arduino Uno R3, an L298N stepper driver, a DS1307 RTC breakout board, a Nema 17 stepper motor, and a breadboard to ...
1
vote
0
answers
1k
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
117
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 ...
1
vote
1
answer
31
views
how do i make stepper stop if both sensors are LOW ? im using a adafruit l293d motor shield
I've tried this code below but it doesn't stop it just rapidly switch direction that it looks like it's trembling I think because it always reads the void startF/R thats why it's trembling .
I need ...
2
votes
1
answer
252
views
12V 28BYJ-40 motor is not generating enough torque
I am attempting to use a stepper motor to rotate one of my split-flap displays. However despite the thing the motor is rotating weighing probably half a pound, it struggles to do so. It really can ...
1
vote
1
answer
820
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 ...
0
votes
1
answer
97
views
Not have to wait for if statement to run
I need some advice. I am trying to code a setup of 4 stepper motors that are connected to a keypad and 2 DC-motors that run a conveyor belt. My goal is to be able to push a key, the correspondning ...
1
vote
1
answer
186
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 ...
2
votes
0
answers
703
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
0
answers
276
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 ...
0
votes
1
answer
255
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
1
answer
517
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
1
answer
51
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
0
answers
461
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 ...
3
votes
1
answer
3k
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
2
answers
186
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
1
answer
108
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
1
answer
241
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 ...
2
votes
0
answers
828
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
1
answer
313
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
1
answer
140
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
1
answer
535
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
1
answer
90
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
1
answer
137
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 ...
2
votes
1
answer
70
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
1
answer
44
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
1
answer
398
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
1
answer
1k
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
1
answer
645
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
1
answer
1k
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
1
answer
2k
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 ...
1
vote
1
answer
635
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 ...
1
vote
1
answer
402
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 ...