This video explains how to setup a servo.
Required Hardware:
Arduino Due
Smart RAMPS
USB serial cable
servo
Required Software:
Arduino studios 1.8.7 or higher
https://www.arduino.cc/
MarlinFW (Firmware 2.0.x Experimental)
http://marlinfw.org/meta/download/
Pronterface
http://www.pronterface.com/