Award
Congratulations Richard R, 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.

How Do I Set Servo Limits

Assistance Requested

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

Perry_S claims to have checked these sources:
 
#1

Hi,
How can I set the limits for a set of servos prior to the rest of the system initializing?
While using the autoposition window it initializes with the servos set to 90 deg. That breaks some servos for me. So I created a frame called 'rest' which I try to set first. Even then, I can move the servos beyond their limits in the autoposition window which breaks servos.

So as an example, I have a jaw servo that can only move between 110 and 160 degrees. When I drag the arrow in the box to move the servo I do want it to be able to move beyond the 110, 160 thresholds.

Thanks,
Perry

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

I could not find the answer in these links

#3

In your init script...

Code:


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

#4

Thanks Richard, I appreciate your response. I am a bit of a noob and do not know how to set up and call an initialization script.

#5

You can either just use a basic script called init or whatever you want to name it and run it before anything else (first thing after connection to the ezb4)... Or sometimes what I do just is put it in the Connection control as a script to run when the ezb4 connects to ez builder

#6

Thanks Richard I spent some time and I understand how to create the script you mentioned. I tried it and it works. I have it linked to the EZ connect and figured out how to turn off that 'my battery is low' droning voice because I don't use LiPo's at the same time.

Thanks for the help