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
1answer
67 views

when i finished coding my 3 dc motors, all these errors accrued one said stray '/302' in the program [closed]

/* #include <SmartInventor.h> */ void setup() { SmartInventor.DCMotor(); } void loop() { // M1, M2, M3 // CW, CCW, STOP // 0-100 // 0-360 SmartInventor.DCMotor(M1, CW, 10, 45°);...
0
votes
1answer
68 views

Grbl on Arduino Uno (Elegoo) with DM542 + nema24 stepper motor not working

i've already searched and tried for a quite depressing amount of hours, but am not able to solve this problem: The parts are the following: - Elegoo Arduino Uno, on wich i flashed GRBL - 24v Power ...
0
votes
0answers
20 views

Using arduino uno and an adafruit shield to control 3 dc motors and a linear stepper motor

Hello I am currently doing a project at my university which requires me to order and program 4 motors using an arduino. I will be using an arduino uno and an adafruit motor shield. 2 of the dc motors ...
-1
votes
2answers
165 views

stepper motor doesn't work but get no error message

So I work for a department that uses arduino to move a stepper motor for a wave machine and I am encountering a issue. They gave me the code that they used to use but it doesn't move the motor and ...
0
votes
1answer
37 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
63 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
1answer
77 views

Making Serial act as an interrupt

I am trying to make a program to control a stepper motor with serial inputs, and in writing a function to jog it, I am having trouble figuring out how to make a serial input stop the loop that steps ...
0
votes
0answers
84 views

Control Stepper Motor Nema17 with Arduino mega 2560 and Ramps 1.4

I have an Arduino Mega 2560, 1 Ramps v1.4, 1 NEMA17 stepper motor and 1 A4988 driver. I try to control this motor but i can't. I try to test my motor in the X-axis with my code, please help me if i ...
1
vote
1answer
38 views

Trouble trying to turn a stepper while a button is pressed down

So i'm currently coding a little device that rotates a step motor round one 8th of a full revolution every time a button is pushed. the motor is attached to a question reel with 8 questions on it, ...
0
votes
0answers
42 views

Motor keeps spinning crazily after UNO board reset

I'm using a NEMA 17 stepper motor with A4988 motor driver and Arduino Uno board. I have used full microstepping (1/16th, so one revolution = 3200 steps). I'm coming across this strange problem. ...
-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 ...
0
votes
1answer
57 views

Requesting help with CNC Project using Arduino

I have made a setup with Arduino Uno, Nema 17, T8 lead screw, IR Sensor and a DC motor. I am trying to establish a code which: Resets Home position of the Machining Head on the lead screw Has an ...
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 ...
1
vote
1answer
248 views

Motor with sinusoidal motion

I need to run a motor to have a harmonic motion with specified amplitude and frequency ( harmonic motion mean that the angular position of the motor is a sine function of the time). I’m Looking to do ...
0
votes
1answer
102 views

Stepper motor based clock movement with DS3231

I am working on a clock movement that is powered using a stepper motor and the GSM2 driver board. The delay between steps needed to achieve 1 rpm on the second hand works out to 25 ms. In my current ...
0
votes
1answer
72 views

Control two stepper motors simulatenously?

I'm using Arduino Mega 2560, A4988 motor driver for 5 stepper motors. There are X1, X2, Y, Z, A axis, and if I control Y and Z at once, it works. But when I just change axis from Y&Z to X1&X2, ...
0
votes
2answers
125 views

Can 1 arduino control 6 stepper motors?

I want to make a single cell 3×2 Braille grid that has 6 up and down shafts each of which can be controlled by arduino using 6 stepper motors . So will that work with 1 arduino uno and/or stepper ...
1
vote
0answers
36 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 ...
0
votes
1answer
77 views

My stepper motor connected to a driver and an Arduino is not working

I'm using a 28BYJ-48 stepper motor with a ULN2003 driver board. I'm trying to control the motor using an Arduino MEGA. I initially connected the pins on the driver: IN1,2,3,4 to pins of the Arduino: 8,...
0
votes
1answer
388 views

How to Run Stepper motor through Serial Communication

I am trying to run a Stepper motor from my c++ application, from which I sent commands but its not running not sure why would it not run, outside serial check it run but inside serial check it not run....
0
votes
0answers
49 views

Slow serial communication with arduino and response on the application?

Currently, I'm doing a project as I want to use my Arduino Mega 2560 as an interface to my computer with a photo interrupter and stepper motor. So I need to send some commands and data to the Arduino ...
-1
votes
1answer
118 views

Stepper Motor Code. Delay or Millis

i will be designing a robot with multiple stepper motor. is it advisable to use millis instead of delay here or not? right now im testing if Millis() would work but still having a hard time ...
0
votes
0answers
31 views

Accel Multi Stepper - Array for timelapse operation

I am trying to run 2 cameras for timelapse. I can do this with a single stepper: void doSteps(long steps) { calcSpeedStepper(); digitalWrite(sleepPIN, HIGH); stepper1.setCurrentPosition(0); ...
0
votes
0answers
61 views

Arduino Stepper motor control programming problem

I want to control the speed and position of stepper motor by a 4*4 keypad and monochrome graphic lcd interfaced with arduino. some open sources gave me good hint points to start controlling the ...
0
votes
1answer
114 views

Are my stepper motors being burnt out? What is the issue here?

I am building a mini-cnc laser engraver as shown in this intructable and this youtube video. I have built the circuit (minus the jst connector and two male pins at the top left of the board) and have ...
0
votes
1answer
284 views

Communicating with Arduino Mega 2560 Serial ports through x2 RS232

I am trying to driver a stepper motor using an Arduino Mega 2560. There will ideally be two RS232 signals being read into / written from the Arduino, each using male USB 3.0 connectors; one of these ...
0
votes
1answer
33 views

Should L, TX, RX led light on while connected with laptop

Dear Sir, I need to know that should led light named as L, TX, RX should be on when we connect it with laptop? Because when I connect it with laptop led light turns on for 1 or 2 ...
0
votes
2answers
1k views

[Solved]How to make my stepper motor run clockwise and counterclockwise?

I'm relatively new to Arduino thus need your help to figure out why my stepper motor doesn't rotate clockwise and counterclockwise. All I could do was to make it rotate only in one direction. I am ...
-1
votes
2answers
56 views

What type of Arduino to buy

I am doing a project for school to run 462 LEDs in 6 series (77 each) and a stepper motor altogether, I wanna know what model of Arduino I should buy (not so expensive)? I am using individually ...
0
votes
1answer
331 views

Driving a stepper motor using ESP8266

I have a stepper motor, and a Uln2003a stepper driver, which is connected to an ESP8266. The ESP8266 is powered via USB, and the stepper motor is powered via the driver, which is then powered by an ...
0
votes
1answer
84 views

Reset Button not working + Can't Upload code , What is wrong?

I was testing and debugging a code I wrote for a robot with 3 stepper motors on (Arduino Uno + CNCShield V3 + a4988 stepper drivers). I want to disable drivers at will. so I bypassed EN pin on 2 of ...
0
votes
0answers
22 views

Trouble running two NEMA 17's with a joystick

So I'm trying to make a motorized dobsonian telescope using two NEMA 17 motors with Easy Driver boards. I want to control the x and y axis with a joystick. I found a code that ran one with a joystick ...
0
votes
0answers
62 views

i2C master/slave Arduino uno Programming to run 2 motors at once off separate boards [duplicate]

I am attempting to run a master/slave receiver arduino using two arduino uno's. I'm synchronizing both Arduino to control 1 dc motor and 1 stepper motor at once which each of the Arduino UNO board ...
0
votes
0answers
140 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
1answer
53 views

connecting a push button to a step Motor Problem

I can't get this code to work. The button code and the step motor code works separately. However, when I code using an if statement saying when the button is pressed the motor will move or else it won'...
0
votes
0answers
17 views

Can't find exact Part type of Stepper Motor Driver

I have searched everywhere and can't seem to find the exact model/part number for this Stepper Motor Driver.
0
votes
1answer
353 views

Circuit diagram for running bipolar stepper motor using LDR

I am new to Arduino, some how I have put this code together to run stepper motor using LDR(kind of solar tracker program) I searched on net and tried using servo motor circuit to run stepper motor, ...
0
votes
0answers
75 views

L293D Motor Drive Shield For Arduino question

I have this shield for Arduino . The suppliers states that the driver is capable to move 2 unipolar stepper motors. https://www.sainsmart.com/collections/all-for-arduino/products/l293d-motor-drive-...
-1
votes
2answers
53 views

Choosing a motor for my project [closed]

Sorry For my bad English. I will start to make a mini conveyor (100 cm x 30 cm) with an Arduino Uno. What is the best motor should I choose for my project ? - Stepper Motor ? - DC Motor ? Etc. ...
0
votes
0answers
151 views

Stepper wait for X seconds in a loop with millis (not delay)

In the code below I would like the stepper to bounce back and forward between two limit switches and while it is doing this it should turn and than wait for e.g. 1 second. I thought I could achieve ...
1
vote
2answers
404 views

Why does a delay make my stepper stop? And why does the break command raise an error?

I am using a stepper motor for a project that I want it to stop. I tried for loops, while, and an if statement. All of these were placed inside the void loop, because it raised an error. My code ...
0
votes
1answer
402 views

Set Low Power Level or Enable Pin of stepper driver, so stepper does not get hot

I am using the code below with this stepper shield: https://www.dfrobot.com/wiki/index.php/Stepper_Motor_Shield_For_Arduino(DRV8825)_SKU:DRI0023 Everything works, but tends to get hot (62.3 Celsius)...
0
votes
1answer
1k views

Accelstepper run stepper backward

Update: Below I implemented how I understood your suggestions. And it still does only turn in one direction (forward). Curiously if I entered M_DEST in the stepperOneForward() function it turned ...
0
votes
2answers
123 views

28 BYJ stepper motor runs faster using delay() and little slower using millis(), why?

I'm working to develop a code for the stepper motor to use it in a project. And since using delay() isn't as efficient as millis(). So I first developed the code that use delay with 1ms delay between ...
0
votes
1answer
2k views

Using pushbutton to make Stepper motor rotate 90 degrees

Using a 28BYJ-48 Motor with a ULN2000 Driver. The motor works fine since I can rotate it using serial input. Pushbutton is connected properly, Can light up an led if I connect one. I want the motor to ...
0
votes
0answers
370 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 ...
1
vote
1answer
76 views

Help with placing a function please

I am trying to call a function that will turn a stepper motor a number of steps depending on the value submitted through the serial console. For an example, if I submit 50, the motor should turn 50 ...
0
votes
1answer
170 views

Arduino based fully controlled aquaculture

I am doing a project on aquaculture,so I am using temperature sensor, water level sensor, dissolved oxygen sensor, pH sensor and also 4 motor's and water heater is it possible for a single Arduino to ...
0
votes
1answer
385 views

Controlling multiple stepper motors non-simultaneously

I want to control multiple stepper motors one after another and at different speeds/directions. I am using the ULN2003 driver and the stepper has 5 coils. My current code for controlling one motor is:...
0
votes
1answer
50 views

How can I pulse a stepper motor whilst also wanting to handle other tasks?

A Polulo A4988 driver board listens for a LOW -> HIGH pulse on a digital pin to step a stepper motor. A simple way to pulse this with a delay of say 100μs, is to use the delayMicroseconds function:...