A camshaft is a shaft that contains a row of pointed cams in order to convert rotational motion to reciprocating motion. Camshafts are used in piston engines (to operate the intake and exhaust valves), mechanically controlled ignition systems and early electric motor speed controllers.