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.

Servo Controls Min And Maximum Positions

Assistance Requested

Help lorncampbell 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)

lorncampbell claims to have checked these sources:
 
#1

hi everybody
I need some clarification on setting initial servo positions and also setting min-max positions [for an InMoov].
I see that I can use a script to set initial servo positions and run this scrip on start up from the "connection" panel. Also I can possibly do the same thing using the "servo profile" configure and advanced tabs.
My first question is - which would take preference and would they conflict with each other?
Second question - the auto-position panel would override any preset min-max position anyway? Is there away to retain min-max settings of a servo permanently?
thanks
Lorn

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

The same question was asked about a week ago... see the thread below for more information... FYI... Once the servo min max positions are set in a script they won't be overwritten by any other control...
Servo limit settings min & max positions

#3

1) Do not use a servo profile to create frames or initialization of your robot. Servo profile should never be used for an InMoov because there's no need for calibration as it's a complete custom build. Erase the concept of a servo profile from your mind for InMoov Smile

2) Servo limits can be set using the EZ-Script commands. Additional information is found in the ez-script manual for these two commands...

Code:


SetServoMin(D0,110)
SetServoMax(D0,160)



3) Do not use Servo() commands to "initialize" the servo positions of your robot. Since you should be using the Auto Position control for creating animations, use the ControlCommand() to initialize the robot into position

4) The Auto Position contains a pre-loaded frame titled "STAND". Use the STAND frame as your initialization. For example, set the STAND frame to servo positions that are safe for your robot joints. Generally the STAND is all 90 degree positions, where the robot is in a cross pose, with its arms out. Some people call it the Jesus pose.

#4

Hi DJ and Richard
Thank you both for such quick and clear answers! All makes sense.
kind regards
Lorn

#5

@lorncampbell As DJ mentioned inMoov is a custom robot so forget about servo profiles or pretty much any standard Revolution robot setup(s)... Set your servo limitations in an init script to be run before any other control or script... Then use the autopositioner to create your movements...

#6

I just finished doing this for mine. I used a single servo slider control to individually test each servo and establish its limits. It took some time but gave me piece of mind before I started the autoposition frames. Prior to that when I tried to enter a frame the servos went everywhere.

#7

Hi Richard & Perry
Thanks for that
regards
Lorn

#8

All now understood!