automation of a ball mill mill