controlling heads based on piezoelectric elements