Input voltage protection and motor current