Adxl345

Your motor sounds like a servo. You send a signal to the servo that represents an angle from 0 to 180 degrees and the servo moves to that angle and stops. What sort of load are you moving? There are various sizes (and stengths) of servos. The Servo library makes using servos pretty easy.