thank u for your reply actually i want the solar tracking system in which i am connecting a solar pannel over a motor which has to track as per sun track . I want design the same with 89c51 or 89c52 i need a circuit of sensor which is interfaced to mc and a motor control circuit from its port .This is for my educational project kindly help me