Piezoelectric scanners operate based on the piezoelectric effect, where certain materials generate an electric charge in response to mechanical stress. Conversely, these materials can change shape or size when an electric field is applied. The scanner typically consists of a piezoelectric crystal or ceramic that expands or contracts when voltage is applied, allowing for precise control over small distances, often in the range of nanometers.