Welcome to Synthiam!

Program robots using technologies created from industry experts. EZ-Builder is our free-to-use robot programming software that makes features like vision recognition, navigation and artificial intelligence easy.
Get Started

Asked — Edited

How Do I Make A Servo Move Up And Down In A Continous Motion??

I want to make Wall-E head move up and down but in a continuous motion using script, is this possible? that is the servo is not jumping from specified servo position to another and skipping all the in between positions, sort of like how you would slide the servo control slider up and down. Is this even possible using script?

I want to create some lively expression for Wall-E but im stuck at this part, i don't have much option for programming since im no programmer. I can make him move up and down but it doesn't look very natural jumping to different servo positions. Any help would be greatly appreciated.


servo(d10, 50)

servo(d10, 10)

this will make it go up and down for ever and ever and ever and ever

add in some ifservo(d10, ..... commands and it will wait for adc ports or other servos to move first before this script is executed.
ok im not sure i get all of that, I will play around some more with different scripts. Lets move this discussion to my Wall-E build thread to keep things in order. Thanks guys.


# Set the servo speed to a nice slow smooth motion
ServoSpeed(d10, 5)

# The start of the main loop

# Move the servo to the low position
Servo(d10, 10)

# Pause for 5 seconds while we wait for the servo to move into position

# Move the servo to the high position
Servo(d10, 50)

# Pause for 5 seconds while we wait for the servo to move into position

# Go to the start of the loop
Thanks DJ,
Almost got it to work by combining relative servos with external control but how can i enable relative servos "external control" only for the SayName function and turn off at the end of the script? i don't want every other movement to be relative to the neck servo. Is this even possible? You can response to my Wall-E thread if you want, i don't want to double post:)
the next version will let you unpause or pause the relative servo control
That's great! What i need is really just disable a function within the Relative servo window "Response to movement for external controls" or is that the same? In that case im moving on for now.