Image Courtesy of SparkFun Electronics
Use a servo for precise position control (unlike a DC motor). The red wire is 5V, the black wire is ground, and the white wire is the control signal. Servos can consume a lot of power, so consider connecting the 5V wire to a separately regulated 5V supply instead of the Arduino’s 5V power. Unless modified, servos generally have a 180 degree rotation range.