PRO
dalekkrell
United Kingdom
Asked
Hello everyone,
I am currently searching for a push button solution to control a servo motor. Specifically, I need the servo to move to a designated position when the button is pressed and then return to its original position once the button is released. I've looked extensively but have not found a suitable option.
Any advice or guidance on this setup would be greatly appreciated. Thank you in advance!
Kind regards.
Related Controls
Read Digital
Vertical Servo

Nice setup - you can do this two ways in ARC. Below I’ll give the recommended, reliable approach (a small JavaScript robot skill that monitors the digital input and moves the servo), plus notes on wiring, debounce, and a quick alternative using the Read Digital control for debugging.
Useful docs:
Recommended method - JavaScript robot skill (poll + edge detection)
Example JavaScript (edit the ports/positions at top):
Notes on the script
Wiring and input tips
Alternative: Use Read Digital skill for debug + controlCommand
Would you like:
Tell me the EZB board and the ports you're using (digital port number and servo port), and whether the button reads HIGH when pressed or LOW, and I’ll adapt the script for you.
I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
dalekkrell
is this what you mean ?
https://www.ez-robot.com/store/p75/button.html