Welcome to Synthiam!

The easiest way to program the most powerful robots. Use technologies by leading industry experts. ARC is a free-to-use robot programming software that makes servo automation, computer vision, autonomous navigation, and artificial intelligence easy.

Get Started
Asked — Edited

Camera Folowing Movement Using Horizontal Servo

So I have a Camera mounted on a Ping Sensor mounted on a horizontal
servo. I tried several existing scripts but could not get the servo to move
The servo in on D0 and the Ping is on D21. So what is suppose to happen is if the
object is with in a given ping distance, then the camera will turn to view the object and the servo will track the object until the object leaves the ping field at this point the servo goes to center. Any one have any scripts to do that they would be willing to donate
Appreciate it


Upgrade to ARC Pro

ARC Early Access will give you immediate updates and new features needed to unleash your robot's potential!

AI Support Bot
Related Content
The ping is on D21 and what else? The ping requires two ports, one for ECHO and one for TRIGGER.
D20 for the ping D21 for the Echo
I do see the ping working and the camera is working and the servo did center
I did enable tracking type of Motion on the camera I enabled servo Tracking and assigned D0 to X axis, nada tried y axis nada
RotateNoneFlip None
So Im missing something
yeah - you're missing performing any of the activity tutorials.:)

Do this...

1) Load ARC

2) Press Project -> Add Control -> Scripting -> EZ-Script

3) Press the gear icon on the EZ-Script control

4) Paste in this code



$ping = getping(d20, d21)

IF ($ping < 20)
Servo(d0, 10)



5) Save the script

6) Run the script by pressing the start button

You can find activities in the learn section which will explain how to program and demonstrate how controls work. Press the ? (question mark) on any control to read about it. The CAMERA CONTROL is a good place for you to start using the question mark. Also, there are MANY tutorials in each control
Yea done some of those but they talk about individual actions for individual devices, when it comes to inter-migration between the different devices I have not found much. thanks anyway