Stack Exchange Network

Stack Exchange network consists of 174 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]

The tag has no usage guidance.

-1
votes
1answer
43 views

Arduino NOOB - Stepper Motor + Rotary Encoder Control

I have a very basic Arduino setup : Arduino Uno Rotary encoder Nema 17 stepper motor + A4988 driver How can I control the rotation of the motor with the rotary encoder? How can I get it to make one ...
0
votes
0answers
40 views

DIY short range Lidar, syncing threads

PROJECT: I am building a short-range Lidar for use on an autonomous vehicle, it utilizes: 2 - Adafruit VL53L0X (Time Of Flight Sensors) 1 – Nema 17 Stepper Motor (200 Steps) 1 - Adafruit TB6612 ...
0
votes
1answer
30 views

How to connect a SilentStepStick TMC2130 stepper driver?

please excuse the noob question Am connecting a SilentStepStick to arduino with a stepper, for bench testing. It requires 5V power, plus I have a 24V power supply for the steppers. +5V connected to ...
0
votes
1answer
27 views

problem with reading PS3 controller buttons

I'm working on a camera slider mount with an X stepper (to move along slider), Y stepper (pan left right) and Z stepper (tilt up down). All of this is being controlled by a PS3 controller (PS3BT ...
1
vote
1answer
31 views

How to randomize the delay in Arduino Stepper code?

How does one add a random DELAY between 10 and 20 seconds? For example in the following stepper logic I have a delay of 11 seconds - expressed in milliseconds as: delay(11000). What would I need to ...
1
vote
2answers
39 views

Arduino Clock Speed effect on Stepper Speed

I am running a Pololu A4988 Stepper driver with two (soon to be three) steppers using the AccelStepper library. I have wired 1/8th microstepping on both as smooth running is important. The motors ...
0
votes
1answer
58 views

Stepper Motor - Limit Switch for Position

I'm following this guide https://howtomechatronics.com/tutorials/arduino/diy-motorized-camera-slider-pan-tilt-head-project/ My question is with the following piece of code used to calibrate the ...
0
votes
2answers
50 views

Passing a reference as a variable

I have a function for manually jogging a stepper motor using the AccelStepper library. At the beginning of the function I would like the motor in question to be selected until told to stop. Here is ...
0
votes
2answers
100 views

Nema 17, Arduino Uno and stepper motor drive ~2H42B

I tried running Nema 17 stepper motor using the drive in the pic below (not the basic L298N drive, which BTW I successfully used to rotate the motor) . Could any of you review my existing connections ...
0
votes
1answer
38 views

I want to make my stepper motor work for 1 hour [closed]

I already tried code that makes the stepper motor work for a few minutes only. I'm using a clock module, a DS1302 and the stepper library already present. Also the driver I'm using is an L298n. If ...
1
vote
1answer
67 views

Problem in reading data from encoder with arduino

Hello guys I am trying to count the number of the steps of a stepper motor with an encoder (Avago heds). I found an Arduino sketch to count that steps and display them on the console and I found ...
0
votes
0answers
55 views

TMC2660 SPI Communication

I'm using ESP32 Doit Board 40Mhz, and trying to communicate with TMC2660-BoB. I've successfully flashed Arduino into ESP32, and it's working well. I've got SPI connection right. Meaning by that: (you ...
1
vote
2answers
33 views

DC motor with L289N driver cannot set RPM lower than 130

My setup is using an Uno r3, and the motor driver is an L289N. I am going to set it to run at a lower RPM, but when adjusting enA or enB to set to below 130, it won't spin. // connect motor ...
0
votes
0answers
103 views

Programming NEMA 17 2 Phase, 4 Wire Stepper Motor

I have successfully programmed the Stepper Motor 28BYJ-48 with ULN2003 driver using the code below. But then I replaced the 28BJY-48 with a NEMA 17 Motor then it won't work anymore. I researched that ...
1
vote
2answers
45 views

Too many amps for Step motor

I have an adafruit motor shield and attached the Nema 17 stepmotor. Now the big problem is trying to power it without it overheating. I was originally using a 12v 6a power supply but quickly switched ...
1
vote
1answer
58 views

How to drive 16 stepper motors with Arduino?

I'm trying to drive 16 of these little steppers on an Arduino Uno. Each test driver uses 4 digital pins for control (2 for each coil) so that would be 64 pins I will need. I'm thinking either ...
0
votes
1answer
41 views

L298 with stepper.h disable break

I try to control a Stepper motor with an arduino and a L298. I use the library stepper.h and it works well but i have a problem : the L298 become very hot. So i want to disable the break (the thing ...
0
votes
0answers
35 views

Can I output the movement(steps has done or degrees) of a stepper-motor that i manualy turned his axis?

I'm thinking for a project that involves a stepper motor; What I want to do with it is if I can somehow output the steps that has done when I manually rotate the axis ? I want to record that value ...
0
votes
0answers
100 views

Error when moving stepper motor - Alexa curtain opener

I've hit a wall with my code and keep getting a Panic error like this: Panic /Users/lewisaburrow/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/core_esp8266_main.cpp:98 ...
0
votes
2answers
65 views

Action while button is pressed

My issue is that I can't rotate the motors continuously. If I press any button, motor.step will be executed and then it stops, even though I didn't release the button. This is my project so far. Code: ...
0
votes
2answers
41 views

Question about Variables [closed]

is there a way to use a previous assigned value to variable to adjust the step motor? what i mean is: example: Sensor reads 100 degrees so Adjust the step motor to 100 degrees and hold, then after ...
0
votes
1answer
118 views

A4988 and capacitors [closed]

I’m working at a project which involves 3 stepper motors that are driven by A4988 drivers. I have read that I have to connect an 100uf capacitor in parallel with the motor power supply that goes to ...
1
vote
1answer
69 views

Slowly decreasing the speed on a steppermotor over time

I am currently working on an elevator for my examsproject in school. It's a quite simple simulation of a lifesize elevator. I'm currently using a steppermotor for the elevatorchair and it's set with ...
0
votes
1answer
634 views

Run two stepper at same time

I am trying to run two stepper motor at same time with different RPM. I decided to use two rotary encoder for change the RPM separately. But, I am in problem with driving stepper at same time due to ...
0
votes
1answer
33 views

Steppers only vibrate, not rotate with I2C

The goal of my project is to be able to control two steppers with 4 buttons. Steppers are connected to Adafruit Motor shield(the older one) which is stacked on Arduino UNO, buttons are connected to ...
0
votes
1answer
178 views

Arduino UNO(master read) + NANO(slave write) i2c buttons+stepper

First of all, I'm new to arduino. Check the EDIT line below the two codes. I have connected motor shield to arduino uno. Connection between the two arduinos are A5 to A5, A4 to A4, 5V to 5V and GND ...
0
votes
1answer
104 views

Adafruit Motor Shield steppers not turning

The Adafruit Motor Shield is connected to 2 steppers which are wired correctly and work when I just use the onestep function. I understand that I cannot drive both at once, so I am using a while loop ...
0
votes
1answer
41 views

Two stepper one by one

I want to run two stepper motor one after the other Stepper1 has to5 rotation And stepper 2 has to move 1rotation Here is the code Stepper 1 is nema 34 And stepper 2 is nema 24 #include <...
0
votes
0answers
48 views

Can't power off stepper motor when not being driven

I've tried using various classes from the AccelStepper library to get my stepper driver to switch off its enable pin when the motor isn't being driven to a position. I've got a sketch which allows me ...
0
votes
1answer
106 views

Connecting six stepper motors to Arduino Uno [closed]

I need to control six stepper motors using an Arduino Uno but most of the CNC shields I saw can control only four at a time. Is there a way to interface two CNC shields with a single Arduino Uno?
-1
votes
1answer
208 views

Will Arduino Mega support stepper motor NEMA 24, NEMA 34

Will two stepper motor NEMA 24, 10 kg cm, 2. 8 amp, 24 vdc work at same time on Arduino Mega and when they stop stepper motor NEMA 34, 34 kg cm, 4amp, 24 VDC will work or not? This is my first project ...
-1
votes
1answer
152 views

Rubik Cube Solver (Program Help!) [closed]

I am Working on the final Year Project, The title says it all. Before I explain my project I would like to state that I'm very much interested in the project not because of the deadline but rather ...
-3
votes
1answer
60 views

Is there a stepper dirver array for nema 17 and 14 at least with 6 drivers? [closed]

I want to build a 6 axis robot arm. Probably i will use Nema 17 and 14 stepper motors with 2A-3A. For these motor types i need stepper drivers. I searched for driver arrays but can not find a product. ...
2
votes
1answer
181 views

How to drive a stepper motor, by having it go even steps forward and odd steps back? [closed]

I have a question about driving a stepper motor back and forward. Basically I want it to do a total of 24 steps (12 forward and 12 back) but I don't want to repeat the same steps when coming back. So ...
0
votes
4answers
178 views

Detecting step motor effort

I'm working on a project using steper motor which turn a threaded shaft (long screw) in order to open or close a water valve (high flow, high pressure). My fear is that, after a long time of use, the ...
1
vote
3answers
155 views

Arduino Uno + MSD-11-EM stepdriver + NEMA 17

I am working on Arduino code for stepper motor rotations control. I want to rotate a stepper for only 4 rotations. The code is working fine but that will run only once as I have put that in setup(). ...
0
votes
1answer
1k views

How can I change the speed of a stepper motor?

I am new to Arduino and am trying to implement different rotational speeds for a stepper motor. I am using a Nema 17 bipolar stepper motor, a Big Easy Driver, and an Arduino Uno. I've been trying to ...
1
vote
1answer
76 views

Automatic seeder [closed]

I'm working on an automatic seeder Here is picture of my project, I need to create code for the stepper motor arm. step motor arm need found home position step motor arm need return to 0 and ...
1
vote
0answers
126 views

Stepper motor just oscillates with arduino and L293D

I am trying to control my stepper motor using arduino duemilanove, with L293D as H-bridge. I use a NEMA 17, stepper motor 42BYGH-036B I have used both the default example program from arduino IDE, and ...
-3
votes
2answers
640 views

How to calculate step delay? [closed]

I'm struggling with get suitable step delay while driving a stepper motor. How to calculate exact step delay for 1.8deg/step stepper motor? Give some example calculation.
0
votes
1answer
621 views

Controlling a stepper with MATLAB [closed]

I am trying to control a 28BYJ-48 stepper motor + ULN2003 motor driver module (this is a picture) using MATLAB. I tried to follow the instructions on this page, but these instructions are specific ...
0
votes
1answer
876 views

Arduino Mega 2560 + BL-TB6560+ Stepper

I am working on an Arduino Mega 2560 and BL-TB6560-V2.0 driver for running a stepper motor. Initially I was able to run the stepper in both direction with code given and a schematic as per this image. ...
0
votes
0answers
52 views

My stepper motor works fine when I turn on, but won't stop when I has send SMS to stop .. please help :(

First of all .. i'm sorry for unclear question .. this is my 1st time using this forum .. i was edit my code to focus only for the problem .. my project used arduino mega, gsm SIM900, and Stepper ...
0
votes
0answers
80 views

3-5v micro stepper connected to A4988 driver does not move and makes whirring noise

I am kind of a newbie when it comes to stepper motors so I am hoping I am not asking any stupid questions. I am trying to run a 3-5v micro stepper motor (PM15S-020-SKH4) using a Pololu A4988 stepper ...
1
vote
0answers
488 views

A4988 Vref too low

I'm driving a stepper rated at 5V/1.7A using an A4988-based driver circuit with a 12V power supply. An Arduino controls the stepping sequence. According to the datasheet for my A4988, I should be ...
-4
votes
1answer
59 views

Need help with my urgent problem [closed]

Today I found a problem in my project, here is the video of problem https://streamable.com/wamm9 code MASTER : https://www.dropbox.com/s/l4x3zwzv6szrs50/MASTER.ino?dl=0 #include <Wire.h> ...
0
votes
1answer
45 views

Adafruit Motor Shield and Bridge Library for Yun Shield

I am using the Leonardo board with the Adafruit Motor Shield v2, 2 steppers and the Yun Shield. The yun shield and steppers all run harmoniously, however, as soon as I do Bridge.begin() and anything ...
1
vote
1answer
53 views

Can not receive data from UART with stepper motor

I am using an Arduino Mega2560 While my motor is moving I can not receive anything from the UARTs. When the motor ends movement, I receive data from UART. How can I make my motor move without ...
2
votes
1answer
176 views

How can I swap a servo with a stepper motor?

I'm looking for a way to swap servo 1 with a stepper motor to achieve a single direction circular motion with stops and delay. Instead, now I have the servo going back and forth to repeat the action. ...
0
votes
1answer
598 views

How to record steps a stepper motor takes and how to rotate it backward and forward with analog input?

I am trying to control a stepper motor's movements with a pressure sensor input (0 to 5 V digital). For example, if the input is 4 V then the stepper motor should move forward 4 steps. If the input is ...