Controlling the motion of charged particles by modulating the system parameters