It sounds like you are proposing a perpetual motion machine, which cannot work because of the laws of thermodynamics (see https://en.wikipedia.org/wiki/Perpetual_motion).
The tides are not "perpetual": they depend on gradually taking energy from the orbit of the moon.