Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
30 views

driving an stepper motor using esp8266

I have an stepper motor, and a stepper driver Uln2003a 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
39 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
9 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
18 views

how can use arduino to control a 24 V stepper motor? [closed]

The description of the motor is the following
0
votes
0answers
29 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 ...
-1
votes
0answers
39 views

i2C Arduino Programming [on hold]

I am attempting to run aI'm synchronizing both Arduino to control 2 Motor driver module which each of the Arduino UNO board controlling a single motor driver module. For sure there will be one master ...
0
votes
0answers
13 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
23 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
12 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
0answers
43 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
27 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-...
0
votes
0answers
106 views

Closed Loop Stepper Motor Control with ACE128 Absolute Rotary Encoder

I am using a 1.8 Resolution Stepper Motor controlled by a L298N driver and Arduino Mega. I have attached the ACE 128 Absolute encoder to the motor to use it as a closed loop system. The idea is for ...
-1
votes
2answers
45 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
60 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
1answer
115 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
38 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
182 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
81 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
223 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
87 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 ...
0
votes
0answers
82 views

Problems reading Ultrasonic Sensor and starting Stepper Motor

I have a problem with my Stepper Motor and Ultrasonic Sensor. I want to have the Sensor reading the distance, and when it is smaller than 20, it tells the Stepper Motor to stop. I can read the ...
1
vote
1answer
37 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 ...
1
vote
1answer
71 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
0answers
99 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
31 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:...
1
vote
0answers
370 views

Stepper Motor button control with A4988 Driver

So I'm quite new to programming and have inevitably worked myself into a corner. What I am trying to accomplish is to allow for a stepper motor, (powered by an A4988 driver) to move with the push of a ...
1
vote
1answer
1k views

Controlling stepper motor direction with push buttons

I'm trying to control the direction of three 28byj-48 stepper motors using the ULN2003 drivers. I am using 6 push buttons, 2 for each motor. what I want is for each motor to be stationary by default ...
2
votes
2answers
155 views

How do I make a stepper motor compass cross 360° to 0°?

I am building a wet compass for a flight simulator. I currently have a stepper motor functioning well with the simulator but at the point of crossing 360° to 0° the stepper does a full reverse 360° to ...
0
votes
1answer
444 views

Changing PWM on Arduino Mega, pins 9 & 10 to 20 to 25 KHz

I'm trying to run a Nema 17 motor with a l298N motor Driver for a school project. The issue is that I am running the motor with PWM to avoid overheating of the driver, however the resulting noise at ...
0
votes
2answers
2k views

Ramping a stepper motor

I at the moment trying smoothly move a stepper motor. The problem with the stepper motor, is that it makes a high pitch noise while it moves, or sometime a crackling noise from the motor. So i tried ...