The present invention discloses a method to move a magnetic capsule linearly both horizontally and linearly in a very controllable fashion, wherein the direction of a combined external magnetic field, the force experienced by the magnetic capsule, the movement direction of the capsule and magnetic direction of the magnetic capsule can be all aligned in parallel to each other.