Diamonds and quarts are crystals and they are composed of atoms arranged in a repeating pattern in space. There is the concept of Piezoelectricity which states that the charge of electricity which accumulates in various solid materials like crystals and some ceramics and even biological compositions like bone, DNA and some proteins all respond to applied mechanical stress.
The idea proposed is that these crystals are unbalanced and continuously strives to come to a balance, but never able to achieve that. This movement creates energy and conceptually, if this energy could be used for some type of movement, you may get perpetual movement. But the energy is never enough and cannot be considered for perpetual motion.