I don't think we want to design your setup and write the code for you.
Come up with your own design and come back if you run into problems. If you have any understanding of the process (we certainly don't without lots more information from you) then the coding should be pretty simple.
My proj. is to track a photovoltaic cell(PV cell) to its maximum power point(MPPT) using PIC16F877 and to drive the PV cell to the MPPT using a Motor(Steeper or Servo motors).
To control the motor i am plaaning to write a programme in PIC..and from PIC the signal goes to Posititon Encoder IC and thus motor drives the PV cell accordingly to the MPPT.