Code and pictorial to control Servo direction and speed. 

Just follow the example and when I get the code finished you can download that and change variables as needed.