help me to understand cams

Cams have bumps that open and close the valves.