While perpetual motion is impossible, the idea that the cunsumption of energy for whatever reason can be compensated for while the device is in motion, can lead to a device that while not perpetual, is efficient to the point that the device seems perpetual.
Now, an overbalanced wheel would...