Controlling Servo Run Time with FOR ... NEXT
CodeOfficer
Posts: 3
I picked up a USB BOE-Bot a bit ago, and I'm doing the exercises in the "Robotics with the BOE-Bot" book.
I'm kinda stumped on the subject of Controlling Servo Run Time in FOR ... NEXT loops.
Specifically, page 82 gives the following example:
Its explained that each PULSOUT command last for 1.7ms (I get this), and each PAUSE command lasts for 20ms (totally obvious to me) ... but then its quickly stated that it takes 1.3ms for the loop to execute. I'm not sure where this number comes from. Anyone have a quick answer?
Thanks!
I'm kinda stumped on the subject of Controlling Servo Run Time in FOR ... NEXT loops.
Specifically, page 82 gives the following example:
FOR counter = 1 TO 100 PULSOUT 13, 850 PAUSE 20 NEXT
Its explained that each PULSOUT command last for 1.7ms (I get this), and each PAUSE command lasts for 20ms (totally obvious to me) ... but then its quickly stated that it takes 1.3ms for the loop to execute. I'm not sure where this number comes from. Anyone have a quick answer?
Thanks!
Comments
I must have missed that being explained in the book prior to this chapter/example. Thanks for the quick reply Alan.
Is there a place I can read the work Scott had done?
http://www.emesys.com/BS2index.htm
here's the URL for anyone else who'd want it: www.emesys.com/BS2speed.htm
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.codeofficer.com
Post Edited (CodeOfficer) : 9/4/2006 4:30:17 PM GMT