1 Introduction

Soft robots are a type of new robots, and research on them is only at the initial stage. The main characteristic of soft robots is their low resistance to stress forces. Like some animals, they can morph among different shapes to move forwards. Soft robots have many advantages and priorities to traditional rigid robots. They can change their sizes and shapes in large range and have wide potential applications in detection, exploration, succor and medicine. They can safely interact with humans and natural environments [1]. They can go through an obstacle, which can allow low height only. The soft robot can better mimic the moving mode of natural living creatures which can adapt to environments [2, 3].

Soft robots use changes in pressure of liquid or air to move in a unique way. Onal presented an approach to create a bio-inspired soft robotic snake that could undulate in a similar way to its biological counterpart using pressure for actuation power, without human intervention [4]. Cecilia [5] invented octopus-inspired soft arms, which could bend like real arms of people. Manti developed a soft robotic gripper with three fingers. It could achieve passive adaption to target varying in shape, size and material during grasping, which simplified the controlling system [6]. Fei analyzed the nonlinear dynamic moving process with the deflating and inflating modes [3, 7]. Additionally, some different moving modes such as a caterpillar-inspired moving mode [8,9,10,11] and a deformational jumping and crawling moving mode were presented. The crawling soft robot was pushed by walking with four legs, which was reflection of four-foot animals [12]. Teruyoshi built up a model of a crawling soft robot by referring to the crawling mode of a snail. The snail robot borrowed the forces created by the difference of the pressure in the body and outside [13]. They are all analogies of the nature. In all cases, the mechanical motion is driven by external stimuli. Koh [14] employed smart structures and actuators and proposed a deformable wheeled robot that could change the shape of the wheel depending on the obstacles. The robot imitated the locomotion mechanism of the Amoeba, actuated by the IPMC (ionic polymer–metal composites) actuators. The IPMC actuators pasted on the skin of the robot and stimulated by regular control signals could make the robot move forwards, backwards, enter the narrow holes [15]. Shepherd used the explosive combustion of hydrocarbons triggered by an electrical spark to cause a soft robot to jump over obstacles. The use of explosions for actuation was compatible with soft machines. Explosive power allowed a soft robot to jump 30 times its height with an initial speed of 3.6 m/s [16]. Huang [17] designed and fabricated a microsoft swimming robot with both powering and controlling functions provided by remote light, which did not carry any electronic devices and batteries. However, the research on the nonlinear turning motion and obstacle avoidance of the soft robot is less.

In this paper, we present one kind of deformable spherical modular soft robot. This kind of soft robot can make a turning motion to avoid the obstacle and go through the hole narrower than its body size. The nonlinear relation between the pressure P and the inflation radius \(\left( r \right) \) at different original radii \(\left( {r_0 } \right) \), and the inflation and deflation velocity \(v_r \) are obtained. According to the deflating and inflating actions of the spherical cells, the size and the shape of each spherical cell can be changed. With the friction feet sticking with the ground in turn, the motion can be finished. With six kinds of different steps and constraint conditions, the soft robot can make a turning motion. A simulation and an experiment of five spherical cells are shown to emulate the turning process in a period.

2 Modular soft robot design

2.1 System structure

Modular soft robot, which consists of four spherical cells and two friction feet, can move forwards according to the deflating action and the inflating action of each spherical cell. However, the soft robot only with four spherical cells cannot provide the deflection angle; thus, it cannot turn even if it encounters obstacles. According to analyses and experiments, five spherical cells are the basic turning motion unit of modular soft robots (Fig. 1). In the paper, a five-spherical-cell soft robot system is discussed. The approach proposed can be extended to a robot made of more than 5 cells. Since the spherical cells can deflate and inflate, this kind of soft robot has the advantage of changing its size, which is not all the soft robots can do. When this robot meets a narrow hole, it can reduce the maximum inflation radius r to go through the hole, which is narrower or smaller than the maximum size of the soft robot.

Fig. 1
figure 1

Structure of the modular soft robot

The five-spherical-cell soft robot consists of a head cell (Cell 1), a tail cell (Cell 5), two neck cells (Cell 2 and Cell 3), a body cell (Cell 4), a former friction foot \(k_{1}\) and a latter friction foot \(k_{2}\) (Fig. 1). The former friction foot sticks with the bottom of Cell 1, and the latter friction foot sticks with the bottom of Cell 5. Each modular cell is a rubber-like spherical thin shell. According to the appropriate deflating or inflating action of each spherical cell and two friction feet sticking with the ground in turn, the robot can make a turning motion. In order to provide a deflection angle of Cell 1, Cell 2 and Cell 3 are pasted between Cell 1 and Cell 4. When Cell 2 and Cell 3 inflate synchronously, Cell 1 is put up. Then, let Cell 2 and Cell 3 be with different radii, so Cell 1 get the deflection angle.

Figure 2 shows the experiment system, consisting of five spherical cells, the gas circuit system, microcontroller (AT89S52, ATMEL), the air pump (30 L/min), the solenoid valve (QVT307), the emulsion pipelines and power source (DC24V).

Fig. 2
figure 2

A soft robot system consisting of five spherical cells

2.2 Inflation radius r

The five spherical cells are made of latex. In order to find the pressure property, we use Mooney–Rivlin model [18] to create the relation between the pressure P and the inflation radius r at different original radii \(r_0 \). The original thick of the spherical cell is \(h_0 \), which is much less than \(r_0 \). According to the Mooney–Rivlin model and the finite elasticity theory, we can obtain

$$\begin{aligned} \left\{ {{\begin{array}{l} {I_1 =\lambda _1^2 +\lambda _2^2 +\lambda _3^2 } \\ {I_2 =\lambda _1^{-2} +\lambda _2^{-2} +\lambda _3^{-2} } \\ {I_3 =\lambda _1 \lambda _2 \lambda _3 =1} \\ \end{array} }} \right. \end{aligned}$$
(1)

where the stretches at three different directions are \(\lambda _1 =\frac{h}{h_0 }, \lambda _2 =\lambda _3 =\frac{r}{r_0 },\lambda _1 =\frac{1}{\lambda _2^2 }\). \(I_{i}\) represents the principal invariant \((i=1,2,3)\). h represents the thick of each cell during the inflating and deflating process.

We can get the strain–energy density equation W.

$$\begin{aligned} W= & {} W\left( {\lambda _1 ,\lambda _2 ,\lambda _3 } \right) =W\left( {I_1 ,I_2 ,I_3 } \right) \nonumber \\= & {} W\left( {I_1 ,I_2 } \right) -P\left( {\lambda _1 \lambda _2 \lambda _3 -1} \right) \end{aligned}$$
(2)

We assume that all the cells remain spherical during the inflating and deflating process. We can obtain the relation between the inflation pressure P and the stretch \({\uplambda }=\lambda _2 =\lambda _3 \) due to the isotropic incompressible elastic property of latex cells [7].

$$\begin{aligned} P=\frac{4h_0 }{r_0 }\left( {\lambda ^{-1}-\lambda ^{-7}} \right) \left( {\frac{\partial W}{\partial I_1 }\,+\,\lambda ^{2}\frac{\partial W}{\partial I_2 }} \right) =\frac{h_0 }{r_0 \lambda ^{2}}\frac{\partial W}{\partial \lambda } \end{aligned}$$
(3)

For Mooney–Rivlin material [18],

$$\begin{aligned} W=C_1 \left( {I_1 -3} \right) +C_2 \left( {I_2 -3} \right) \end{aligned}$$
(4)

where \(C_1\) and \(C_2\) represent material constant. \(C_1 =1272\,\hbox {kPa}\), \(C_2 =30\hbox {kPa}\).

According to (2), (3), (4), we can obtain

$$\begin{aligned} P=4 h_{0}[(r^{6}-r_{0}^{6})(C_{1} r^{-7}-C_{2}r_{0}^{-2}r^{-5})] \end{aligned}$$
(5)

With (5), we can get Fig. 3 which shows the relation between pressure P and radius r. Three curves represent three different original radii \(r_{0}\). In the paper, we choose the section of the curve where the pressure is increasing with radius, and also, we need to make sure the robot is small but with enough expansion rate. Thus, we design each cell with the original radius \(r_{0}= 4.0\,\hbox {cm}\). In that case, the inflating radius of each spherical cell is from \(r_{0}= 4.0\,\hbox {cm}\) to \(r=6.5\,\hbox {cm}\).

Fig. 3
figure 3

Relation between pressure P and radius r

2.3 The velocity of inflation and deflation

At the inflating process, we use a constant-flow air pump to inflate the cell, and the rate of the flow is 30 L/min.

At the deflating process, we can obtain the velocity of deflation according to the Bernoulli’s principle.

$$\begin{aligned} P_{0}+ \frac{1}{2} \rho {{v}^{2}}=P \end{aligned}$$
(6)

where \(P_{0}\) is the atmospheric pressure, \(\rho \) is the air density, v is the velocity of exiting gas.

During the inflating or deflating process, each of the spherical cells is an independent compressed gas space. We can use the ideal gas law of each cell.

$$\begin{aligned} P\hbox {V}=nR \hbox {T} \end{aligned}$$
(7)

where \(\hbox {V}=\frac{4}{3}\pi r^{3}\), \(\hbox {V}\) is the volume of the individual spherical cell. R is the ideal gas constant which is \(8.314 \hbox { J}/(\hbox {k} \times \hbox {mol})\) and T is Kelvin thermodynamic temperature, which is 273.15 K at zero temperature. n represents the number of moles.

At the inflating process \(n=n_{0}+\frac{qt}{{V}_{m}}\), \(n_{0}\) is the number of moles at the original radius \(r_{0}\), t is the inflation time, \(V_{m}\) represents the molar volume of gas, which is about 24 L/mole at \(20\,^{\circ }\)C, q is the rate of the flow which is 30 L/min.

At the deflating process \(n = {n_1} - \frac{{Svt}}{{{V_m}}}\), \(n_{1}\) is the number of moles at the radius r. S is the cross section of gas exit pipe.

According to (5) and (7), we can get the equation between the inflation radius \(r_{I}\) and the inflation time t, \(r_{I}=r(t)\).

$$\begin{aligned}&\frac{{16}}{3}\pi {h_0}\left[ {{C_1}\left( {{r_I}^2 - r_0^6{r_I}^{ - 4}} \right) + {C_2}\left( {r_0^{ - 2}{r_I}^4 - r_0^4{r_I}^{ - 2}} \right) } \right] \nonumber \\&\quad = \frac{{qtRT}}{{{V_m}}} + {n_0}RT \end{aligned}$$
(8)

And according to (5), (6) and (7), we can obtain the equation between the deflation radius \(r_{D}\) and the deflation time t, \(r_{D}=r(t)\).

$$\begin{aligned}&\frac{{16}}{3}\pi {h_0}\left[ {{C_1}\left( {{r_D}^2 - r_0^6{r_D}^{ - 4}} \right) + {C_2}\left( {r_0^{ - 2}{r_D}^4 - r_0^4{r_D}^{ - 2}} \right) } \right] \nonumber \\&\quad = {n_1}RT\nonumber \\&\qquad - \frac{{StRT}}{{{V_m}}}\sqrt{2\frac{{4{h_0} \left[ {C_1}\left( {{r_D}^2 - r_0^6{r_D}^{ - 4}} \right) \,+\, {C_2}\left( {r_0^{ - 2}{r_D}^4 - r_0^4{r_D}^{ - 2}} \right) \right] - {P_0}}}{\rho }}\nonumber \\ \end{aligned}$$
(9)

We can obtain the velocity of inflation and deflation.

$$\begin{aligned} {v_r} = \frac{{dr\left( t \right) }}{{dt}} \end{aligned}$$
(10)

With (8) and (9), we can get the relation between the radius r and the inflation or deflation time t (the original radius \(r_{0}= 4.0\,\hbox {cm}\)), in Fig. 4a. And with (10), we can obtain the velocity of inflation and deflation in Fig. 4b.

Fig. 4
figure 4

a Relation between radius r and inflation or deflation time t. b Relation between velocity of inflation or deflation \(v_{r}\) and time t

3 Nonlinear turning motion analysis

3.1 Turning motion steps

The moving process of the multi-spherical modular soft robot depends on the deflating and inflating actions of each spherical cell. The whole deflating and inflating process is also largely related to the maximum radius and the minimum radius of each cell. The maximum radius of each spherical cell is \(R_{i }=r=6.5\,\hbox {cm}\), and the minimum radius is \(r_{0}=4\,\hbox {cm}\). After the inflating and deflating process and two friction feet sticking with the ground in turn, the whole soft robot could turn and move forwards.

Five spherical cells are bonded as a whole soft robot. The center of Cell i is \(O_{i }(i=1, 2, 3, 4, 5)\). The fixed coordinates system \(O\hbox {XYZ}\) is set up. At the original state, \(O_{5}\) is on the origin point O of the coordinates system \(O\hbox {XYZ}\) (Fig. 5). \(\alpha \) represents the angle between the center line \(O_{2}O_{4}\) (AB) and the center line \(O_{3}O_{4}\), \(\beta \) represents the angle between the center line \(O_{1}O_{2}\) and the center line \(O_{1}O_{3}\), \(\alpha =\beta =90{^{\circ }}\). The radii of the cells are the same, and the centers \(O_{1}(E)\), \(O_{4}(B)\), \(O_{5}(O)\) are on the X-axis. Cell 3 is bonded with Cell 1 and Cell 4 at point C and point D.

We analyze the nonlinear turning motion of the modular soft robot. The turning process is divided into six steps in a period.

  • STEP A—The friction feet stick with the ground. Cell 2 and Cell 3 inflate (their radii change from 4 to 6.5 cm), and then, Cell 3 deflates (its radius changes from 6.5 to 4 cm). Thus, the friction foot \(k_{1}\) is raised and Cell 1 gets a deflection angle.

  • STEP B—Cell 1 inflates (radius changes from 4 to 6.5 cm). Let the friction foot \(k_{1}\) stick with the ground.

  • STEP C—Cell 4 inflates and its radius changes from 4 to 6.5 cm. Then, Cell 5 and the friction foot \({k}_{2}\) are raised.

  • STEP D—Cell 2 deflates and its radius changes from 6.5 to 4 cm. Because the friction foot \(k_{1}\) sticks with the ground. Cell 5 and Cell 4 have a deflection. Thus, the whole robot has a deflection.

  • STEP E—Cell 1 deflates and its radius changes from 6.5 to 4 cm.

  • STEP F—Cell 4 deflates and its radius changes from 6.5 to 4 cm. The friction foot \(k_{2}\) sticks with the ground. The five cells are back to the original state.

A period of the turning process is finished.

Fig. 5
figure 5

Original state of the modular soft robot

3.2 Nonlinear turning motion process

In Fig. 5, 1, 2, 3, 4, 5 stand for Cell 1, Cell 2, Cell 3, Cell 4, Cell 5, respectively, from the right to the left in the forward direction. Because the soft robot can finish the turning motion, the obstacles are placed in front of the robots and on the left of the robot on a flat surface. In a period, the turning motion process mainly consists of the following six steps.

  • STEP A—Cell 2 and Cell 3 inflate and then Cell 3 deflates.

In Fig. 6, in order to raise Cell 1 and the friction foot \(k_{1}\), Cell 2 and Cell 3 inflate and then Cell 3 deflates. Thus, Cell 1 gets a deflection angle. At this step, Cell 2 and Cell 5 contact the ground. The centers of five cells are at the same plane \(\varGamma \). The angle between \(\varGamma \) and the XOY plane is \(\theta \). At STEP A, because of the friction foot \(k_2\) , only Cell 5 does not change its position. The centers of Cell 1, Cell 2, Cell 3 and Cell 4 are \(E_{1}\), \(A_{1}\), \(F_{1}\) and \(B_{1}\). The coordinates of each cell’s center are as follows.

Fig. 6
figure 6

Cell 2 inflating process

$$\begin{aligned}&\theta _1 \left( t \right) =\hbox {asin}\left( {\frac{r_2 \left( t \right) -r_{05} }{r_{05} +r_{04} +\frac{\sqrt{2}}{2}r_{04} +\frac{\sqrt{2}}{2}r_2 \left( t \right) }} \right) \end{aligned}$$
(11)
$$\begin{aligned}&\quad \tan \angle A_1 B_1 E_1 =\cot \angle B_1 A_1 F_1 =\frac{r_{04} +r_2 \left( t \right) }{r_{04} +r_{03} } \end{aligned}$$
(12)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} x_{1}^{1}(t)=\left[ r_{05}+r_{04}+2(r_{04}+r_{2}(t)) {\cos } \angle A_{1}B_{1}E_{1}\right. \\ \qquad \qquad \left. {\cos } \left( \angle A_{1} B_{1}E_{1} -\frac{\pi }{4}\right) \right] {\cos } \theta _{1} (t)\\ y_{1}^{1} (t) = 2(r_{04}+r_{2}(t))\sin \angle A_{1} B_{1} E_{1} \\ z_{1}^{1}(t)=\left[ r_{05} +r_{04}+2(r_{04}+r_{2}(t)) \cos \angle A_{1} B_{1}E_{1}\right. \\ \qquad \qquad \left. \cos \left( \angle A_{1} B_{1} E_{1} -\frac{\pi }{4}\right) \right] \sin \theta _{1}(t)\\ \end{array} }} \right. \end{aligned}$$
(13)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {x_2^1 \left( t \right) =\left[ {r_{05} +r_{04} +\frac{\sqrt{2}}{2}\left( {r_{04} +r_2 \left( t \right) } \right) } \right] \cos \theta _1 \left( t \right) } \\ {y_2^1 \left( \hbox {t} \right) =\frac{\sqrt{2}}{2}\left( {r_{04} +r_2 \left( t \right) } \right) } \\ {z_2^1 \left( t \right) =\left[ {r_{05} +r_{04} +\frac{\sqrt{2}}{2}\left( {r_{04} +r_2 \left( t \right) } \right) } \right] \sin \theta _1 \left( t \right) } \\ \end{array} }} \right. \end{aligned}$$
(14)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {x_3^1 =\left[ {r_{05} +r_{04} +\frac{\sqrt{2}}{2}\left( {r_{04} +r_{03} } \right) } \right] \cos \theta _1 \left( t \right) } \\ {y_3^1 =\frac{\sqrt{2}}{2}\left( {r_{04} +r_{03} } \right) } \\ {z_3^1 =\left[ {r_{05} +r_{04} +\frac{\sqrt{2}}{2}\left( {r_{04} +r_{03} } \right) } \right] \sin \theta _1 \left( t \right) } \\ \end{array} }} \right. \end{aligned}$$
(15)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {x_4^1 =\left( {r_{05} +r_{04} } \right) \cos \theta _1 \left( t \right) } \\ {y_4^1 =0} \\ {z_4^1 =\left( {r_{05} +r_{04} } \right) \sin \theta _1 \left( t \right) } \\ \end{array} }} \right. \end{aligned}$$
(16)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {x_5^1 =0} \\ {y_5^1 =0} \\ {z_5^1 =0} \\ \end{array} }} \right. \end{aligned}$$
(17)

\(x_{i}^{j}\) represents the x coordinates of Cell i at the j-th step. \(y_{i}^{j}\) represents the y coordinates of Cell i at the j-th step. \(z_{i}^{j}\) represents the z coordinates of Cell i at the j-th step. \(r_{i}(t)\) represents Cell i’s radius \((r_{i}=r=6.5\,\hbox {cm})\), \(r_{0i}\) represents Cell i’s original radius \((r_{0i}= r_{0}=4.0\,\hbox {cm})\).

  • STEP B—Cell 1 inflates (Fig. 7). Because of the friction foot \(k_{2}\), the positions of the centers of Cell 2, Cell 3, Cell 4 and Cell 5 do not change. The center of Cell 1 is \(E_{2}\). The coordinate of Cell 1’s center is as follows.

$$\begin{aligned}&\left\{ {{\begin{array}{l} {(x_{1}^{2}(t)-x_{D})}^{2} + {(y_{1}^{2} (t) -y_{D})}^{2}+{(z_{1}^{2}(t)-z_{D})}^{2}=r_{1}^{2}(t)\\ {(x_{1}^{2}(t)-x_{2}^{2}})^{2} + {(y_{1}^{2}(t) -y_{2}^{2})}^{2} + {(z_{1}^{2} (t) -z_{2}^{2})}^{2}\\ \qquad \qquad ={(r_{1}(t) +r_{2})}^{2}\\ z_{1}^{2}(t) =r_{1}(t) -r_{0}\\ \end{array} }} \right. \end{aligned}$$
(18)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {x_1^2 \left( t \right) =\frac{P\left( t \right) -2y_1^2 \left( t \right) \left( {y_2^2 -y_D } \right) }{2\left( {x_2^2 -x_D } \right) }} \\ {y_1^2 \left( \hbox {t} \right) =\frac{-\eta \left( t \right) -\sqrt{{\eta \left( t \right) ^{2}-4}\lambda {\omega }}}{2 \lambda }} \\ {z_1^2 \left( t \right) =r_1 \left( t \right) -r_0 } \\ \end{array} }} \right. \end{aligned}$$
(19)

Here

$$\begin{aligned}&\left\{ {{\begin{array}{l} P(t) =r_{1}{(t)}^{2}-{(z_{1}^{2}-z_{D})}^{2}-{(r_{1}(t)+r_{2})}^{2}\\ \qquad \qquad +({y_{2}^{2}}^{2} +{x_{2}^{2}}^{2})- (x_{D}^{2}+y_{D}^{2})\\ \lambda =1+{\left( \frac{y_{2}^{2}-y_{D}}{x_{2}^{2}-x_{D}}\right) }^{2}\\ \eta (t)=-\left( 2y_{2}^{1}-\frac{2(y_{2}^{2}-y_{D})}{x_{2}^{2}-x_{D}}\left( x_{2}^{1}- \frac{P(t)}{2(x_{2}^{2}-x_{D})}\right) \right) \\ \omega (t)={\left( x_{2}^{1}-\frac{P(t)}{2(x_{2}^{2}-x_{D})}\right) }^{2} +{y_{2}^{2}}^{2}-{(r_{1}(t)+r_{2})}^{2}\\ \end{array} }} \right. \end{aligned}$$
(20)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} \angle B_{1}A_{1}F_{1}= arc \tan \frac{r_{04}+r_{03}}{r_{04}+r_{2}}\\ \angle B_{1} A_{1} D_{1} =2 \angle B_{1} A_{1} F_{1} -arc \tan \frac{r_{04}}{r_{04}+r_{2}} \\ A_{1}D_{1}=A_{1}C_{1}=\sqrt{{(r_{2}+r_{04})}^{2}+r_{04}^{2}}\\ B_{1}D_{1} =\\ {\sqrt{(r_{2}+r_{04})^{2}+A_{1}D_{1}^{2}-2A_{1}D_{1}(r_{2}+r_{04}) \cos \angle B_{1} A_{1} D_{1}}}\\ \angle A_{1}B_{1} D_{1} = arc \sin \left( \frac{A_{1}D_{1}}{B_{1}D_{1}} \sin \angle B_{1} A_{1} D_{1}\right) \end{array} }} \right. \end{aligned}$$
(21)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {x_D =\left[ {r_{05} +r_{04} +B_1 D_1 \cos \left( {\angle A_1 B_1 D_1 -\frac{\pi }{4}} \right) } \right] \cos \theta } \\ {y_D =B_1 D_1 \sin \left( {\angle A_1 B_1 D_1 -\frac{\pi }{4}} \right) } \\ {z_D =\left[ {r_{05} +r_{04} +B_1 D_1 \cos \left( {\angle A_1 B_1 D_1 -\frac{\pi }{4}} \right) } \right] \sin \theta } \\ \end{array} }} \right. \end{aligned}$$
(22)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {x_2^2 =x_2^1 } \\ {y_2^2 =y_2^1 } \\ {z_2^2 =z_2^1 } \\ \end{array} }} \right. \end{aligned}$$
(23)

After Cell 1 finishes inflating, its friction foot \(k_1 \) sticks with the ground. At the next steps of the turning motion process, the coordinate of Cell 1’s center will not change. The deflections of the robot head are as follows.

$$\begin{aligned} \left\{ {{\begin{array}{l} {\Delta x=x_1^2 -\left( {2+2\sqrt{2}} \right) r_0 } \\ {\Delta y=y_1^2 } \\ {\Delta z=z_1^2 =r_1 -r_0 } \\ \end{array} }} \right. \end{aligned}$$
(24)
Fig. 7
figure 7

Cell 1 inflating process

Fig. 8
figure 8

Cell 4 inflating process

  • STEP C—Cell 4 inflates. During the inflating process of Cell 4, in order to simplify the model, the tiny deflection of Cell 4 in the Y-axis direction is ignored. Because of the friction foot \(k_{1}\), the coordinates of Cell 1’s center and Cell 2’s center do not change. \(\zeta \) represents the angle between the center line \(O_{5}B_{2 }\) and the XOY plane, in Fig. 8. The coordinates of Cell 4’s center and Cell 5’s center are as follows.

$$\begin{aligned}&\angle A_1 B_2 X=arcsin\frac{y_2^3 }{r_4 \left( t \right) +r_2 } \end{aligned}$$
(25)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {x_2^3 =x_2^1 } \\ {y_2^3 =y_2^1 } \\ {z_2^3 =z_2^1 } \\ \end{array} }} \right. \end{aligned}$$
(26)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {x_4^3 \left( t \right) =x_2^3 -\left( {r_4 \left( t \right) +r_2 } \right) \cos \angle A_1 B_2 X} \\ {y_4^3 =0} \\ {z_4^3 \left( t \right) =r_4 \left( t \right) -r_{05} } \\ \end{array} }} \right. \end{aligned}$$
(27)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {x_5^3 \left( t \right) =x_4^3 \left( t \right) -\left( {r_4 \left( t \right) +r_{05} } \right) \cos } \, \zeta \\ {y_5^3 =0} \\ {z_5^3 \left( t \right) =r_4 \left( t \right) -r_{05} -\left( {r_4 \left( t \right) +r_{05} } \right) \sin }\,\zeta \\ \end{array} }} \right. \end{aligned}$$
(28)
  • STEP D– Cell 2 deflates.

Fig. 9
figure 9

Cell 2 deflating process

In Fig. 9, the friction foot \(k_{1}\) sticks with the ground, so the positions of Cell 1 and Cell 3 do not change. The centers of the five cells are at the same plane. After Cell 2 finishes deflating, the distance between Cell 2’s center and Cell 3’s center is back to the original state, as \(A_{2}F_{2}=2{\sqrt{2}}r_{0}\). \(\tau \) represents the deflection angle of the soft robot, which is the angle between the center line \(O_{5}O_{1 }\) and the X-axis in XOY plane. And the coordinates of each cell are as follows.

$$\begin{aligned}&\left\{ {{\begin{array}{l} {{\alpha _4}\left( \hbox {t} \right) = {\beta _4}\left( \hbox {t} \right) = 2arc\sin \left( {\frac{{\sqrt{2} {r_2}\left( t \right) }}{{r + {r_2}\left( t \right) }}} \right) } \\ {\angle {{\text {F}}_2}{E_2}N = arctan\frac{{y_3^4 - y_1^4}}{{x_1^4 - x_3^4}}} \\ {\uptau \left( \hbox {t} \right) = \angle {F_2}{E_2}N + \frac{1}{2}{\beta _4}~\left( t \right) } \\ \end{array} }} \right. \end{aligned}$$
(29)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {x_1^4 =x_{1}^2 } \\ {y_1^4 =y_1^2 } \\ {z_1^4 =r-r_0 } \\ \end{array} }} \right. \end{aligned}$$
(30)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {x_2^4 \left( t \right) =x_1^4 -\left( {r_1 +r_{03} } \right) \cos \left( {\tau \left( t \right) +\frac{1}{2}\beta _4 \left( t \right) } \right) } \\ {y_2^4 \left( t \right) =y_1^4 +\left( {r_1 +r_{03} } \right) \sin \left( {\tau \left( t \right) +\frac{1}{2}\beta _4 \left( t \right) } \right) } \\ {z_2^4 =r-r_0 } \\ \end{array} }} \right. \end{aligned}$$
(31)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {x_3^4 =x_3^1 } \\ {y_3^4 =y_3^1 } \\ {z_3^4 =r-r_0 } \\ \end{array} }} \right. \end{aligned}$$
(32)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {x_4^4 =x_1^4 -\left( {r_4 +r_{03} } \right) \cos \frac{\alpha _4 \left( t \right) }{2}\cos \tau \left( t \right) } \\ {y_4^4 =y_1^4 +\left( {r_4 +r_{03} } \right) \cos \frac{\alpha _4 \left( t \right) }{2}\sin \tau \left( t \right) } \\ {z_4^4 =r-r_0 } \\ \end{array} }} \right. \end{aligned}$$
(33)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {x_5^4 =x_4^4 -\left( {r_4 +r_{05} } \right) \cos \tau \left( t \right) } \\ {y_5^4 =y_4^4 +\left( {r_4 +r_{05} } \right) \sin \tau \left( t \right) } \\ {z_5^4 =r-r_0 } \\ \end{array} }} \right. \end{aligned}$$
(34)
  • STEP E– Cell 1 deflates.

Fig. 10
figure 10

Cell 1 deflating process

In Fig. 10, after Cell 1 finishes deflating, Cell 1 and its friction foot \(k_{1}\) stick with the ground, the centers of the five cells are at the same plane \(\varGamma \)’, and the intersection angle between the plane \(\varGamma \) ’ and the XOY plane is \(\theta _{5}\). \(\beta _{5}\) is back to the original state, \(\beta _{5}=90^{\circ }\). The coordinates of Cell 4’s center and Cell 5’s center are as follows.

$$\begin{aligned}&{\theta _5}\left( t \right) = arcsin\frac{{{r_4} - {r_1}\left( t \right) }}{{\left( {{r_4} + {r_{03}}} \right) cos\frac{{{\alpha _5}}}{2} + \left( {{r_{03}} + {r_1}\left( t \right) } \right) cos\frac{{{\beta _5}\left( t \right) }}{2}}} \end{aligned}$$
(35)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {{\beta _5}\left( \hbox {t} \right) = 2arc\sin \left( {\frac{{\sqrt{2} {r_1}\left( t \right) }}{{r + {r_1}\left( t \right) }}} \right) } \\ {{\alpha _5} = 2arcsin\frac{{\sqrt{2} {r_{03}}}}{{\left( {{r_4} + {r_{03}}} \right) }}~~~~~~~~~} \\ \end{array} }} \right. \end{aligned}$$
(36)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {x_1^5 =x_1^2 } \\ {y_1^5 =y_1^2 } \\ {z_1^5 \left( t \right) =r_1 \left( t \right) -r_0 } \\ \end{array} }} \right. \end{aligned}$$
(37)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {x_4^5 \left( t \right) =x_1^5 -\sqrt{2}r_{03} \left( {cot\frac{\alpha _5 }{2}+cot\frac{\beta _5 \left( t \right) }{2}} \right) cos\theta _5 \left( t \right) cos\tau } \\ {y_4^5 \left( t \right) =y_1^5 +\sqrt{2}r_{03} \left( {cot\frac{\alpha _5 }{2}+cot\frac{\beta _5 \left( t \right) }{2}} \right) cos\theta _5 \left( \hbox {t }\right) \sin \tau } \\ {z_4^5 =r-r_0 } \\ \end{array} }} \right. \end{aligned}$$
(38)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {x_5^5 \left( t \right) =x_4^5 -\left( {r_4 +r_{05} } \right) cos\theta _5 \left( t \right) cos\tau } \\ {y_5^5 \left( t \right) =y_4^5 +\left( {r_4 +r_{05} } \right) cos\theta _5 \left( \hbox {t} \right) \sin \tau } \\ {z_5^5 \left( \hbox {t} \right) =\left[ {r_4 +r_{05} +\sqrt{2}r_{03} \left( {cot\frac{\alpha _5 \left( t \right) }{2}+cot\frac{\beta _5 \left( t \right) }{2}} \right) } \right] sin\theta _5 \left( t \right) } \\ \end{array} }} \right. \end{aligned}$$
(39)
  • STEP F—Cell 4 deflates.

Fig. 11
figure 11

Cell 4 deflating process

In Fig. 11, after Cell 4 finishes deflating, a period of the turning process is finished and five cells are back to the original state. The coordinates are as follows.

$$\begin{aligned}&\theta _6 \left( t \right) =arcsin\frac{r_4 \left( t \right) -r_{01} }{\left( {r_4 \left( t \right) +r_{03} } \right) cos\frac{\alpha _6 \left( t \right) }{2}+\left( {r_{03} +r_{01} } \right) cos\frac{\beta _6 }{2}}\nonumber \\ \end{aligned}$$
(40)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {\alpha _6 \left( \hbox {t} \right) =2arc\sin \left( {\frac{\sqrt{2}r_4 \left( t \right) }{r+r_4 \left( t \right) }} \right) } \\ {\beta _6 =2arcsin\frac{\sqrt{2}r_{03} }{\left( {r_{01} +r_{03} } \right) }} \\ \end{array} }} \right. \end{aligned}$$
(41)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {x_1^6 =x_1^2 } \\ {y_1^6 =y_1^2 } \\ {z_1^6 =0} \\ \end{array} }} \right. \end{aligned}$$
(42)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} {x_4^6 =x_1^6 -\left[ {\frac{\sqrt{2}}{2}\left( {r_{01} +r_{02} } \right) +\left( {r_4 \left( t \right) +r_{02} } \right) \cos \alpha _6 \left( t \right) } \right] \cos \tau } \\ {y_4^6 =y_1^6 +\left[ {\frac{\sqrt{2}}{2}\left( {r_{01} +r_{02} } \right) +\left( {r_4 \left( t \right) +r_{02} } \right) \cos \alpha _6 \left( t \right) } \right] \sin \tau } \\ {z_4^6 =r_4 \left( t \right) -r_0 } \\ \end{array} }} \right. \nonumber \\ \end{aligned}$$
(43)
$$\begin{aligned}&\quad \left\{ {{\begin{array}{l} x_{5}^{6} =x_{1}^{6} -\left[ \frac{\sqrt{2}}{2}(r_{01}+r_{02}) +(r_{4}(t)+r_{02})\right. \\ \qquad \qquad \left. \cos \alpha _{6}(t)+r_{05} +r_{4}(t)\right] \cos \tau \\ y_{5}^{6}=y_{1}^{6}+\left[ \frac{\sqrt{2}}{{2}}(r_{01} +r_{02})+(r_{4}(t)+r_{02})\right. \\ \qquad \qquad \left. \cos \alpha _{6} (t) +r_{05}+r_{4}(t) \right] \sin \tau \\ z_{5}^{6}=r_{4}(t) -r_{0}\\ \end{array} }} \right. \end{aligned}$$
(44)

In one period, we obtain the deflection angle of the soft robot \(\tau \approx 26^{\circ }\). Iterating the above six steps, the soft robot can finish the turning motion.

Fig. 12
figure 12

a Coordinates of Cell 1 at one cycle (six steps). b The velocity of Cell 1 at one cycle

In Fig. 12, using Cell 1 as the research object, we can obtain the coordinates \((x_{1}\), \(y_{1}\), \(z_{1})\) and velocities of Cell 1’s center. At each step, the inflating time is 5 s, the deflating time is 6 s.

The velocity \((v_{r})\) of Cell 1’s center at each step can be described as

$$\begin{aligned} v_{r}=\sqrt{v_{x}^{2} +v_{y}^{2} +v_{z}^{2}} \end{aligned}$$
(45)

4 Simulation and experiment

The soft robot consists of five deformable spherical cells and two friction feet (Fig. 13). The different inflating and deflating sequences of five cells and two friction feet sticking with the ground make the soft robot perform a turning motion and avoid obstacles.

Fig. 13
figure 13

Simulation and experiment of making a turning motion (a) The soft robot works according to STEP A. b The soft robot works according to STEP B. c The soft robot works according to STEP C. d The soft robot works according to STEP D. e The soft robot works according to STEP E. f The soft robot works according to STEP F

We use PYTHON language to finish the simulation. In the simulation and experiment, the soft body would inflate and deflate with the above six steps, and the turning direction is in clockwise direction. In Fig. 13a, the soft robot moves according to STEP A. Cell 2 and Cell 3 inflate and then Cell 3 deflates. Thus, Cell 1 gets a deflection angle. After that, Cell 1 inflates. The friction foot \(k_{1}\) sticks with the ground. The soft robot works according to STEP B (Fig. 13b). Then, Cell 4 inflates. Because of the increase in Cell 4’ radius, Cell 5 and the friction foot \({k}_{2}\) are raised (Fig. 13 c). STEP C is finished. In Fig. 13d, the soft robot turns according to STEP D. Cell 2 deflates. Cell 5 and Cell 4 have a deflection. Thus, the whole robot has a deflection. After that, in STEP E, Cell 1 deflates (Fig. 13e). In the last STEP F, Cell 4 deflates (Fig. 13f). The five cells are back to the original state. A period of the turning process is finished. By these special processes, the soft robot makes a turning motion about \(20{^{\circ }}\). Then, the robot continues working according to STEP A. Table 1 shows the deflection angle \(\tau \) of the soft robot at each step in the simulation and the experiment. The total time in one period is 33 s. The efficiency of the soft robot turning motion is 76.9%. The error comes from the friction of Cell 2, Cell 3 and Cell 4, which is ignored in the theoretical model.

Table 1 Deflection angle \(\tau \) of soft robot

5 Conclusions

The soft robot consists of several deformable spherical cells and friction feet. According to the deflating action and the inflating action of the cells, and each friction foot sticking with the ground, the soft robot can change the size and the shape to move forwards, make a turning motion and avoid obstacles. The nonlinear relation between the pressure P and the inflation radius \(\left( r \right) \) at different original radii \(\left( {r_0 } \right) \) is analyzed, and the inflation and deflation velocity \(v_{r}\) is obtained. In a period, six inflating and deflating steps to finish the turning motion are presented. Based on the geometric relationship between the inflation radius (r) and the original diameters \((r_{0})\) of each cell, the nonlinear turning process is described to control the positions’ change of the spherical cells. Last, a simulation and an experiment are shown to emulate the turning process of the soft robot and perform the soft robot to turn and avoid the obstacle. Experiment results show that the robot has a maximum turning capability of 20 degrees in one period with the efficiency of 76.9%. The error comes from the friction of Cell 2, Cell 3 and Cell 4, which is ignored in the theoretical model. In order to reduce the frictional effect of Cell 2, Cell 3 and Cell 4 and increase the efficiency, the future work will focus on the smoothness and lightness of the spherical cells’ material and the improvement of the friction force on friction feet.