foamjet
10-23-2009, 04:40 AM
·Hello.· I'm hoping to get some feedback from those of you smarter than me.·
Going through the "What's a microcontroller" book for a basic stamp, I am stumbling on the servo commands.
·"FOR counter = 1 TO 150
···· PULSOUT 14, 1000
···· PAUSE 20
NEXT"
·sends 150 pulses out of pin 14, each of which last 1000 x 2us or 2.0 ms.· The book says that this corelates to moving the servo horn to the 10:00 position.·
·Later in the program a command is "PULSOUT 14, 750" and 750 x 2us = 1.5 ms.· 1.5 ms turns the servo horn to the 12:00 position.
I get the math, but what are the upper and lower limits of the servo horn travel (in milliseconds) and how does a given millisecond command translate to a certain position on the clock face.
·
Going through the "What's a microcontroller" book for a basic stamp, I am stumbling on the servo commands.
·"FOR counter = 1 TO 150
···· PULSOUT 14, 1000
···· PAUSE 20
NEXT"
·sends 150 pulses out of pin 14, each of which last 1000 x 2us or 2.0 ms.· The book says that this corelates to moving the servo horn to the 10:00 position.·
·Later in the program a command is "PULSOUT 14, 750" and 750 x 2us = 1.5 ms.· 1.5 ms turns the servo horn to the 12:00 position.
I get the math, but what are the upper and lower limits of the servo horn travel (in milliseconds) and how does a given millisecond command translate to a certain position on the clock face.
·