Society of Robots - Robot Forum

Software => Software => Topic started by: kawal on November 16, 2010, 09:59:00 AM

Title: Servo in a loop ?..
Post by: kawal 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
Title: Re: Servo in a loop ?..
Post by: waltr 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.