Welcome to Synthiam!

Program robots using technologies created from industry experts. ARC is our free-to-use robot programming software that makes features like vision recognition, navigation and artificial intelligence easy.

Get Started
Asked — Edited

Servo Lag?

Hi,

I have a project where I need one servo to follow anothers servo's motion, but with a lag of say a second. The servos would be on spereate pins, but need to use the same data, one just needs a lag of one second behind the other. Any ideas on how to accomplish this? Thanks in advance.

AI Support Bot
Related Content
Synthiam
United Kingdom
#1  
All of this may become redundant if there is an option in one of the controls (I don't know, I have to admit I haven't used the controls for a while now and I don't have ARC in front of me to check).

You could use a script to do it. Short and simple...

Assumed D0 is the master servo and D1 is the slave following;

Code:

#Set up a label for looping
:loop
#Wait for the master servo to move
WaitForServoMove(D0)
#Wait for 1 second
Sleep(1000)
#Move the slave servo to the position of the master servo
Servo(D1, GetServo(D0))
#Return to the start
Goto(loop)
PRO
USA
#2  
Thanks Rich. You are certainly the goto guy. That is exactly what I was looking for!
#3  
@fx ,just a thought for in the future if you need servos to move in the same direction at the same time you can try a y cable or a tandem FUTUBA box that allows trim and synce to be adjusted.
#4  
What Rich said:) @Rich, you my friend, were quick on the draw there. LOL:)