Author Topic: Pauses  (Read 2574 times)

0 Members and 1 Guest are viewing this topic.

Offline airman00Topic starter

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,650
  • Helpful? 21
  • narobo.com
    • Narobo.com - Mechatronics and related
Pauses
« on: November 15, 2007, 09:46:47 PM »
How much pause should I allow before ( or after) pulsing out a servo command?
How much pause should I allow for an LCD to initialize?

and theoretically, If i were to send a pulse of 160 to servo1 and then immediately after send a pulse to servo1 of 190 , wouldn't the pulse be affected and changed to a pulse that is not 160 or 190?

Also, If I give a pulse of 150 and then clear the output and then give a pulse of 160, wouldn't the pulse given out be messed up?


P.S. I have created working code , but I'm just looking to see the "right" way of doing things.

Thanks,
Eric

Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: Pauses
« Reply #1 on: November 16, 2007, 07:53:57 AM »
It depends on the servo . . . whether it is digital/analog, etc . . .

About 10 to 20 ms is sufficient for me - less than that and the servos start spassing . . .

I like to do this:

loop 3 times:
servo1_hi();
delay(time);
servo1_low();
//other servos go here too
delay(about 10ms);//delay can be less for each servo being commanded

 


Get Your Ad Here