The present invention discloses a system to control a movement of a magnetic capsule using an external magnet control system. The external magnet control system includes more than one external magnetic balls, and at least one external magnetic ball can be moved freely in five degrees of the freedom.