>
> I don't think it is toast, I've opened it and nothing looks fried or
> anything. What I really think it is is the pulse width being put out
> by the oopic. How would I change the pulse width in the code? With
> PWMS or another command? What would a small code example be?
Use the oServo object and the code given in the documentation. You
might try changing the end points in the loop such that S1 only varies
between 10 and 40 to be certain the value isn't outside the range of
your servo.
The oServo object is KNOWN to work - many thousands of servos are
being driven. HOWEVER, if your digital servo is sensitive to the 20
mS (50 Hz) timing, you won't get there with an OOPic. The frequency
is never exactly 50 Hz; it is either about 35 Hz or about 70 Hz. Then
again, the frequency can be slower if there are a lot of servos
defined and running at maximum width on the output pulse. Read the
oPWMS documentation for an explanation. Read the oServo documentation
for even more information.
Using the sample code, connect a voltmeter to the IOLine and ground.
I measure about 0.12V and 0.4V. Note that the code spends 15 seconds
at each level. A little long for my short attention span.
Many times when these things don't work, it is because the OOPic is
using a different power source that the load and the ground sides of
the two sources are not tied together.
Richard
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
No comments:
Post a Comment