Hot answers tagged

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

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