Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Using a controllerless servo on the Raspberry Pi with Perl

by GrandFather (Sage)
on Jul 12, 2017 at 21:36 UTC ( #1194967=note: print w/replies, xml ) Need Help??


in reply to Using a controllerless servo on the Raspberry Pi with Perl

Your DELAY constant is 1 ms, but you say the pulse rate for the PWM servo is 50 Hz which is 20 ms, so assuming your control for loop has trivial overhead you are messing with the control pulse width 20 times faster than the pulse is generated. What don't I understand here? Could this be related to "My servo required me to tweak these numbers a tiny bit"?

Premature optimization is the root of all job security
  • Comment on Re: Using a controllerless servo on the Raspberry Pi with Perl

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1194967]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-12-12 07:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (327 votes). Check out past polls.

    Notices?