We’re rewarding the question askers & reputations are being recalculated! Read more.

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

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