Description:
The 12V DC Gear Motor 166RPMw/Encoder is a Gear Motor w/Encoder. These units have a 0.61'' long, 6 mm-diameter D-shaped output shaft. This motor is intended for use at 12V, though the motor can begin rotating at voltages as low as 1V. This motor is an ideal option for mobile robot projects.
Specification:
You may download the library and sample source code and open it on your Arduino IDE. Choose the correct board and port. Then, upload your Code into your Arduino Mega Board.