In control of mobile robots, precision plays a key role in path tracking. In this paper we have intended to use hybrid stepper motors for precise control of the two wheeled robot. A control algorithm was developed to control the robot along different trajectories. We have found that stepper motors are more accurate for path tracking than normal DC motors with wheel encoders and one can obtain the implicit coordinates of the robot in runtime more precisely. Getting the precise coordinates of the robot at runtime can be used in various SLAM and VSLAM techniques for more accurate 3D mapping of the environment.