Sounds like it to me I assume you are using a D/A to move the pot in the headlight? (seems strange). Anyway, you want to make the high end of the dashboard pot set to the maximum voltage of your A/D. Now, presuming you are using one of the PIC 10 bit A/D, and lets just assume, for the sake of argument, your D/A is an 8 bit D/A, just shift the dashboard pot position right 2 bits before sending it you to the D/A. If you are using a stepper motor in the headlight pot, then figure out the number of steps, and do a little dancing around with the dashboard pot voltage to make the stepper count work out. Watch out for your A/D resolution, though. I am really agin complicated, but I doubt you have to worry about slow. Physical things like a pot are amazingly slow compared to the PIC. 72/73 de WB8RCR http://www.qsl.net/wb8rcr didileydadidah QRP-L #1446 Code Warriors #35 ----- Original Message ----- Sent: Saturday, January 03, 2004 9:58 PM Subject: [PIC] : car headlight control my concern is the code is getting too big and complicated for such a simple device, and maybe too slow? is there an easier way? thanks -- 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