Questions tagged [stepper-motor]

A stepper motor or step motor or stepping motor is a brushless DC electric motor that divides a full rotation into a number of equal steps. The motor's position can then be commanded to move and hold at one of these steps without any position sensor for feedback (an open-loop controller), as long as the motor is carefully sized to the application in respect to torque and speed.

Filter by
Sorted by
Tagged with
0
votes
0answers
42 views

ESP32 with TMC2130 and Nema23 on 24V slower than expected, how do I correct the settings/code to speed it up?

Edit 2: Turning off stealtchop mode by setting driver.en_pwm_mode(1) to 0 fixes the problem but makes the motor noisy. Is there any way to enable it and have the speed still working ok? Edit: Here is ...
2
votes
0answers
34 views

How to attach plate to stepper motor? [closed]

Total noob here (never touched Arduino before today), & have pretty much no hands-on technical experience (although with lack of experience, I make up in enthusiasm to learn!) Question: How do you ...
0
votes
2answers
38 views

I am trying to automate my sun shade on my back porch with a Nema17 Stepper motor

I am very new to Arduino (and fritzing so please excuse my poor layout). I am trying to automate my patio sun shade, eventually it will incorporate a photocell but I wanted a proof of concept first ...
2
votes
0answers
20 views

AccelStepper library - motor ticks when turning

When I'm using the AccelStepper library to control this closed loop stepper motor, the motor ticks when turning, maybe ~5 ticks/sec. Depending on the speed of the motor the ticks become more (at ...
0
votes
1answer
47 views

How to sue Arduino Nano to control Stepper motor with Firmata

I have a stepper motor and at present it is controlled by a sketch all working fine. I need now to add it to a Win32 app to control it in circuit with existing Servo Motor. The servo Motor is working ...
1
vote
1answer
43 views

Digispark Rev.3 Kickstarter ATTiny85 using all 6 pins

i have some trouble to use i2c and the other pins at the same time. im tring to control the attiny over i2c with a arduino and the attiny should control a 28byj-48 stepmotor. i started to setup the ...
1
vote
0answers
30 views

NEMA 17 Stepper motor + Arduino Mega + driver doesn't move using GRBL and UGS

3x NEMA 17 Stepper Motors: https://www.amazon.com/gp/product/B00PNEQKC0/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1 3x DM542T Stepper Driver: https://www.omc-stepperonline.com/download/DM542T....
1
vote
2answers
66 views

Regulate Water Pumps flow by DC Stepper Motor Driver

I'm an Arduino beginner. I've got 2 x 12V DC water pumps https://www.ebay.co.uk/itm/224461221015 plus 12V, 2A AC/DC adapter to feed them. I would like to regulate the speed (flow) of the pumps ...
2
votes
1answer
34 views

Wirelessly (but fast) transfer STEP and DIR output from Arduino to stepper driver

Very short version: Looking for a way to wirelessly get STEP and DIR signals (only those two signals) from an Arduino to a DRV8825 stepper driver about a meter away: Arduino -> STEP and DIR IO pins ...
1
vote
0answers
45 views

CD rom stepper getting warm

I'm trying to run a SPS-15RF stepper motor from an old cd rom drive. I'm using a CNC shield and a4988 driver with a 6v power supply. The motion is smooth and fine. I know it has 18 pulse/revolution ...
1
vote
1answer
63 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 ...
1
vote
1answer
39 views

How to calculate required amperage of multiple motors?

I a very simple question about calculating the amperage I need to run 5 stepper motors from my Arduino Uno. If I have 5 28BYJ-48 stepper motors(which are 5V and are said to require about 240mA each) ...
2
votes
0answers
51 views

Help needed with driving multiple stepper motors on arduino UNO

I am brand new to Arduino but have good experience with Raspberry Pi's and Microchips. My problem is that I am having trouble driving many stepper motors at once. I am using the AccelStepper library(...
1
vote
1answer
34 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
0answers
70 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 ...
0
votes
0answers
36 views

issue with DVD drive stepper motor for 3d printer

Short version: 1: Is it possible to run just the stepper motors (pulled out of a DVD Drive) using either a 5v 2a mobile charger or a 9v battery plugged into the Ramps 1.6 power input? 2: what could be ...
1
vote
0answers
24 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
0answers
22 views

Need help with independent speed control on multiple steppers

I am a NOOB. I admit to a huge lack of understanding of programming. I just need my machine to work. I cannot wrap my head around getting independent speed control of 2 steppers since it seems that ...
0
votes
0answers
143 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
22 views

Stepper Motor Inconsistent Jittering

I am trying to run a stepper motor using an Arduino stepper motor shield like the Adafruit V1 motor shield. In my code I am just trying to get the motor to rotate forwards and backwards. When I first ...
1
vote
1answer
69 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 ...
0
votes
1answer
29 views

What motor to move a small telescope?

i just bought a hobby telescope, it works well for being nothing much than a toy, the very problem is that the gesrs that should keep it stable are all plastic and very hard to tighten while keeping ...
1
vote
0answers
27 views

Input from serial monitor to control stepper direction coding problem

I am attempting to create a simple code that will home the motor then wait for input for direction. I have the homing function working, however the loop that reads the data from the serial monitor ...
1
vote
1answer
74 views

Ok to Connect 2.9V Stepper to 3.3V pin?

So I have a stepper motor that's rated for 2.9V and 0.8A and I connected it to a L9110 Driver and I wanted to drive it with my arduino. But I don't know how to drive it safely without damaging the ...
1
vote
2answers
257 views

End stops for stepper motor

I need to add some end stops to this stepper motor code. I'm using one axis of a joystick to control a carriage that goes back and forth on a long screw. I have hall switches for both ends, I just ...
1
vote
1answer
54 views

Using same GPIO pins to control multiple stepper drives

I have an Arduino Mega 2560 and I want to control four 23-frame steppers same speed/direction for a conveyor application. I want these to be synchronized exactly as possible for smooth operation. Can ...
1
vote
1answer
55 views

Unsure if my NEMA 14 stepper motor wiring is correct

So I'm pretty brand new to Arduino's in general so I do apologize if its a simple mistake. But basically I'm trying to use the <Stepper.h> library to control my NEMA 14 motor on an arduino with ...
0
votes
1answer
53 views

How to put together an HKT30 optical rotary encoder?

I'm working on a project involving stepper motors. It is important for this project to track the position of these motors, so I decided to buy an optical rotary encoder, specifically an HKT30(HKT3005-...
0
votes
0answers
45 views

Motor Overheat due to code?

working on a project to make a rover-like vehicle move, and was running into a problem where our stepper DC motors are overheating. I suspect that it's because of the multiple "if" branches ...
0
votes
0answers
107 views

Control a stepper motor wireless with a radio module?

I'm new in this arduino stuff and i was wondering if it's possible to control a stepper motor wirelessly with an encoder using 2 arduinos and a transceiver module?
1
vote
1answer
105 views

Is this a feasible circuit?

The last couple months I’ve been working on this project, I’m nearing its end and I’m getting really excited! However, this is still pretty new to me and so I was hoping my electrical diagram/...
0
votes
0answers
122 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
91 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
70 views

Power supply for DIY Arduino CNC Router

I am making a CNC router from a dremel and 3-5 NEMA 17 steppers. I am really confused on how I can power all those motors. I am using a RAMPS 1.4 with Arduino Mega. I have a 2.4A USB power supply. Is ...
0
votes
1answer
114 views

Seems like I cant control 4 stepper motor at once

Im trying to control 4 stepper motors with the AccelStepper library. Something like this: AccelStepper FL(1,stepPin,dirPin); AccelStepper FR(1,stepPin2,dirPin2); AccelStepper BL(1,stepPin3,dirPin3); //...
1
vote
1answer
60 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
110 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
273 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
225 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-...
3
votes
2answers
38 views

AMIS30543 - Library code | Order of pinDirection and pinOut

This piece of code was taken from AMIS30543- Arduino library, void init(uint8_t slaveSelectPin) { ssPin = slaveSelectPin; digitalWrite(ssPin, HIGH); pinMode(ssPin, OUTPUT); } Facts I know ...
3
votes
1answer
245 views

How to slowly change direction of the stepper motor with AccelStepper?

I know that direction can be changed with .setSpeed(speed); ... //check input .setSpeed(-speed); I need to slowly decelerate and accelerate backwards, so I have to use .setAcceleration(200); ... ....
1
vote
0answers
126 views

Angle sensor to measure the stepper motor shaft rate of rotation

what Kind of Sensor that i can use to know how much angle stepper Motor shaft has rotated ? Actually,I am thinking to rotate my stepper Motor at 1 rpm and my stepper Motor shaft Diameter is 8mm and ...
0
votes
1answer
44 views

Running stepper motor for specified no. of turns with Arduino?

I hope you are doing well. I want to run a pretty big stepper motor for a specified number of turns, take, for instance, 25. Easy! But not for a beginner with Arduino and I'm not an electrician! Here ...
0
votes
0answers
59 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
56 views

I cannot get my code to play music in a or manner. I have to open one switch then the other. Music should play with either door open

Problem is if I open the necklaceDoor first, nothing happens. I have to open the ringDoor first. That turns everything on. Then with the necklaceDoor open, the stepper motor will turn off and the ...
1
vote
1answer
262 views

Continuous push button detection in for Stepper control

Currently, I've worked on code for controlling stepper motor with pushbuttons. So, basically, I have to press two push button to run forward and backwards. but the problem is when I press the 1st ...
0
votes
1answer
136 views

AccelStepper library advanced codes!

I was trying to find out how this library can run multiple stepper motors at the same time, and I saw this important function called... void AccelStepper::setOutputPins(uint8_t mask) { uint8_t ...
0
votes
0answers
62 views

I am using an accelerometer as an input and a stepper motor as an output and it will have these weird delays after about 30 sec

I have a stepper motor (kysan 1124090) turning CW and CCW based on the y direction of my accelerometer(MU6090). I am using an Arduino uno. It works great but after about 30 seconds there will be these ...
1
vote
1answer
71 views

How can I increase the responsiveness/speed of my stepper motor?

I'm trying to control the positioning of a NEMA17 bipolar stepper motor by turning the knob of a potentiometer, using an EasyDriver board. The control part is solved. My problem is that if I quickly ...
0
votes
2answers
361 views

Motor for a winch (with controller and external power supply)

I'm in need of a motor or continuous servo to power a winch. The motor must be continuous* and reversible, but it does not need to be fast, precise, nor bear a load when powered off. It just needs to ...