Hi Justin, you can find code to do this by searching the archives. If you want to try it yourself, its not that hard. 1) set signal line low (or hi depending on servo model) 2) call a delay routine you write that takes a number 0..255 and delays between 1 and 2ms depending on delay variable passed in 3)set signal line hi (or low as needed) 4) call a delay routine of around 40ms (0.040sec), this is not a critical delay 5) loop back to 1 you may have to experiment to determine if your servos need to be pulsed hi or low and invert the bit settings mentioned above. the delay routine mentioned in 2 above is the only tricky part. 256 delay values is getting close to all you expect to resolve through the mechanical system in the servo. ======================================================= Lawrence Glaister VE7IT email: lg@jfm.bc.ca 1462 Madrona Drive http://jfm.bc.ca/ Nanoose Bay BC Canada http://gspy.sourceforge.net/ V9P 9C9 http://members.home.net/cncstuff/ ======================================================= ----- Original Message ----- From: Justin Fielding To: Sent: Thursday, March 08, 2001 12:47 PM Subject: [PIC]: Driving a servo? > Just started playing with timing on my 16F84's and thought driving a servo > would be idea as a little project. I know that the pulses should be from > 1 - 2 ms, both being the extremes of travel. What sort of resolution should > i be using (e.g multis of 0.1 ms etc? ) and what shouls the spacing between > pulses be? > > Thanks, > > Justin. > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > > > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads