The basic working principle of a hammer mill involves a rotating shaft to which swinging hammers are attached. As the shaft rotates, the hammers swing out radially and impact the material, breaking it into smaller fragments. The granularity of the output can be controlled by adjusting the speed of the rotor, the size of the screen openings, and the configuration of the hammers.