The paper presents a program in Microsoft Visual C++ 2008, how control an USB interface board used to command a unipolar stepper motor. The stepper motor driver is made with a dedicated integrate circuit. This unit is used to control a photovoltaic panel solar orientation. The orientation angle is dictated by a sensor made of two photodiodes.