sorry i was very vague the headlight motor is a simple DC motor, and i'm going to fit a resitor pot to the headlight to measure the angle of the headlight, say this pot gives me 80 when the light is down and 200 when fully open, the pot in the dash will give 0 to 255 ofcourse. so i'll need 0 to equal 80, 200 to equal 255, AND every 2.125 steps of the dash pot correspond to 1 step of the headlight pot. i can't measure .125 from a pot. but, i'll measure the dash pot(say 60) divided 2.125 = 28.23.. so that's 28 steps for the headlight pot + the bottom position(80) = 108, so now i work out wich way to turn the motor untill i reach 108. that way i hope to use the full range of the dash pot. now you can see i need division routines, i need to store top and bottom levels while the power is off, and i also need to constantly calculate what position the dash pot works out to be for the headlight pot. i don't dare remove the current motor and replace it for a stepper, also remember everything needs to be done for both headlights :( can you think of a simpler method? thanks for your advice -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics