Asked — Edited

Servo Motors

I need some help on repairing a servo motor. I was programming JD to walk, it was working fine at first, but all of the sudden it jumped like crazy and I did not notice the loose servo motor until I turned it off and picked up JD then the leg just went down. I opened up the servo to see if there were any loose gears, but I can't seem to find anything wrong. Is there anything that I could do? other than buying another servo motor?

and if possible would somebody please take a look at my script. if there is anything wrong with it I would like to know so I can avoid it on the future.

:walk servospeed(d16, 10) servospeed(d17, 10) servospeed(d12, 10) servospeed(d13, 10) servo(d18, 83) servo(d16, 130) servo(d17, 45) servo(d14, 95) servo(d12, 90) servo(d13, 90) sleep(500) servo(d16, 90) servo(d17, 90) servo(d12, 45) servo(d13, 130) sleep(500) goto(walk)

Thank You


ARC Pro

Upgrade to ARC Pro

Subscribe to ARC Pro, and your robot will become a canvas for your imagination, limited only by your creativity.

United Kingdom
#1  

Why not use the Auto Position control to make the frames and put them together as an action? It's much quicker and easier (and I believe the example JD project has walking already in it).

#2  

Most servos won't hold there position once released or if power is removed.... Yes, they do still resist movement (especially large or heavy duty servos), but falling "limp" in itself may not mean the servo is toast....

Test it separately... write a script that has the affected servo sweep it's full range a few times and see how that goes.... If it indeed stripped, I am sure ez robot will mail you out a new one... so I wouldn't worry about it...

#3  

Hello Rich, I was using the Auto Position and it worked like a charm, I also opened DJ's example and made JD do the YMCA dance, but the thing is that I want to start getting used to programming and I tried the program above.

United Kingdom
#4  

There really is no need to do complex scripts for movement when we have the Auto Position control. If you need to use movements as part of a script you can use ControlCommand() to start the action, jump to frame etc. etc. etc.

PRO
Synthiam
#5  

I would avoid using scripts combined with Auto Position - because this will cause a conflict between the servos being used by two controls. Normally it's okay if you're combining a camera and auto position, etc... because they are aware of each other. If you're using scripts then you will need to be cautious of how the servos work.

In your script you specify "servospeed()" before the "servo()" command.

The ServoSpeed() command states that you must specify the Servo() first. You are unable to initialize the speed without initializing the servo first.

You can't hit the gas pedal in your car unless you start it.

Please read the manual for the commands as you use them. If you find a command in the manual, please read how to use it. It's not a lot of work to read because the descriptions are quite short:)

#6  

RIchard R I did your suggestion and this is what happens

#7  

the only script that I had running was only the EZ-Script, but I see where I made my mistake I must of read the instructions backwards cuz I thought you specify the speed first then the position.