Congratulations Rich, 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.

Need Help With Key Command.

Assistance Requested

Help familyman 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.

familyman claims to have checked these sources:

I want to be able to press a button lets say "Z" and once pressed and released I want a servo to go to a certain point and then return back to where it started.
I know how to make it go there while I keep a button pressed and return once I release the button. But I need it to go there and then return with only a tap of the key. Does this make sense?.

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!


Yes that makes sense.

Basically, you need to run a script on key up and have nothing for the key down.

Then write your script to move the servo to position and back again, for instance



There are other ways to move the servo and move it back again, check position before moving then move back to the position it was in... possibilities are endless really but if you need help with that script just say what it is doing and I'll give more help.


Thank you very much, that is exactly what I was needing. Cheers mate!.