Arduino DC motor with encoder

Hy Everyone

I need help with my project on AS/RS system. I will be using 4 dc motor with encoder. My main aim is to position control. Can anyone help me with this. I need to count the pulses it makes and need to control the position of dc motor. I have bought these motors from Pololu Electronics.
Below is the link for motor specification.
[

Kind regards
Kunal Nayak ](Pololu - 19:1 Metal Gearmotor 37Dx52L mm 12V with 64 CPR Encoder (No End Cap))

Automatic storage and retrieval system, for the uninitiated...

You have three parts to motion control:

  1. read the encoder so that the actual position is available
  2. be able to drive the motor according to a (signed) drive output variable
    and
  3. P, PD or PID loop to close the control loop, which takes as its
    error input target_position - action_position.

So which of 1,2,3 are you most stuck with?

I am stuck up with the coding of Dc motor with encoder. since I am new to these encoder type motors. I want to move to a certain distance with the help of encoders as feedback.

Youtube, Google, search here, etc - there's plenty of stuff out there.