In this paper, a magnetic localization ultrasound capsule is proposed. Magnetic localization has lower power consumption and higher accuracy, making it suitable for tracking the position of capsules inside the human body. When a current-carrying conductor is placed in an external magnetic field, it generates a voltage difference perpendicular to both the current direction and the magnetic field direction. This phenomenon is known as the Hall effect, and Hall effect sensors can monitor changes in the magnetic field. Through the Graphical User Interface (GUI), the magnetic field variations can be observed in real-time, and the data can be analyzed to deduce the location of the magnet. By energizing or de-energizing the electromagnet, the current's variation causes changes in the magnetic field. Therefore, an electromagnet is placed inside the capsule, and its magnetic field direction can be freely changed through a self-made circuit. When the magnetic field of the electromagnet changes, this "self-induction" effect causes slight movements of the electromagnet, known as the magnetic field movement effect. This effect induces the movement of the capsule inside the body. Experimental results show that the magnetic field variation can cause slight movements and the ultrasound transducer can achieve small deflections.