Skip to main content
4 votes
Accepted

Stepper Motor is not working with A4988 board

You have to connect the sleep and reset pin together. I assume that you took this schema on how to mechatronics. In his video you see that the sleep and reset pins are connected. I don't know why but ...
user's user avatar
  • 56
4 votes
Accepted

How to calculate required amperage of multiple motors?

I don't know if the amperage is additive with each additional motor Yes, amperage is additive. the Arduino cannot handle over one amp but 0.24*5>1 That is correct. But the stepper motors should ...
chrisl's user avatar
  • 16.3k
3 votes
Accepted

Controlling stepper motor direction with push buttons

Try using digitalRead() for button presses. Chances are your buttons, especially when on a breadboard, don't return exactly 0 for analogRead(). IMHO, simple On-Off switches should always connect your ...
towe's user avatar
  • 865
3 votes

Accelstepper run stepper backward

First, you are creating/destroying the AccelStepper stepper1() object at every call. This is not right, as the library can no longer keep track of the stepper position and state. The stepper object ...
jose can u c's user avatar
  • 6,974
3 votes
Accepted

2 stepper drivers speed control

Changing the duty cycle does not change the frequency of the PWM signal. The tb6000 needs a pulse to trigger a step of the motor. If the frequency does not change the pulses per second do not change ...
Peter Paul Kiefer's user avatar
3 votes
Accepted

Ok to Connect 2.9V Stepper to 3.3V pin?

Motors draw a LOT of current compared to CMOS circuits. The 3.3V output on most Arduinos can only provide a very small amount of current. The Arduino Uno, for example, says it only provides a max of ...
Duncan C's user avatar
  • 5,702
3 votes

What motor to move a small telescope?

I wouldn't use a servo for this. You don't have very fine control over the angle with a servo. Also with a typical telescope the focus is more on rather slow and precise movements, instead of fast ...
chrisl's user avatar
  • 16.3k
3 votes

Digispark Rev.3 Kickstarter ATTiny85 using all 6 pins

There is no such Digispark board as the Rev 3. There was going to be, but there was a mistake, so they went straight from Rev 2 to Rev 4. However unscrupulous Chinese counterfeiters are making "...
Majenko's user avatar
  • 105k
3 votes

Digispark Rev.3 Kickstarter ATTiny85 using all 6 pins

As an addition to Majenko's answer I can report having used many of the "Rev.3" counterfeits, every single one came with chip default fuses thereby reset enabled. You can set the RSTDISBL ...
scitor's user avatar
  • 169
2 votes

Arduino based fully controlled aquaculture

I would suggest finding sensors that work on an I2C bus. This way all the sensors are only using two pins for data. That will free up other outputs for motors, heaters that will probably be on relays ...
Chad G's user avatar
  • 630
2 votes

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

Try manually resetting the board: Before uploading, run Verify. Hold the reset button and click Upload. Release the reset button. If that worked, your board's reset isn't fried, it just isn't ...
JRobert's user avatar
  • 15.3k
2 votes

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

Hi here it the reference to the library functions that are available in accelstepper library. Go through the link, it will provide you the issues with your code and example for your application like @...
Vaibhav's user avatar
  • 546
2 votes

Ramping a stepper motor

I had a similar issue once before. It actually matters a lot to properly ramp up your stepper motor. Especially under load if you ramp up too steep you can loose steps. Since you are already using ...
KarlKarlsom's user avatar
2 votes

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

For those who missed the comments, what I made a mistake in, as @JRobert pointed is that I was suppose to have connected the stepper motor to a separate power supply as the Arduino was not capable of ...
Dan's user avatar
  • 61
2 votes
Accepted

How to Run Stepper motor through Serial Communication

Per the documentation of the AccelStepper’s runSpeed() method: You must call this as frequently as possible, but at least once per step interval, It appears the AccelStepper library is not ...
Edgar Bonet's user avatar
  • 43.3k
2 votes
Accepted

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

I have tested it on real motor, and it works as I want with function .moveTo . Speed slowly changed from +maxSpeed to -maxSpeed acording to Acceleration #define maxSpeed 1000 #define Acceleration 500 ....
user1329019's user avatar
2 votes
Accepted

Stepper motor driver not working properly

The "metal screw" is a "trim potentiometer" that is used to set the current used to drive the motor. It sounds like you may be altering the current when you push against it. Try ...
Majenko's user avatar
  • 105k
2 votes

Using same GPIO pins to control multiple stepper drives

Those devices use opto-isolated inputs. To all intents and purposes they look just like an LED with a resistor in series. The built-in resistor looks like it sets the current to "between 8mA and ...
Majenko's user avatar
  • 105k
2 votes

arduino 28BYJ-48 stepper only whining, not rotating

I found the problem(s) in my design, everything was right but I forgot to add eerst=nu;(first=now;, used a different language because now is used by the arduino ide). Also I didn't read the datasheet ...
TeD van Loon's user avatar
2 votes

Stepper motor and blink LED

Often, the solution to most simultaneous software delay problems is a state machine. Generally, a state machine is an infinite loop with no or few delays. The state machine's job is to keep track of ...
st2000's user avatar
  • 7,340
2 votes
Accepted

TMC2208 Stepper Motor does not change its RPM linearly

The documentation says: Currently, the largest value that will produce an accurate delay is 16383; larger values can produce an extremely short delay. The value given to delayMicroseconds() seems to ...
the busybee's user avatar
  • 2,088
2 votes
Accepted

Confusing stepper reaction to increase in delayMicroseconds()

With dt = 500 you get one step per millisecond. This is probably too fast for the motor/driver combination. When the driver tries to execute another step, while the previous is not fully executed by ...
chrisl's user avatar
  • 16.3k
2 votes

How to change the direction of a stepper motor using the AccelStepper library?

The moveTo() function takes absolute positions, so if you want to move in both directions, you should adjust the target positions accordingly. You can modify your loop() function as follows: void loop(...
liaifat85's user avatar
2 votes
Accepted

Uneven stepper motor acceleration / code execution

I tested this sketch by looking at the step pin on an oscilloscope. What I see is a square signal with a period that decreases smoothly at first, then in a manner that gets more and more jerky, with ...
Edgar Bonet's user avatar
  • 43.3k
1 vote

FlexyStepper: set current position leads to reach the old target

The point of setCurrentPosition() is to calibrate the stepper. It would normally be used in association with a limit switch of some form. If you set the motor to go to 1000 and then tell it that the ...
Majenko's user avatar
  • 105k
1 vote

Making Serial act as an interrupt

How do you know, that there is nothing in the Serial buffer, when you enter the jog() function? You don't check for this. I think your problem is actually in your getData() function. The for loop ...
chrisl's user avatar
  • 16.3k
1 vote

Motor with sinusoidal motion

Your best option would be: To have a DC motor with a reduction box so that it spins at lower speeds (Lets say 300 rpm) and have an encoder to count the steps. Either put the encoder before the ...
jDAQ's user avatar
  • 193
1 vote

Stepper motor based clock movement with DS3231

It is unclear, why you need the high accuracy, and you didn't include your code. So my explanations will be as broad as your question. "millisecond resolution" is a broad term. Generally you have to ...
chrisl's user avatar
  • 16.3k
1 vote

Control two stepper motors simulatenously?

You likely have other issues to boot based on what you said about only X1 moving, but first I suggest resolving the bug in your code. It appears to be that you have delays between your digital writes ...
Abel's user avatar
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible