A system for controlling movement of a capsule endoscope in a human GI track is disclosed. The system comprises a magnetic dipole for placement in human GI track, an external magnet in a sphere shape generating dipole magnetic field and applying external translational and or rotational magnetic field force to the capsule endoscope, and a control system for moving the external magnet to manipulate the object along the variable axis in a desired direction of movement.