Hi B,
This is a very old thread, and I was only clarifiying, the pendulum.
I used 2x opto outputs, into a PIC, which then drove 2x servos, 1x on the horizontal axis, and 1x on the forward backward axis.
I used this method for a while, then a 90 year old, asked me why I don't simply use gravity...