There are several main types of air compressors. Reciprocating compressors use pistons moving up and down to compress air. Rotary screw compressors use two rotating screws to compress air. Rotary scroll compressors use an orbiting scroll to compress air with fewer moving parts than rotary screw compressors. Rotary vane compressors use rotating vanes inside a chamber to compress air. Centrifugal compressors use an impeller to increase air velocity and pressure. Rocking piston compressors use a reciprocating piston and connecting rod to compress air. Compressors also differ based on their lubrication method and drive type.