go away spammer

Author Topic: Servo in a loop ?..  (Read 1649 times)

0 Members and 1 Guest are viewing this topic.

Offline kawalTopic starter

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
Servo in a loop ?..
« on: November 16, 2010, 09:59:00 AM »
Hi guys,

I just want to know that if i use a servo for closing and opening the mouth of a gripper,then do i need to program a servo in a loop or i just can program it without a loop..for acquiring grip..

Hope u understood what i meant to ask..

Thanks in advance

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,944
  • Helpful? 99
Re: Servo in a loop ?..
« Reply #1 on: November 16, 2010, 11:25:04 AM »
Quote
if i use a servo for closing and opening the mouth of a gripper
Sure.

Quote
do i need to program a servo in a loop or i just can program it without a loop
A hobby servo require the position pulse to be sent about every 20msec. The ucontoller code must send this pulse continuously so the code will either need a timed loop or a hardware timer driven ISR.

 


Get Your Ad Here