Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2025 Aug 23;15:31041. doi: 10.1038/s41598-025-15247-7

Design and control of a permanent magnet-based robotic system for navigating tetherless magnetic devices in viscous environments

Zhengya Zhang 1,5, Anke Klingner 2, Sarthak Misra 1,3, Islam S M Khalil 4,
PMCID: PMC12375033  PMID: 40849574

Abstract

Tetherless magnetic devices (TMDs) that are driven using external stimuli have potential applications in minimally invasive surgery. The magnetic field produced by electromagnet- and permanent magnet-based robotic systems is a viable option as an external stimulus to enable the motion of a TMD in viscous and viscoelastic media. In order to realize the navigation of TMDs in fluidic environments, we design a permanent magnet-based robotic system with an open configuration using two synchronized rotating magnetic dipoles to generate time-varying rotating magnetic fields. These fields are used to apply torque on a TMD in low-Reynolds-number flow regimes. The configuration of the system is vertically symmetric, allowing permanent magnets to exert relatively uniform magnetic fields within the center of the workspace. We derive the configuration-to-pose kinematics and the pose-to-field mapping of the system. Such derivation is the basis for realizing the motion control of TMDs in three-dimensional space. The kinematic system holds one translational degree of freedom (DOF) and three rotational DOFs, allowing it to control the pose of actuator magnets with four DOFs. The nonlinear inverse kinematic problem is solved using an optimization algorithm. The experimental results of this level of control demonstrate that the mean absolute error and the maximum tracking error of three-dimensional motion control are 1.18 mm and 2.64 mm, respectively. This paper tackles the challenge of generating and controlling synchronized rotating magnetic fields to actuate and navigate TMDs. Commonly, this involves collaboratively manipulating two permanent magnets by attaching each to the end-effector of an industrial robot. This paper proposes a novel approach: robotically manipulating two permanent magnets through a symmetric configuration constrained by a connecting plate. This method simplifies the manipulation of rotating magnetic fields, thereby aiding the simplification of TMD motion control strategies. Future research will improve the design of this robotic system to offer more degrees of freedom, thus achieving greater flexibility in TMD motion control.

Keywords: Rotating field, Synchronization, Untethered, Permanent magnet, Motion control, Kinematics-analysis, Tetherless magnetic device

Subject terms: Engineering, Biomedical engineering

Introduction

Small-scale tetherless magnetic devices (TMDs) have the potential to improve minimally invasive medicine by precision surgery due to its dexterity1, allowing them to access regions inaccessible by tethered surgical devices. With these merits, small-scale TMDs have attracted significant attention of being utilized in biomedical applications such as targeted drug delivery2,3, nanotechnology4,5, microfluidic6,7 and biomedical8,9 applications. One of the challenges in these applications is the precise TMD motion control along a prescribed trajectory1012. The vast majority of TMD motion control is achieved by using electromagnet-based robotic systems1316. Despite the merit of high controllability of generated uniform magnetic field (including orientation and strength control) by changing the coil current, and the ability to turn-off the magnetic field completely1719, these systems have some shortcomings, such as the difficulty of scaling up to the size of in vivo application due to the restriction of the projection distance of the field gradient, and heat emission problem due to the low efficiency of electric-to-magnetic conversion caused by the electromagnetic coils20. In contrast to electromagnet-based robotic system, permanent magnet-based robotic systems can generate stronger magnetic field21, and have no heat emission problem. In particular, those with open configurations can be scaled up to the size of in vivo applications22. Consequently, permanent magnet-based robotic systems are becoming increasingly popular.

Depending on how a TMD is propelled, permanent magnet-based robotic systems can be classified based on the applied driving mode: (1) Torque-driven mode which serves the magnetic torque as the main form of actuation and propels a TMD (e.g., a helical microrobot) by rotating it. (2) Force-driven mode which serves magnetic force (i.e., the force due to magnetic gradient) as the main form of actuation and propels TMD by pulling it. (3) Torque-force-driven mode which serves either one of them (magnetic torque and force) or both of them as effective forms of actuation and to propel a TMD by rotating it or pulling it or both. Furthermore, permanent magnet-based robotic systems in each mode can be generalized into three categories based on the number of actuator magnets: (1) Using one actuator magnet. (2) Using two actuator magnets. (3) Using an array of actuator magnets.

The permanent magnet-based robotic systems in torque-driven mode rotate actuator magnets to generate a rotating magnetic field, resulting in a magnetic torque, as the main source of actuation, exerted on TMDs. With using one actuator magnet, Mahoney et al. have proposed a method to control the magnetic field at a point in space to be rotated about any desired axis with a constant frequency, thus the TMD motion is controlled by aligning the TMD’s dipole moment with the applied magnetic field23. Nelson et al. have provided a solution to generate two independent rotating magnetic fields with any desired field-rotation axes at any two points, allowing it for the independent motion control of two TMDs24. Despite the controllability of the field-rotation axis, such systems may produce unnecessary magnetic force which creates a tendency for a TMD to move toward the actuator magnet. This unnecessary magnetic force can be reduced by increasing the distance between the TMD and the actuator magnet, yet the applied magnetic torque on the TMD is inevitably weakened. To overcome this undesired behavior, Mahoney et al. have presented a strategy to substantially reduce the magnetic force while maximizing the magnetic torque, by limiting the absolute upper boundary on the magnitude of maximum magnetic force for any orientation of TMD dipole moment25. This strategy can diminish the magnetic force yet not eliminate it. With using two actuator magnets, Hosney et al. have designed a robotic system by rotating the two actuator magnets synchronously for the wireless motion control of a helical microrobot, which stabilizes the motion of the microrobot by eliminating the magnetic field gradient within the workspace of the microrobot and develops gravity compensation technology by manipulating the angular speed and motion direction of the microrobot26. With using an array of actuator magnets, Zhang et al. have implemented a method of arranging the rotational actuator magnets circumferentially to generate a rotating magnetic field in the center area of the circle and obtain a synchronous reversing magnetic field with constant strength27. Qiu et al. have developed a robotic system incorporating four rotary actuator magnets, which can generate a rotating magnetic field with the orientation of the field-rotation axis being arbitrary in a plane28. Although these systems using an array of actuator magnets can generate rotating magnetic fields without the translational movement of actuator magnets, the number of DOFs of these robotic systems to control the magnetic field is potentially restricted.

The permanent magnet-based robotic systems in force-driven mode generate a magnetic gradient field, resulting in a magnetic force, as the main source of actuation, exerted on TMDs. With using one actuator magnet, Khalil et al. have demonstrated a robotic system that attaches the actuator magnet to the end-effector of a robotic arm, achieving the kinematic control of paramagnetic microparticles in 3-D space with the manipulation of the exerted field gradient on the dipole of the microparticles29. Mahoney et al. have first demonstrated a 5-DOF manipulation of an untethered magnetic capsule by a 6-DOF robotic manipulator with the feedback of only 3-DOF capsule position30. Magnetic force are utilized to manage the total force (the sum of magnetic force, gravitational force, and buoyancy force) applied on the capsule. With using two actuator magnets, Shapiro et al. have demonstrated the capability of a robotic system consisted of an arrangement of two permanent magnets to create magnetic force, and eventually to push therapeutic nanoparticles31. Amokrane et al. have optimized a robotic system to produce a maximum push-pull force on magnetic microparticles by manipulating magnetic field gradient, enabling the navigation of microparticles in cortical microvasculature network32. With using an array of actuator magnets, Abbes et al. have reported a robotic system with a magnetic unit being attached to the end-effector of a robotic arm such that the magnetic unit consists of four actuator magnets, demonstrating the steerability to push and pull the magnetic microparticles in viscous fluids33. Son et al. have presented a robotic system that can create a strong magnetic force trap enabling a cylindrical millirobot to penetrate continuously into soft tissue. The penetration motion is assisted by the induced magnetic torque which directs the orientation of the millirobot to the center of the array of actuator magnets34. In comparison to the systems in torque-driven mode, those in force-driven mode at the same level require more energy consumption in the propulsion of TMDs in fluids, making the systems in force-driven mode more suitable in use for the scenarios of driving small-scale TMDs when requiring to limit the size of actuator magnets.

The permanent magnet-based robotic systems in torque-force-driven mode generate a rotating magnetic field and gradient field, resulting in a magnetic torque and force, as the main sources of actuation simultaneously, exerted on TMDs. These systems can be selectively switched to those in torque-driven mode or those in force-driven mode according to the specific application, making them have extraordinary versatility. With using one actuator magnet, Mahoney et al. have proposed a method to convert the magnetic force into a lateral force by manipulating the actuator magnet to be rotated with a specific trajectory. Such an operation can make a TMD be simultaneously pushed and rolled on a surface, inducing potentially enhanced rolling motion (higher rolling velocity) or it may be used for the scenarios of levitating device35. This method relies on the specific rotation control of the actuator magnet. With using two actuator magnets, Hosney et al. have introduced a strategy of combining the propulsion force converted from the magnetic torque and the magnetic force, which is proved to decrease the drilling time of blood clots36. Pittiglio et al. have developed a robotic system using two independent serial manipulators, which can generate a magnetic field with a high degree of manipulability by controlling the pose of two actuator magnets collaboratively, enabling the system to work in torque-force-driven mode suitably37. With using an array of actuator magnets, Ryan et al. have built a robotic system to create fields and field gradients in any direction in three-dimensional (3-D) path-following tasks, and shown that this system is able to implement 1-D and 2-D motion control via rolling as well as 3-D motion control via gradient pulling38. The disadvantage of this system is that the size of the workspace is severely restricted unless extremely large size actuator magnets are utilized39.

In this paper, we focus on the permanent magnet-based robotic systems in torque-driven mode. Our system has an open configuration without using commercial robotic arms. The system holds one translational DOF and three rotational DOFs, enabling it to control the pose of two actuator magnets collaboratively with four DOFs. Further, the system is arranged with a vertically symmetric configuration to exert relatively uniform magnetic fields within the center of the workspace. This symmetric configuration is physically constrained through a connecting plate, which simplifies the yawing motion control of the field-rotation axis within the center region of the workspace by only driving one robotic joint, as a result, leading to an ease of yawing motion control of TMDs. Besides, the forward (from joint space variables to the orientation of field-rotation axis) and inverse kinematics (from desired orientation of field-rotation axis to desired joint space variables) of the system is analyzed, which serves as a basis of implementing TMD motion control. Our system is verified to have the ability of achieving TMD motion control in torque-driven mode. The remainder of the paper is organized as follows: “Magnetic-based robotic system” section provides the forward and inverse kinematic analysis of the magnet-based robotic system. “Orienting field-rotation axis” section analyzes the possible unreachable zone of the field-rotation axis at the central point of the workspace. “Characterization of the magnetic field” section investigates the magnetic field strength and field gradient within the workspace. “Closed-loop motion control” section validates the ability of implementing 3-D closed-loop motion control of TMDs conducted in an agar-gel phantom.

Magnetic-based robotic system

We consider a time-varying rotating magnetic field produced by the superposition of the contributions of multiple dipole sources. These dipole sources are fixed in three-dimensional space by a robotic configuration and exert a controlled magnetic torque on a TMD in low Reynolds (Re) numbers.

Magnetic actuation using multiple magnetic source

The magnetic field generated by multiple permanent magnets is characterized by the configuration-to-pose kinematics and the pose-to-field mapping. If a translation and rotation of multiple permanent magnets (with magnetic moment Inline graphic for Inline graphic) using a robotic configuration would result in a superimposed magnetic field (Inline graphic), then the magnitude and direction of the magnetic field at position Inline graphic are completely characterized by the joint space variables Inline graphic. The configuration-to-pose kinematics of such a robotic configuration is given by

graphic file with name d33e475.gif 1

where Inline graphic and Inline graphic characterize the rotation and translation of the ith magnetic source using the forward kinematic mapping Inline graphic, respectively. We can compute the magnetic field produced by each magnetic moment (Inline graphic) in the global frame of reference Inline graphic as follows:

graphic file with name d33e516.gif 2

where Inline graphic is the magnetic field due to the ith magnetic source with respect to the global frame of reference. Further, the magnetic field vector of Inline graphic in Eq. (2) can be calculated by

graphic file with name d33e542.gif 3

where Inline graphic is the homogeneous transformation between the global frame of reference and the ith frame of reference of the magnetic source Inline graphic, as shown in Fig. 1. Further, Inline graphic is the magnetic field due to the ith magnetic source in the local frame Inline graphic. The properties of the magnetic field Inline graphic is completely characterized by the pose of each magnetic moment (Inline graphic) and can be manipulated using the joint space variables (Inline graphic).

Fig. 1.

Fig. 1

The magnetic field at a point (Inline graphic) is characterized by the configuration-to-pose kinematics (Inline graphic), and the pose-to-field mapping (Inline graphic) under the global frame of reference Inline graphic. Additionally the ith magnetic source is arranged a local frame of reference Inline graphic.

Figure 1 shows the magnetic field produced by two identical magnetic dipole sources. For Inline graphic and away from the region between the magnetic dipole sources, the magnitude of the magnetic field decreases approximately as the inverse cube of the distance Inline graphic. The magnitude of the field scales approximately as the sum of the inverse cube of Inline graphic when two dipole sources are incorporated. Therefore, it is desirable to consider the enclosed region between the two dipole sources in order to create larger field strength than any other locations away from this region. For a small enough workspace (around position Inline graphic), it is possible to create a relation between the magnitude of the field and the distance to the dipole sources by placing a position constraint on the dipole sources. In such situation, the orientation of magnetic moment (Inline graphic) can be controlled using a robotic configuration to manipulate the magnetic field at the position Inline graphic. At this point, the relationship

between the unit vector of field-rotation axis (Inline graphic, refer to the rotation axis of magnetic field Inline graphic) and the unit vector of dipole-rotation axis (Inline graphic, refer to the rotation axis of magnetic moment Inline graphic) can be characterized by the configuration of the permanent-magnet robotic system, as shown in Fig. 2.

Fig. 2.

Fig. 2

A permanent-magnet robotic system uses rotating dipole fields to produce uniform magnetic field within a limited workspace. (a) Assignment of the frames to the setup, two cylindrical permanent magnets are attached to the end-effectors such that the magnetization vectors are perpendicular to the Inline graphic-axis. The two magnetic sources rotating synchronously around their self-rotation axis of Inline graphic are expected to generate a rotating magnetic field at Inline graphic with the field-rotation axis of Inline graphic. (b) A container filled with an agar-gel tissue phantom providing the TMDs with a viscoelastic swimming environment is placed at the center of the workspace. The inset box indicates the frame Inline graphic and Inline graphic attached on ith magnetic dipole source.

Robotic configuration

Superimposing the magnetic field of multiple magnetic sources can generate greater and uniform field within the enclosed region between the permanent magnets. Translating and rotating these magnetic sources can be used for actuation. Therefore, we need to control the pose of the magnetic sources by robotically moving a robotic configuration in order to obtain the desired field-rotation axis for actuation at Inline graphic. Since we are considering rotating magnetic field for actuation, the magnetic dipole of the ith source can be continuously rotated in synchrony with an angle Inline graphic (Inline graphic such that Inline graphic is the angular velocity of two synchronized rotating dipoles) about the ith dipole-rotation axis Inline graphic. The orientation of these axes of rotation is completely characterized using the forward kinematics (Inline graphic).

To control the dipole-rotation axis Inline graphic, a number of joints must be independently controlled. Here, we consider a translational base frame Inline graphic supporting four actuated rotational joints. The pure translation of frame Inline graphic with respect to the global frame of reference is characterized by the joint space variable Inline graphic, which enables the superimposed field to be translated without affecting its spatial derivatives. The first and second rotational joints are orthogonally arranged to rotate frame Inline graphic and Inline graphic about the Inline graphic- and Inline graphic-axes respectively, as shown in Fig. 2a. The rotation of frame Inline graphic with respect to frame Inline graphic and the rotation of frame Inline graphic with respect to frame Inline graphic are characterized by the joint space variable Inline graphic and Inline graphic, which enables control of the yawing and pitching motion of the field-rotation axis at Inline graphic, respectively. Frame Inline graphic supports two symmetrically placed actuated rotational joints aligned to rotate frame Inline graphic and Inline graphic about the Inline graphic- and Inline graphic-axes, respectively. The rotation of frame Inline graphic with respect to frame Inline graphic is characterized by the joint space variable Inline graphic, which also enables the control of yawing motion of the field-rotation axis at Inline graphic. This allows us to have multiple control options (manipulating Inline graphic or Inline graphic or both of them) when to plan a yawing motion of field-rotation axis at Inline graphic, and thus it improves the flexibility of our system. These joints are equally spaced with respect to the z-axis of the global frame of reference. Frame Inline graphic is defined as the frame of reference of the ith permanent magnet, two magnetic sources rotate about the Inline graphic-axis of frame Inline graphic such that their magnetic moment is orthogonal to these vectors. Further, frame Inline graphic is only rigidly translational with respect to frame Inline graphic. In addition, the rotation of ith permanent magnet is characterized in frame Inline graphic such that frame Inline graphic is only rotational with respect to frame Inline graphic. The origin of Inline graphic and that of frame Inline graphic are overlapping and the Inline graphic-axis of frame Inline graphic and the Inline graphic-axis of frame Inline graphic are coincident.

The configuration of the permanent-magnet robotic system is shown in Fig. 2a, it indicates the links and joints with the corresponding frames. The vector Inline graphic is constructed with independent joint space variables such that Inline graphic. Note that Inline graphic in Inline graphic refers to a translational motion, and Inline graphic, Inline graphic and Inline graphic in Inline graphic refer to rotational motions. Besides the links and joints, Fig. 2b shows the permanent-magnet robotic system as well as the workspace. The configuration-to-pose kinematics of our robotic configuration characterizes the ith dipole-rotation axis in terms of the joint space variables, such that

graphic file with name d33e1101.gif 4

whereInline graphic is the homogeneous transformation matrix between the frame Inline graphic and the global frame of reference. In Eq. (4),Inline graphic is the homogeneous transformation matrix between frame Inline graphic and the global frame of reference, which is given by

graphic file with name d33e1136.gif 5

where Inline graphic is the unit matrix and Inline graphic is the translation vector of the origin of frame Inline graphic in the global frame of reference. Further, Inline graphic is given by

graphic file with name d33e1167.gif 6

The translation of the origin of frame Inline graphic in the global frame of reference enables control of the translational motion of the superimposed field in the y-axis direction. Further, this translation partially determines the reachable zone of field-rotation axis at Inline graphic. In Eq. (4),Inline graphic is the homogeneous transformation matrix between frame Inline graphic and Inline graphic, which is given by

graphic file with name d33e1212.gif 7

whereInline graphic is the rotation matrix between frame Inline graphic with respect to Inline graphic and Inline graphic is the translation vector of the origin of frame Inline graphic in the frame Inline graphic. Further, Inline graphic is a constant determined by mechanical dimensions of the system and Inline graphic. In Eq. (7), Inline graphic is given by

graphic file with name d33e1278.gif 8

The rotation of frame Inline graphic with respect to frame Inline graphic enables control of the yawing motion of the field-rotation axis at Inline graphic. This yawing motion is important for the steering of TMDs. In Eq. (4),Inline graphic is the homogeneous transformation matrix between frame Inline graphic and Inline graphic.

graphic file with name d33e1326.gif 9

whereInline graphic is the rotation matrix of frame Inline graphic with respect to frame Inline graphic and Inline graphic is the translation vector of the origin of frame Inline graphic in the frame Inline graphic. Further, Inline graphic is a constant determined by mechanical dimensions of the system and Inline graphic. In Eq. (9), Inline graphic is given by

graphic file with name d33e1392.gif 10

The rotation of frame Inline graphic with respect to frame Inline graphic enables control of the pitching motion of the field-rotation axis at Inline graphic. This pitching motion is important for TMDs to swim upward or downward and follow a 3-D prescribed trajectory. In Eq. (4),Inline graphic is the homogeneous transformation matrix between frame Inline graphic and Inline graphic, which is given by

graphic file with name d33e1440.gif 11

where Inline graphic is the rotation matrix of frame Inline graphic with respect to frame Inline graphic and Inline graphic is the translation vector of the origin of frame Inline graphic in the frame Inline graphic. Further, Inline graphic, Inline graphic and Inline graphic are constants determined by mechanical dimensions of the system. For Inline graphic, Inline graphic, Inline graphic and Inline graphic. For Inline graphic, Inline graphic, Inline graphic and Inline graphic. In Eq. (11), Inline graphic is given by

graphic file with name d33e1561.gif 12

Like the function of rotation matrix Inline graphic, the rotation of frame Inline graphic with respect to frame Inline graphic also enables the control of yawing motion of the field-rotation axis at Inline graphic. However, this redundancy allows multiple options to control the yawing motion of field-rotation axis at Inline graphic, and it expands the reachable zone of field-rotation axis at Inline graphic. The configuration-to-pose kinematics of our robotic configuration characterizes the ith dipole-rotation axis in terms of the joint space variables, such that

graphic file with name d33e1609.gif 13

where Inline graphic characterizes the rotation axis of ith magnetic source in the frame Inline graphic. In configuration-to-pose kinematics, Inline graphic is the homogeneous transformation matrix between the frame Inline graphic and the global frame of reference, which is given by

graphic file with name d33e1644.gif 14

Further, Inline graphic is the homogeneous transformation matrix between the frame Inline graphic and Inline graphic, which is given by

graphic file with name d33e1670.gif 15

where Inline graphic is the translation vector of the origin of frame Inline graphic in frame Inline graphic. Further, Inline graphic and Inline graphic are constants determined by mechanical dimensions of the system. For Inline graphic, Inline graphic and Inline graphic. For Inline graphic, Inline graphic and Inline graphic. Multiplying the solution for all transformation matrices, results in the overall homogeneous transformation matrix Inline graphic which governs the relation between the vector of joint space variables Inline graphic and unit vector of dipole-rotation axis Inline graphic.

Mapping dipole-rotation axis to field-rotation axis

The unit vector of field-rotation axis Inline graphic at Inline graphic is defined to be perpendicular to the plane containing Inline graphic, such that Inline graphic for all Inline graphic. Replacing Inline graphic with Eq. (2) in this expression yields

graphic file with name d33e1808.gif 16

Substituting Eq. (3) into (16) yields

graphic file with name d33e1822.gif 17

such that,

graphic file with name d33e1829.gif 18

whereInline graphic is the homogeneous transformation matrix between frame Inline graphic and Inline graphic, which is given by

graphic file with name d33e1855.gif 19

whereInline graphic is the rotation matrix of frame Inline graphic with respect to frame Inline graphic. Further, Inline graphic is given by

graphic file with name d33e1887.gif 20

Note that Inline graphic is the synchronous rotation angle of the two rotating magnetic dipoles. The generated magnetic field due to ith magnetic source in the frame Inline graphic can be rewritten as

graphic file with name d33e1910.gif 21

where Inline graphic, Inline graphic and Inline graphic are the unit axis vector of frame Inline graphic. Further, Inline graphic, Inline graphic and Inline graphic are magnitudes of the magnetic field along the direction of Inline graphic-, Inline graphic- and Inline graphic-axis in frame Inline graphic, respectively. Substituting Eq. (21) into Eq. (17) yields

graphic file with name d33e1992.gif 22

Substituting Eq. (13) into expanded Equation (22) yields

graphic file with name d33e2006.gif 23

Hence the relationship between the unit vector of field-rotation axis Inline graphic, the unit vector of dipole-rotation axis Inline graphic and the vector of joint space variables Inline graphic at position Inline graphic is found.

Inverse kinematics

Given the desired unit vector of field-rotation axis Inline graphic, then the problem of solving inverse kinematics is converted to that of solving Eq. (23) with the orientation of the dipole moment of each magnetic source (Inline graphic) varying synchronously and periodically in time. The algorithm flow of solving inverse solutions based on the desired field-rotation axis is presented in Algorithm Inline graphic. The frame parameters required for the algorithm are demonstrated in Table 2 (see Appendix A) where the Inline graphic mm, Inline graphic mm, Inline graphic mm, Inline graphic mm, Inline graphic mm, Inline graphic mm and Inline graphic mm. In the algorithm, the increase and decrease of the value of joint space variable Inline graphic indicates the positive and negative linear motion of translational joint, respectively. Similarly, the increase and decrease of the value of joint space variable Inline graphic (Inline graphic or Inline graphic) indicates the counterclockwise and clockwise rotation of that revolute joint, respectively. In particular, our permanent-magnet robotic system allows two consecutive clockwise or counterclockwise rotations of frame Inline graphic with respect to frame Inline graphic, which is characterized by joint space variable Inline graphic (Inline graphic [-Inline graphic:Inline graphic]), enabling TMDs make two continuous clockwise or counterclockwise rotations.

Table 2.

Frame parameters of the robotic system.

j Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic
1 Inline graphic [mm] Inline graphic 150
2 Inline graphic [Inline graphic] Inline graphic Inline graphic 720
3 Inline graphic [Inline graphic] Inline graphic Inline graphic 90
4 Inline graphic [Inline graphic] Inline graphic Inline graphic Inline graphic Inline graphic 180

Algorithm 1.

Algorithm 1

Pseudocode for inverse kinematics.

To maintain the synchronous rotation of a TMD with the rotating magnetic field, the magnetic torque must balance the drag torque on the TMD. We allow two rotating actuator permanent magnets to be close to each other to generate greater magnetic torque than with a single rotating actuator permanent magnet. To precisely model the magnetic field in the workspace between two actuator permanent magnets, we use an exact magnetic model40. With this model, the fitness function Inline graphic in Algorithm 1 is designed as

graphic file with name d33e2193.gif 24

The fitness function is optimized to approach 0 using Levenberg–Marquard (LM) algorithm. In Eq. (24), Inline graphic can be calculated through

graphic file with name d33e2210.gif 25

Referring to Algorithm 1, the desired vector of joint variables Inline graphic and desired unit vector of dipole-rotation axis Inline graphic can be calculated based on the desired unit vector of field-rotation axis Inline graphic.

Control of a tetherless magnetic device

The TMD motion control scheme consists of motion direction control and motion speed control. The motion direction control of a TMD is implemented by manipulating TMD rotation axis such that the TMD rotation axis is directly determined by the field-rotation axis at TMD position. The motion speed control of a TMD is achieved by managing the actuation frequency of applied rotating magnetic field. We assume a TMD is actuated by an external rotating magnetic field with a constant rotation frequency, thus the TMD motion speed is expected to be constant. Then the motion control of the TMD is simplified to only control the motion direction of the TMD. Given a predefined trajectory (see Table 1), which is expressed mathematically as the parametric equation Inline graphic, Inline graphic, Inline graphic. we break it down into 17 waypoints. Point Inline graphic is the nth representative waypoint. The necessary TMD motion direction Inline graphic at each waypoint Inline graphic is found as

graphic file with name d33e2854.gif 26

Table 1.

Inverse solutions at separate points from a predefined 3-D spiral trajectory with calculating the desired field-rotation axis (Inline graphic), desired dipole-rotation axis (Inline graphic) and desired vector of joint variables (Inline graphic) at 17 representative waypoints.

Predefined 3-D trajectory    Point Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic
graphic file with name 41598_2025_15247_Figb_HTML.gif Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic
Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic
Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic
Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic
Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic
Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic
Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic

Replacing the Inline graphic with Inline graphic in Algorithm 1, we can acquire the desired vector of joint variables (Inline graphic) at each waypoint, as shown in Table 1.

Orienting field-rotation axis

The challenge of aligning the field-rotation axis in diverse directions varies depending on the design of the robotic system and the constraints of joint space variables. Since the orientation of the field-rotation axis, as denoted by the unit vector of field-rotation axis, governs the motion direction of a TMD, it’s imperative to analyze the difficulty level of orienting the field-rotation axis within its reachable orientation zone at the TMD’s location. In this section, we’ll presume the TMD is positioned at the central point of the workspace. The central point is defined as the middle point of line segment between two actuator magnets’ centroids when the system is at its initial state. The initial system state refers to Inline graphic. Subsequently, we’ll evaluate the difficulty of aligning the field-rotation axis to a particular direction at this central point.

Yawing and pitching motion of field-rotation axis

The yawing and pitching motion of field-rotation axis plays an important role on the motion direction control of TMDs. Specifically, at the central point, we associate the yawing motion of the field-rotation axis with joint space variable Inline graphic, and the pitching motion with joint space variable Inline graphic.

Figure 3 shows the orientation of field-rotation axis changes along with Inline graphic and Inline graphic. The Inline graphic enables the yawing motion of the field-rotation axis at the central point, as shown in Fig. 3a. The unit vector of field-rotation axis rotates uniformly as Inline graphic varies at equal intervals over one revolution, which means the rotation of field-rotation axis is synchronized with the rotation of Inline graphic. Note that the unit vector of field-rotation axis at the case of Inline graphic is overlapped by that at the case of Inline graphic. The Inline graphic enables the pitching motion of field-rotation axis, as shown in Fig. 3b. The unit vector of field-rotation axis rotates non-uniformly as Inline graphic varies at equal intervals from Inline graphic to Inline graphic, which means the rotation of field-rotation axis is not synchronized to the rotation of Inline graphic. Meanwhile, the rotational direction of the unit vector of field-rotation axis changes from clockwise Inline graphic to counterclockwise Inline graphic, and then back to clockwise Inline graphic.

Fig. 3.

Fig. 3

Characterization of the yawing motion and pitching motion of the unit vector of field-rotation axis with respect to joint space variable Inline graphic and Inline graphic at the central point of the workspace in the frame Inline graphic. The arrows indicate the unit vectors of field-rotation axis. (a) The unit vector of field-rotation axis rotates counterclockwise in x-y plane as joint space variable Inline graphic varies from Inline graphic to Inline graphic. (b) The vector of field-rotation axis first rotates clockwise as indicated by Inline graphic, then rotates counterclockwise as indicated by Inline graphic, and finally rotates clockwise back as indicated by Inline graphic in y-z plane as joint space variable Inline graphic varies from Inline graphic to Inline graphic. Please refer to the Segments S1 and S2 in Supplementary Video for a visual demonstration..

Motion space of actuator magnets

The robotic joint space determines the motion space of actuator magnets, while the actuator magnets’ motion space determines the field-rotation axis’s reachable orientation zone at any point in the workspace. With revolute joints, the motion space of two actuator magnets is a hollow ellipsoid-like space and can be covered by an 800 mm Inline graphic 800 mm Inline graphic 500 mm cuboid, as shown in Fig. 4a. With all joints (revolute plus translational joints), the motion space of two actuator magnets is a cylinder-like space and can be covered by an 800 mm Inline graphic 1000 mm Inline graphic 500 mm cuboid, as shown in Fig. 4b.

Fig. 4.

Fig. 4

Mapping the robotic joint space to the orientation of the field-rotation axis at the central point (O) of the workspace. (a) The motion space of actuator magnets relative to robotic revolute joints. (b) The motion space of actuator magnets relative to robotic revolute and transnational joints. (c) The orientation of the field-rotation axis at the central point is characterized by the angle of Inline graphic and the angle of Inline graphic. The angle of Inline graphic is the one between the projection vector of the field-rotation axis and the positive x-axis, and the angle of Inline graphic is the one between the vector of the field-rotation axis and the positive z-axis. The range of Inline graphic is set as [Inline graphic Inline graphic] while the range of Inline graphic is set as [Inline graphic Inline graphic]. The largest singular value of Jacobin Inline graphic in Inline graphic-Inline graphic plane, plotted in a logarithmic color scale.

Difficulty level of orienting the field-rotation axis

In this part, we will analyze the difficulty level of orienting the field-rotation axis towards different directions at the central point of the workspace. We assume that the position of the central point with respect to frame Inline graphic (see Fig. 2) is unchanged. That is to say, the central point follows the translational motion of frame Inline graphic along y-axis. Thus, the translational motion of the frame Inline graphic, which is characterized by the joint space variable Inline graphic, does not affect the positions of actuator magnets (Inline graphic) and the orientation of the dipole-rotation axis (Inline graphic) in the frame Inline graphic. Therefore, the joint space variable Inline graphic does not influence the field-rotation axis at the central point since the field-rotation axis at any point in the workspace is purely a function of the actuator permanent magnets’ positions (Inline graphic) and dipole-rotation axis’ orientation (Inline graphic). Furthermore, to maximize the size of the workspace while maintaining a strong magnetic field strength, we set the joint space variable Inline graphic to 0. Thus, we design a new vector of joint space variables Inline graphic that does not contain the joint space variables Inline graphic and Inline graphic such that Inline graphic. Then we investigate the unreachable zone of the field-rotation axis at the central point by only considering robotic revolute joints. The matrix Inline graphic is created to approximately map the small change (Inline graphic) in the robotic joints to the small change (Inline graphic) in the orientation of field-rotation axis, which is expressed by

graphic file with name d33e3273.gif 27

Equation (27) can be inverted to generate the inverse mapping of desired change in the orientation of field-rotation axis to a desired change in the robotic joints using Moore-Penrose pseudoinverse,

graphic file with name d33e3284.gif 28

where the Moore–Penrose pseudoinverse Inline graphic is the inverse mapping that minimizes Inline graphic if the robotic system is over-actuated. The largest singular value of Inline graphic serves as a measure of the most extreme scenario where a change in the unit vector of the field-rotation axis is approximately mapped to a magnitude change in the robotic joints41. If the largest singular value approaches infinity, the robotic system is close to experiencing a kinematic singularity.

To assess the system’s capability to make a TMD ascend or descend at its central point, we measure the difficulty of executing the system as the field-rotation axis approaches the vertical direction at the central point. The orientation of the field-rotation axis at the central point is characterized by angles Inline graphic and Inline graphic. Specifically, the Inline graphic refers to the angle between the projection vector of the field-rotation axis and the positive x-axis, and the Inline graphic refers to the angle between the vector of the field-rotation axis and positive z-axis, as shown in Fig 4c. The angle Inline graphic is constrained within the range [Inline graphic Inline graphic], while Inline graphic is limited to the range [Inline graphic Inline graphic]. These angular constraints define two conical regions corresponding to unreachable motion directions for the TMD, which are symmetric about the xOy plane. It shows the color map of the logarithmic largest singular value of Inline graphic (the abbreviation of Inline graphic) in the Inline graphic-Inline graphic plane at the central point. The color map reveals how hard it is for the field-rotation axis toward the orientation indicated by angles Inline graphic and Inline graphic. As Inline graphic decreases from Inline graphic to Inline graphic or increases from Inline graphic to Inline graphic, it gradually becomes harder. Therefore, it indicates that the more vertical the motion direction of a TMD, the more challenging it becomes for the system to implement. In our approach, we adopt a method of having the TMD ascend or descend in a spiral instead of vertically to achieve the TMD’s arrival at the designated position.

Characterization of the magnetic field

The two identical magnets, spaced apart by a distance of Inline graphic, are placed symmetrically on the x-axis relative to frame Inline graphic with the unit vector of dipole-rotation axis (Inline graphic) paralleling to the y-axis, as shown in Fig. 5a. The two identical magnets are rotating in synchronization around the dipole-rotation axis (Inline graphic) with a synchronous rotation angle Inline graphic, resulting in a time-varying magnetic field (magnetic flux density) and field gradient in the workspace of our permanent-magnet robotic system. We study the magnetic field variation within the spherical space centered at the origin and with a radius of r.

Fig. 5.

Fig. 5

Two identical magnets are rotated synchronously around the unit vector of dipole-rotation axis Inline graphic, resulting in a time-varying magnetic field within the center spherical space. (a) Two identical actuator magnets are rotated synchronously around the unit vector of dipole-rotation axis Inline graphic. (b–e) The maximum and minimum magnetic field strengths (Inline graphic and Inline graphic) undergo changes within the center spherical space with a radius of 20 mm, 30 mm, 40 mm, and 50 mm at a constant distance (350 mm) between two actuator magnets during a single rotation period of actuator magnets. The magnetic field strength distribution over the surface of the spherical space varies as Inline graphic is at several constant degrees (Inline graphic, Inline graphic, Inline graphic, Inline graphic, Inline graphic, Inline graphic and Inline graphic). (f) The changes of Inline graphic and Inline graphic in relation to the radius of the spherical space at a constant distance (350 mm) between two actuator magnets. (g,h) The changes of Inline graphic and Inline graphic at different radii of the center spherical space in relation to the distance (Inline graphic) between two actuator magnets. Please refer to Segment S3 in Supplementary Video.

Magnetic field strength: the definitions of Inline graphic, Inline graphic, Inline graphic, and Inline graphic

For a fixed Inline graphic and a fixed distance between two actuator magnets (Inline graphic), both maximum and minimum magnetic field strengths (Inline graphic and Inline graphic) are present within a specific space. Similarly, for any Inline graphic with a fixed Inline graphic, both highest and lowest magnetic field strengths (Inline graphic and Inline graphic) are also present within the same space. Factors such as the synchronous rotation angle, the distance between two actuator magnets, and joint space variables contribute to a time-varying magnetic field within the workspace of our permanent-magnet robotic system. In this section, we delve into the analysis of the evolving magnetic field and its gradient in the center spherical space resulting from these factors.

Synchronous rotation angle

To study the impact of synchronous rotation angle (Inline graphic) on the magnetic field strength and gradient, we keep the distance between two actuator magnets constant such that Inline graphic mm. As Inline graphic changes, both the Inline graphic and Inline graphic will vary. This results in the curves showing the changes of Inline graphic and Inline graphic, as shown in Fig. 5b–e. The red curve (Inline graphic), green curve (Inline graphic), and the region between them form a variation band. The variation band becomes wider at a larger center spherical space. The changes of Inline graphic and Inline graphic with respect to Inline graphic exhibit periodic behavior, with both of them sharing a period of Inline graphic. Furthermore, we visualize the distribution of magnetic field strength over the surface of the central spherical space with radii of 20, 30, 40, and 50 mm, while maintaining Inline graphic at specific fixed angles (Inline graphic, Inline graphic, Inline graphic, Inline graphic, Inline graphic, Inline graphic, and Inline graphic). We observe that the magnetic field strength near the two actuator magnets is greater than in the central region of the sphere.

Radius of the center spherical space

The influence of the radius (r) of the center spherical space on the Inline graphic and Inline graphic, with Inline graphic set to 350 mm, is depicted in Fig. 5f. The magnitudes of Inline graphic and Inline graphic at different r are demonstrated in Table 3 (Please refer to Appendix Inline graphic). As r increases from 0 to 50 mm, the Inline graphic increases from 3.348 to 5.337 mT, whereas the Inline graphic decreases from 1.704 to 1.167 mT, indicating that the rate at which the Inline graphic increases is faster than the rate at which the Inline graphic decreases.

Table 3.

Characterization of magnetic filed.

r [mm]   20   30   40   50  
Inline graphic [mT] 3.615 3.973 4.526 5.337
Inline graphic [mT] 1.605 1.489 1.340 1.167
Inline graphic [T/m] 0.028 0.045 0.067 0.097
Inline graphic [T/m] 0 0 0 0

Distance between two actuator magnets

The influence of the distance (Inline graphic) between two actuator magnets on the Inline graphic and Inline graphic are shown in Fig. 5g,h, respectively. As Inline graphic increases, Inline graphic decreases at a faster rate compared to Inline graphic. Further, the Inline graphic at a larger r decreases faster while Inline graphic at a smaller r decreases faster. Specifically, as Inline graphic increases from 350 to 450 mm, the Inline graphic at Inline graphic, 30, 40 and 50 mm decreases from 3.615 to 1.658 mT, 3.973 to 1.757 mT, 4.526 to 1.904 mT and 5.337 to 2.108 mT, respectively. The Inline graphic at Inline graphic, 30, 40 and 50 mm decreases from 1.605 to 0.771 mT, 1.489 to 0.737 mT, 1.340 to 0.692 mT and 1.167 to 0.638 mT, respectively.

Magnetic field gradient: the definitions of Inline graphic, Inline graphic, Inline graphic, and Inline graphic

Similar to the definition in magnetic field strength, for a fixed Inline graphic and a fixed distance between two actuator magnets (Inline graphic), both maximum and minimum magnetic field gradients (Inline graphic and Inline graphic) are present within a specific space. Comparatively, for any Inline graphic with a fixed Inline graphic, both highest and lowest magnetic field gradients (Inline graphic and Inline graphic) are also present within the same space.

Synchronous rotation angle

The change of maximum field gradient Inline graphic along with the synchronous rotation angle (Inline graphic) is periodic with a period of Inline graphic, as shown in Fig. 6a–d. Besides, the magnetic field gradient distribution over the surface of the center spherical space with the radius of 20, 30, 40, and 50 mm while keeping Inline graphic at a set of constant degrees (Inline graphic, Inline graphic, Inline graphic, Inline graphic, Inline graphic, Inline graphic and Inline graphic) is visualized. It is evident that the magnetic field gradient is noticeably higher in the vicinity of the actuator magnets within the spherical space compared to the central portion of the sphere.

Fig. 6.

Fig. 6

The result of varying magnetic field gradients on the center spherical space between two actuator magnets. (a–d) The maximum magnetic field gradient changes within the center spherical space with a radius of 20 mm, 30 mm, 40 mm, and 50 mm at a distance (350 mm) between two actuator magnets during a single rotation period of actuator magnets. The magnetic field gradient distribution over the surface of the spherical space with a radius of 20 mm, 30 mm, 40 mm, and 50 mm varies as Inline graphic is at different degrees (Inline graphic, Inline graphic, Inline graphic, Inline graphic, Inline graphic, Inline graphic and Inline graphic). (e) The change of the Inline graphic in relation to the radius (r) of the spherical space at a constant distance (350 mm) between two actuator magnets. (f) The change of Inline graphic in response to the distance (Inline graphic) between two actuator magnets. (g) The change of the radius (Inline graphic) of gradient-free space in response to Inline graphic for a set of given thresholds (Inline graphic). Please refer to Segment S4 in Supplementary Video.

Radius of the center spherical space

With an increasing radius (r) of the center spherical space, Inline graphic also exhibits a corresponding increase. Note that the minimum field gradient Inline graphic is equal to 0 for any Inline graphic. As r increases from 0 to 50 mm, Inline graphic increases from 0 to 0.097 T/m, as shown in Fig. 6e. Note that the Inline graphic remains to be 0.

Distance between two actuator magnets

The influence of Inline graphic on the Inline graphic is shown in Fig. 6f. As Inline graphic increases, Inline graphic at a larger r decreases faster. Specifically, as Inline graphic increases from 350 to 450 mm, the Inline graphic at Inline graphic, 30, 40 and 50 mm decreases from 0.028 to 0.008 T/m, 0.045 to 0.012 T/m, 0.067 to 0.017 T/m and 0.097 to 0.024 T/m, respectively.

Free-gradient region

A space is assumed to be a gradient-free if the magnitude of magnetic field gradient within the space below a threshold (Inline graphic) such that Inline graphic. The threshold determines the degree of gradient-free in that space. The smaller the threshold, the higher the degree of gradient-free in the space. As Inline graphic increases, the radius (Inline graphic) of the gradient-free space expands for a set of given thresholds, as shown in Fig. 6g. Specifically, as Inline graphic increases from 350 to 450 mm, the Inline graphic at Inline graphic, 0.01, 0.015 and 0.02 increases from 3.86 to 13.23 mm, 7.67 to 25.29 mm, 11.38 to 35.65 mm, and 14.95 to 44.36 mm, respectively. Conversely, the desired distance (Inline graphic) between two actuator magnets can be calculated for the gradient-free space with a required size at a specified threshold. The size of the gradient-free space can be enlarged by increasing the distance between the two actuator magnets. However, this comes at the expense of the average magnetic field strength in the gradient-free space.

In addition, the motion of each robotic joint influences the distribution of both the magnetic field strength and the field gradient within the central spherical region. Visualizations illustrating how each joint’s motion affects the magnetic field strength and the field gradient are provided in Segments S5 and S6 of the Supplementary Video, respectively.

Closed-loop motion control

A TMD is controlled to follow three predefined 2-D trajectories and a 3-D spiral circular trajectory in an agar-gel tissue phantom to verify the capability of our permanent magnet-robotic system of implementing TMD motion control. The TMD consists of a twist body and a cylindrical magnet. The body of the TMD is fabricated using a 3D printer with Formlabs photopolymer resin (FLGPBK04), and has a length of 4 mm, a diameter of 1.5 mm, and a weight of 0.0049 g. The magnet of the TMD is made of Grade-N45 NdFeB and axially magnetized with the diameter of Inline graphic mm and the height of Inline graphic mm, and it has the weight of 0.0064 gram. The magnet is positioned at the tail with its dipole moment being perpendicular to the helix axis of the TMD. The two identical actuator magnets are fabricated with cylindrical Grade-N45 NdFeB and axially magnetized. Each of them has the diameter of Inline graphic mm and the height of Inline graphic mm. Further, the actuator magnets are controlled to rotate synchronously. Each of them is driven by a Maxon motor (Planetary Gearhead GP 32 C D32 mm, 1.0-6.0 Nm, Ceramic Version) with a Maxon controller (EPOS2 50/5, Digital positioning controller, 5 A, 11-50 VDC).

The field-rotation axis’s translational motion, characterized by joint space variable Inline graphic, is implemented by a linear motion stage (KUA1505-520-150-A1-N3, X-Axis unit, Japan). Further, the motion stage is driven by an A1 actuator (MX-106R, Dynamixel Actuator). The yawing motion of the field-rotation axis, which is characterized by joint space variable Inline graphic, is accomplished by an A2 actuator (H42P-020-S300-R, Servomoteur Dynamixel PRO PLUS). The pitching motion of the field-rotation axis, which is characterized by joint space variable Inline graphic, is realized by two A1 actuators which are in synchronous control mode. Another yawing motion of the field-rotation axis, characterized by joint space variable Inline graphic, is fulfilled by two A3 actuators (M42P-010-S260-R, Servomoteur Dynamixel PRO PLUS).

To measure the real-time position and the moving direction of the TMD, two cameras (Aviator GIGE, avA1000-100gm, Basler AG, Ahrensburg, Germany) are mounted on orthogonal sides of the container. Besides, the TMD is immersed in agar-gel tissue phantom which is made of gelatine powder (Ec Nr: 232-554-6, Boom BV, Rabroekenweg, The Netherlands) and demineralized water with a mass ratio of Inline graphic wt%. To make the agar-gel tissue phantom, we put the aqueous solution of which inside a transparent cubical container with a length of Inline graphic mm, and afterward the aqueous solution is stored in a refrigerator at a temperature of 4 degrees Celsius for 12 hours prior to the experiment. The TMD is actuated under the actuation frequency of 2 Hz during the closed-loop motion control.

Two-dimensional motion control

We implement 2-D closed-loop motion control experiments with two prescribed trajectories. To begin with, the prescribed “Triangle” and “Square” trajectories are broken into Inline graphic and Inline graphic representative waypoints, respectively. Then, the desired inverse solution at each representative point of prescribed trajectories is solved based on the algorithm presented in Algorithm 1. Next, these inverse solutions provide the real-time reference positions for joint space variables during the implementations of TMD closed-loop motion control. The prescribed (red) and actual (blue) trajectories with their tracking errors are indicated in each case, as shown in Fig. 7. It indicates that the maximum position tracking errors of the “Triangle” and “Square” trajectories are 1.94 mm and 1.20 mm, respectively. The increase in the motion speed of the TMD can be achieved by increasing the actuation frequency. However, increasing the TMD’s motion speed requires the system to have the capability to respond quickly. Otherwise, it may lead to an increase in position tracking error. Please refer to Segment S7 in Supplementary Video.

Fig. 7.

Fig. 7

2-D closed-loop motion control of a TMD to move along a prescribed 2-D trajectories. (a) “Triangle” trajectory with its tracking error. (b) “Square” trajectory with its tracking error. The prescribed trajectories (red) and the actual trajectories (blue) are indicated. The TMD achieves an average motion speed of 0.27 mm/s during the closed-loop motion control. Please refer to Segment S7 in Supplementary Video.

Three-dimensional motion control

We implement 3-D closed-loop motion control experiments with one prescribed trajectory. To begin with, the prescribed 3-D spiral trajectory is broken into Inline graphic representative waypoints (see Table 1). These waypoints are evenly distributed on the predefined trajectory. The desired field-rotation axis at each representative waypoint is indicated by red arrow. Given the representative waypoint Inline graphic and the desired field-rotation axis Inline graphic, the desired dipole-rotation axis Inline graphic, and the desired vector of joint space variables Inline graphic at each waypoint is calculated in Table 1 by using the algorithm presented in Algorithm 1.

The time-dependent changes of reference (red) and actual (blue) positions in joint space variables are shown in Fig. 8a. The time-dependent change of Inline graphic shows a tendency for the linear motion stage to move forth and back to follow the TMD motion in the y-axis direction. The time-dependent change of Inline graphic indicates that the bottom yawing motor approximately rotates Inline graphic at two adjacent representative waypoints. The time-dependent change of Inline graphic indicates that the pitching motor decreases its pitching angle as the TMD moves upward. The time-dependent change of Inline graphic indicates that the two top yawing motors make a small rotation. As we look at the time-dependent changing trend of each joint space variable, the control system tends to keep the TMD at the center of the workspace throughout the process of controlling the TMD to move along the predefined trajectories.

Fig. 8.

Fig. 8

3-D closed-loop motion control of a TMD is implemented using our permanent magnet-based robotic system. The TMD is controlled to follow a predefined 3-D spiral trajectory inside a square container (with the side length of 100 mm) filled with agar-gel tissue phantom. (a) The reference position (red) and actual position (blue) of each joint variable indicates the control input and output of each joint variable. (b) The actual track points from the top view form a circle with a diameter of 30.6 mm, and those in the side view form the rising spirals with a pitch of 19.0 mm. (c) The synthetic 3-D trajectory (green) indicates the mean absolute error compared to the predefined one (black) is 1.18 mm and the maximum tracking error is 2.64 mm. The desired field-rotation axis at each representative point is indicated by a red arrow. Please refer to Segment S8 in Supplementary Video.

Figure 8b indicates the real-time position of the TMD at the top and side views. From the top view, the TMD trajectory forms a circle with a diameter of Inline graphic mm. From the side view, the trajectory forms a spiral with a pitch of Inline graphic mm. Further, Fig. 8c demonstrates that the mean absolute error of 3-D motion control, by calculating the average positioning error between the synthetic and predefined 3-D trajectory (green and black), is Inline graphic mm, and the maximum tracking error is 2.64 mm. Experimental results reveal that the TMD can move controllably. Please refer to Segment S8 in Supplementary Video.

Conclusion

We develop a permanent magnet-based robotic system which enables motion control of TMDs. First, we derive a kinematic model which relates the field-rotation axis, the dipole-rotation axis and the joint space variables. Then, we characterize the yawing and pitching motion of the field-rotation axis at the central point of workspace. Next, we analyze the difficulty level of orienting the field-rotation axis at the central point of the workspace and observe that the system exhibits greater degree of singularity as the field-rotation axis becomes vertical. Then, we characterize the magnetic field and field gradient in workspace and observe that the center region of the workspace is almost a gradient-free region. Finally, we demonstrate the capability of our robotic system to control a TMD moving along prescribed trajectories in 2-D and 3-D space experimentally. In addition, our system is not only capable of driving highly magnetized devices, like those containing NdFeB magnets for magnetization, but also caters to weakly magnetized devices, such as soft sperm robots that utilize injected magnetic particles for magnetization4243.

Supplementary Information

Supplementary Legends. (59.8KB, pdf)
Supplementary Video 1. (17.1MB, mp4)

Acknowledgements

The authors would like to thank E.D. de Jong and Mert Kaya for fabricating mechanical parts during the development of our permanent-based robotic system, and thank Zihan Wang for providing the assistance of image tracking of tetherless magnetic devices.

Appendix 1

Frame parameters of the permanent-magnet based robotic system

The parameters corresponding to each frame shown in Fig. 2 are demonstrated in Table 2 as below. In which, for Inline graphic, Inline graphic and Inline graphic, and for Inline graphic, Inline graphic and Inline graphic.

Appendix 2

Characterization of magnetic filed

Highest and lowest magnetic field strengths, and highest field gradient within the center spherical space of different radii within a rotation period of actuator magnets.

Author contributions

I.S.M.K. contributed to the conception and overall design of the study. Z.Z. conducted the experiments, contributed to the methodology, and wrote the manuscript. S.M. supervised the project and provided methodological analysis. A.K. proposed the initial idea and provided critical comments on the manuscript. All authors reviewed and approved the final version of the manuscript.

Funding

This work is supported in part by the European Research Council (ERC) under the European Unions Horizon 2020 Research, in part by Innovation programme under Grant 866494 project-MAESTRO, and in part by the financial support from the China Scholarship Council.

Data Availability

The datasets generated during this study include experimental and simulation videos, which are provided as supplementary material.

Declarations

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary Information

The online version contains supplementary material available at 10.1038/s41598-025-15247-7.

References

  • 1.Nelson, B. J., Kaliakatsos, I. K. & Abbott, J. J. Microrobots for minimally invasive medicine. Annu. Rev. Biomed. Eng.12, 55–85 (2010). [DOI] [PubMed] [Google Scholar]
  • 2.Jang, D., Jeong, J., Song, H. & Chung, S. K. Targeted drug delivery technology using untethered microrobots: A review. J. Micromech. Microeng.29(5), 053002 (2019). [Google Scholar]
  • 3.Cai, Z. et al. Performance evaluation of a magnetically driven microrobot for targeted drug delivery. Micromachines12(10), 1210 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Yang, L., Wang, Q. & Zhang, L. Model-free trajectory tracking control of two-particle magnetic microrobot. IEEE Trans. Nanotechnol.17(4), 697–700 (2018). [Google Scholar]
  • 5.Ricotti, L. & Menciassi, A. Nanotechnology in biorobotics: Opportunities and challenges. J. Nanopart. Res.17(2), 1–10 (2015). [Google Scholar]
  • 6.Wang, Y. et al. A microfluidic robot for rare cell sorting based on machine vision identification and multi-step sorting strategy. Talanta226, 122136 (2021). [DOI] [PubMed] [Google Scholar]
  • 7.Wang, J.-W. et al. Miniaturization of the whole process of protein crystallographic analysis by a microfluidic droplet robot: From nanoliter-scale purified proteins to diffraction-quality crystals. Anal. Chem.91(15), 132–140 (2019). [DOI] [PubMed] [Google Scholar]
  • 8.Khalil, I. S. et al. Mechanical rubbing of blood clots using helical robots under ultrasound guidance. IEEE Robot. Autom. Lett.3(2), 1112–1119 (2018). [Google Scholar]
  • 9.Mahdy, D., Reda, R., Hamdi, N. & Khalil, I. S. Ultrasound-guided minimally invasive grinding for clearing blood clots: Promises and challenges. IEEE Instrum. Meas. Mag.21(2), 10–14 (2018). [Google Scholar]
  • 10.Oulmas, A., Andreff, N. & Régnier, S. 3d closed-loop motion control of swimmer with flexible flagella at low reynolds numbers, In 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS) 1877–1882 (IEEE, 2017).
  • 11.Xu, T., Hwang, G., Andreff, N. & Régnier, S. Planar path following of 3-d steering scaled-up helical microswimmers. IEEE Trans. Rob.31(1), 117–127 (2015). [Google Scholar]
  • 12.Oulmas, A., Andreff, N. & Régnier, S. Chained formulation of 3d path following for nonholonomic autonomous robots in a Serret–Frenet frame. In 2016 American Control Conference (ACC) 7275–7280 (IEEE, 2016).
  • 13.Park, C., Kim, J., Kim, S.-J. & Yoo, J. Development of a permanent magnet type micro-robot actuated by external electromagnetic system. Microsyst. Technol.21(6), 1257–1265 (2015). [Google Scholar]
  • 14.Khalil, I. S., Abelmann, L. & Misra, S. Magnetic-based motion control of paramagnetic microparticles with disturbance compensation. IEEE Trans. Magn.50(10), 1–10 (2014). [Google Scholar]
  • 15.Ongaro, F., Pane, S., Scheggi, S. & Misra, S. Design of an electromagnetic setup for independent three-dimensional control of pairs of identical and nonidentical microrobots. IEEE Trans. Rob.35(1), 174–183 (2018). [Google Scholar]
  • 16.Zheng, L. et al. 3d navigation control of untethered magnetic microrobot in centimeter-scale workspace based on field-of-view tracking scheme. IEEE Trans. Robot.1, 1 (2021). [Google Scholar]
  • 17.Zhong, S. et al. Spatial constraint-based navigation and emergency replanning adaptive control for magnetic helical microrobots in dynamic environments. IEEE Trans. Autom. Sci. Eng.21(4), 7180–7189 (2024). [Google Scholar]
  • 18.Wang, H. et al. Data-driven parallel adaptive control for magnetic helical microrobots with derivative structure in uncertain environments. IEEE Trans. Syst. Man Cybern. Syst.54(7), 4139–4150 (2024). [Google Scholar]
  • 19.Zhong, S. et al. Paired interactions of magnetic millirobots in confined spaces through data-driven disturbance rejection control under global input. In IEEE/ASME Transactions on Mechatronics 1–12 (2025).
  • 20.Janssen, H., Ter Maten, E. & Van Houwelingen, D. Simulation of coupled electromagnetic and heat dissipation problems. IEEE Trans. Magn.30(5), 3331–3334 (1994). [Google Scholar]
  • 21.Erni, S., Schürle, S., Fakhraee, A., Kratochvil, B. E. & Nelson, B. J. Comparison, optimization, and limitations of magnetic manipulation systems. J. Micro-Bio Robot.8(3), 107–120 (2013). [Google Scholar]
  • 22.Fountain, T. W., Kailat, P. V. & Abbott, J. J. Wireless control of magnetic helical microrobots using a rotating-permanent-magnet manipulator. In 2010 IEEE International Conference on Robotics and Automation 576–581 (IEEE, 2010).
  • 23.Mahoney, A. W. & Abbott, J. J. Generating rotating magnetic fields with a single permanent magnet for propulsion of untethered magnetic devices in a lumen. IEEE Trans. Robot.30(2), 411–420 (2013). [Google Scholar]
  • 24.Nelson, N. D. & Abbott, J. J. Generating two independent rotating magnetic fields with a single magnetic dipole for the propulsion of untethered magnetic devices. In 2015 IEEE International Conference on Robotics and Automation (ICRA) 4056–4061 (IEEE, 2015).
  • 25.Mahoney, A. W., Wright, S. E. & Abbott, J. J. Managing the attractive magnetic force between an untethered magnetically actuated tool and a rotating permanent magnet. In 2013 IEEE International Conference on Robotics and Automation 5366–5371 (IEEE, 2013).
  • 26.Hosney, A., Klingner, A., Misra, S. & Khalil, I. S. Propulsion and steering of helical magnetic microrobots using two synchronized rotating dipole fields in three-dimensional space. In 2015 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS) 1988–1993 (IEEE, 2015)
  • 27.Zhang, W., Meng, Y. & Huang, P. A novel method of arraying permanent magnets circumferentially to generate a rotation magnetic field. IEEE Trans. Magn.44(10), 2367–2372 (2008). [Google Scholar]
  • 28.Qiu, T., Palagi, S., Sachs, J. & Fischer, P. Soft miniaturized linear actuators wirelessly powered by rotating permanent magnets. In 2018 IEEE International Conference on Robotics and Automation (ICRA) 3595–3600 (IEEE, 2018)
  • 29.Khalil, I. S. et al. Positioning of drug carriers using permanent magnet-based robotic system in three-dimensional space. In 2017 IEEE International Conference on Advanced Intelligent Mechatronics (AIM) 1117–1122 (IEEE, 2017)
  • 30.Mahoney, A. W. & Abbott, J. J. Five-degree-of-freedom manipulation of an untethered magnetic device in fluid using a single permanent magnet with application in stomach capsule endoscopy. Int. J. Robot. Res.35(1–3), 129–147 (2016). [Google Scholar]
  • 31.Shapiro, B., Dormer, K. & Rutel, I. B. A two-magnet system to push therapeutic nanoparticles. AIP Conf. Proc.1311, 77 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Amokrane, W., Belharet, K. & Ferreira, A. Design and modeling of a two-magnet actuator for robotic micromanipulation. Sens. Actuators A316, 112391 (2020). [Google Scholar]
  • 33.Abbes, M., Belharet, K., Mekki, H. & Poisson, G. Permanent magnets based actuator for microrobots navigation. In 2019 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS) 7062–7067 (IEEE, 2019).
  • 34.Son, D., Ugurlu, M. C. & Sitti, M. Permanent magnet array-driven navigation of wireless millirobots inside soft tissues. Sci. Adv.7(43), eabi8932 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Mahoney, A. W. & Abbott, J. J. Managing magnetic force applied to a magnetic device by a rotating dipole field. Appl. Phys. Lett.99(13), 134103 (2011). [Google Scholar]
  • 36.Hosney, A., Abdalla, J., Amin, I. S., Hamdi, N. & Khalil, I. S. In vitro validation of clearing clogged vessels using microrobots. In 2016 6th IEEE International Conference on Biomedical Robotics and Biomechatronics (BioRob) 272–277 (IEEE, 2016)
  • 37.Pittiglio, G. et al. Collaborative magnetic manipulation via two robotically actuated permanent magnets. IEEE Trans. Robot.1, 1 (2022). [Google Scholar]
  • 38.Ryan, P. & Diller, E. Magnetic actuation for full dexterity microrobotic control using rotating permanent magnets. IEEE Trans. Robot.33(6), 1398–1409 (2017). [Google Scholar]
  • 39.Carpi, F. & Pappone, C. Stereotaxis niobe® magnetic navigation system for endocardial catheter ablation and gastrointestinal capsule endoscopy. Expert Rev. Med. Devices6(5), 487–498 (2009). [DOI] [PubMed] [Google Scholar]
  • 40.Caciagli, A., Baars, R. J., Philipse, A. P. & Kuipers, B. W. Exact expression for the magnetic field of a finite cylinder with arbitrary uniform magnetization. J. Magn. Magn. Mater.456, 423–432 (2018). [Google Scholar]
  • 41.Mahoney, A. W. & Abbott, J. J. 5-dof manipulation of an untethered magnetic device in fluid using a single permanent magnet. In Robotics: Science and Systems (2014).
  • 42.Magdanz, V. et al. Ironsperm: Sperm-templated soft magnetic microrobots. Sci. Adv.6(28), eaba5855 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43.Wang, Z., Klingner, A., Magdanz, V., Misra, S. & Khalil, I. S. Soft bio-microrobots: Toward biomedical applications. Adv. Intell. Syst.1, 2300093 (2023). [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplementary Legends. (59.8KB, pdf)
Supplementary Video 1. (17.1MB, mp4)

Data Availability Statement

The datasets generated during this study include experimental and simulation videos, which are provided as supplementary material.


Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES