A gravity powered generator wouldn't really be perpetual motion since the external input would be gravitational force.