A trommel, also called a rotary screen, is used to separate materials. As the barrel spins, smaller materials are sifted through the screen while the bigger stuff stays in the middle.
This fellow on YouTube needed a way to separate rocks from dirt. Using “a ¼ HP motor [purchased] on Craigslist for $25, some rusty bike rims, cheap 2x4’s and automotive belts,” he built this in a single day: