How to control baby swing?
A simple DC motor would work. you have to pulse it in the right moment. for finding out the right moment and the pulse length (you don't want to push it so hard !) you need a simple accelerometer sensor to measure acceleration in specific axis.