Automatic dust removal for lithium batteries