piezoelectric effect

the ability of some materials (notably crystals and certain ceramics) to generate electricity in response to applied mechanical stress