Award
Congratulations DJ Sures, for answering the question and has received an EZ-Credit award! Share what you have learned and create a tutorial to help others by clicking here.

Moving 2 Servos With Personality Generator

Assistance Requested

Help Andy Roid with their question and receive $10 of EZ-Credit to get more robots and parts from our store. The following information was provided about their previous efforts searching tutorials for a resolution.

Product: (click to view product details)

EZ-Builder Controls: (click to view manual page)

Andy Roid claims to have checked these sources:
 
#1

Hello to All,

I have 2 “Eyes” mounted on 2 servos. Each servo is connected to an output via Multi Servo (D0 and D1).

I assigned servo D0 as Master, and D1 as the added servo. Both max and min settings are the same. If I move the servos with the horizontal panel, servo D0 and servo D1 move together. All is fine.

My problem is if I use a Personality Generator to move D0, D1 does not follow. I call D0 to move to a setting and only D0 servo moves. I tried looking up why, but can not seem to find anything referencing this issue. Is there a way to set up the Personality Generator that will run both servos together?

Also in the servo setup, I tried using V0 as the master and D0 and D1 as the added servos. That fails to work also.

I didn’t see a need in copying the script. Can anyone give advice?

Ron

I have found a few conversations, tutorials and activities that may help with your question. Take a look at these links. I've sorted them by what I believe to be most relevant but that is not always the case as I'm still learning.


Also, consider reviewing the Learn section for informative lessons and activities. Check it out!


#2

Personality generator is a different control than a servo control.

In personality generator, you have to move the servo with script.

Otherwise, use the Relative Servo control.

the AI has actually answered the question - it deserves the credit.

#3

@ANDY Roid... Why can't you do this in a personality generator script?

Code:


Servo(D0,70)
Servo(D1,70)

#4

I want them to move at the same time, like what I have in the Multi servo block.

If I move the position in the horizontal servo panel it works fine. Both servos move together.

I also want the Personality Generator to control them with other actions being performed.

#5

@ANDYROID... My code above will move both D0 and D1 servos at the same time... However, do not give me the credit as @DJ mentioned it was mostly answered by the AI Bot...

#6

What's wrong with my previous response? I repeat, you have two options...

1) Use a relative servo control

2) Script each servo separately

What you are using is a regular servo control. The configuration of that servo control has no relation to your script. They're separate things. Find out more by following the servo activity here: http://www.ez-robot.com/Tutorials/Lesson/49?courseId=6

User-inserted image

#7

@ DJ

I"m able to move single servos in the Personality generator without a problem.
I thought the multi function block carries over and this would allow signaling the Master servo to move both. I also thought you could then use Virtual servos as Master / slaves in the Multi-servo block also.

OK thanks for the help. I will try sending 2 commands.

Thanks to all

#8

Please read my responses. You're still not reading them if you think you have to script the servos. I clearly gave you two options. I also sent a link to the activity which you claimed to have followed when creating this assistance request. AND I also provided a screenshot.

1) Use a relative servo control

2) Script each servo separately


JUST because you configured "multi servo" in some unrelated control doesn't mean another control uses it. If you configured Multi Servos in a Camera Control, would you think that every other control that uses those servos will follow the same configuration? That wouldn't make any sense. To repeat for the third time, you have TWO options...

1) Use a relative servo control

2) Script each servo separately

Either way, the A.I. has answered your question and deserve the credit

#9

Nothing is wrong with your response ! I will look into Relative Servo Control. Just trying to learn and Understand what I can use and where !

#10

No no I don't deserve the credit Grin The A.I. deserves the credit - he had the answer in his response