Hot answers tagged

2

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 it has to be like that. Then, if the motor vibrates or click, it may be one of these problems: You didn't connect the motor properly The current is set too low ...


1

I cannot say, why that principle works for the author of that tutorial. Though I can guess the reason, why your motors runs so slow. The function, that actually drives the motor, is stepper.runSpeed(). You call it exactly once at the end of the loop() function. Though that function is designed to be called very often, as it only checks, if it is time to do a ...


1

So the problem was that somehow the potentiometer had reset its own vref output. I couldn't adjust it after it did this. I replaced both drivers and it works like a charm now.


1

Instead of delaying between pulses, loop around the main loop() function as fast as possible constantly checking the time to see if we should pulse the motor. This means that computations can occur in the loop (so long as they are reasonably fast). To implement this, the micros() function can be used to get an unsigned long representing the microseconds ...


1

MPU6050 can use only I2C. Those are pins A4 and A5 on an Uno. 5V and ground are 5v and ground, no matter from which pin


1

A minor issue that probably won't affect your result is that Serial.println("ONE STEP CLIMB ON VERTCAL AXIS"); --> digitalWrite(9,LOW); // This line 'needs' adding digitalWrite(7,HIGH); // Set Dir high for y I can't see anything in the code that will prevent the motors running, OK it will take ~13 seconds to start moving, but it should move. So - ...


1

You have a 30K resistor divider in series with the trimmer. Change the 30K resistor for one rated at 27K to obtain those higher values. ;)


1

Add a second delay after: digitalWrite(X_STEP_PIN , LOW); Also try increasing the delay maybe you are pulsing the step pin too fast.


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