At 16:22 03/17/99 +0530, Ravi Pailoor wrote: >I have a PIC controlling 2 stepper motors connected to a light source. > >I need to move the light source in a circle and a spiral. > >Does anyone have PIC / 8031 based algorithm to draw circles ? i assume you have the step motors controlling the x and y directions linearily, right? then you need a sine function. scott dattalo has one at http://www.interstice.com/~sdattalo/technical/software/pic/picsine.html for a circle, x and y are 90¡ shifted in their phase. ge