1 Introduction

Human stability related diseases are becoming more common with the increase in the average age of the people [1, 2]. With ageing, risk of falling in daily life inevitably increases. These falls can cause various injuries like cracks and fractures in elderly people. This type of injury reduces the quality life. Furthermore, even if these injuries can be treated, some complications after surgeries can be dangerous.

Studies about postural stability are vital to gain more understanding about self-balance mechanisms of the human body. Postural stability can be defined as the ability to adjust the displacement of the body’s centre of pressure (CoP) to react to the movement of the centre of gravity (CoG). Internal and external disturbances that more dynamic than body’s reaction time can cause to fall. In order to work on postural control, various systems were created in previous studies. After studying the literature, two basic and different perspectives can be found for bipedal posture control. One of them is biologically inspired (BI) approach which can be called sensory-based approach. Humans process the data collected from vestibular system, muscle spindles (proprioceptive) and force sensors to control their balance. BI approach has been developed based on this knowledge and a multi-sensory system is used for estimation of CoG’s position and orientation values and compensation of disturbances in order to control balance [3, 4]. The other widely used viewpoint is the robotics approach which is a model-based method. Unlike the BI in this approach, a dynamic model of the body is required. In [5,6,7], model-based bipedal control systems were developed.

Morphological reconstructions are commonly used for decreasing the complexity of the dynamic model without distorting biomechanical behaviors. Since ankle joint performs the most effective task of maintaining equilibrium in sagittal plane, a simplified single inverted pendulum model (SIP) can be substituted over the exact model in lower extremity bipedal balance problems [8].

In this study, we designed and built a lower extremity system to work on the postural stability control in the sagittal plane. The main difference of the proposed system is the series elastic actuator we added to ankle joint that named as human ankle series elastic muscle-tendon actuator (HA-SEMTAS). Since elastic series actuators are similar to skeletal muscles’ structure, their use in the system resemble the response more like human [9]. HA-SEMTAS consists of a torque motor with two encoders (one of them is directly connected to the motor shaft and the other one is on the output shaft), a worm gear, a spring. Another contribution of our study is the design of Torsional flat spring. In order to change the stiffness of HA-SEMTAS, various types (thickness, materials) of these springs are manufactured.

The rest of our article was created as follows. In Sect. 2, the mathematical model of HA-SEMTAS is presented. Section 3 presents the control engineering framework, describes its main features and discusses how they are compared to those of the biological analysis. In Sect. 4 postural controller design is shown. Finally, Sect. 5 gives the main conclusions.

2 Material and methods

This section describes the details about mechanical design, mathematical model and proposed controller design of the presented HA-SEMTAS.

2.1 HA-SEMTAS mechanical design

Mechanical design of the HA-SEMTAS. The actuator components include the following.

  • Frameless torque motor

  • Worm gear

  • Torsional flat spring

  • Incremental encoders

  • Link and joint of the ankle

The torque motor model is LFTM-50, which has a high-resolution encoder. The rotary motion of the torque motor is converted to the other axis motion by a worm gear with the use of the bullring. The well of worm gear mechanism is connected to the link of ankle case and transmits the motion to the carriage where torsional flat spring is placed between them. The transmission ratio of the motor and worm gear system is 1:60. The spring constant is 63.665 Nm/rad and has a working stroke of 1 rad. The designed system is shown in Fig. 1.

Fig. 1
figure 1

Series Elastic muscle-tendon actuator system

For the adaptation of the elastic tendon actuator (Fig. 1), it is assumed that the elastic elements integrated in the tendons can be approximated as massless springs. This assumption is valid if the springs' mass is small compared to the effective mass of gearbox inertia and the motor and the effective mass of the joint and attachment. In the case of motors, this is especially true when using high reduction ratios gearboxes. The effective mass of the link is normally also higher by at least one magnitude. Figure 1 shows an overview of important parameters and variables of the series elastic muscle-tendon actuator.

2.2 Torsional flat spring

The proposed torsional flat spring (TFS) is composed of two preloaded spiral springs in opposite directions (see Fig. 2). To apply torque on the shaft through the springs, the worm of gearbox is rotated by a motor which is directly connected to the worm wheel. The torsional flat spring is rotated by a worm wheel, then is directly connected to the ankle joint and rotates the ankle link [10]. Also, an encoder is installed to measure the angle of joint. The difference between the angle of the motor and the angle of the joint is the torsion angle of the torsional flat spring.

Fig. 2
figure 2

Configuration and parameters of torsional flat Spring. The outside spring diameter, inside spring diameter, spring width, spring thickness, and torque on spring are denoted by D, d, b, t, and, \(\tau\), respectively.

The spring design procedure begins with the specifications about the TFS stiffness and maximum torque. Since the TFS has two preloaded springs in opposite directions, the stiffness of one spring is one half of the required stiffness [11]. The maximum torque of one torsional flat spring can be determined once the preloading angle is chosen, which is explained in the following section. Once the specifications on the stiffness and maximum torque of the TFS are determined (see Fig. 3), the parameters can be obtained using (Eq. 1) given the material. Since there are more parameters to be determined than the number of equations, the dimension can be selected in terms of (2) and (3) to satisfy the size specifications.

$$k = \frac{{Ebt^{3} }}{12L},\quad S = \frac{6\tau }{{bt^{2} }}$$
(1)
Fig. 3
figure 3

Torque angle characteristic of the spring depicted on Fig. 2. The 93% interval confidence is given by the gray area around the curves but can barely be noticed (the standard deviation for different curves is less than 0.17 Nm)

The torsional flat spring in HA-SEMTAS has been selected such that the TFS has a similar level of maximum torque with the ankle in the standing and has approximately 10% of the stiffness of the ankle.

$$L_{max} = \frac{{D^{2} - d^{2} }}{2.55*t}$$
(2)
$$15 < \frac{d}{t} < 25,\quad \frac{L}{t} > 1000$$
(3)

The TFS dimensions and the system parameters are given in Table 1. System has 80% of the maximum torque of the ankle [12].

Table 1 Selected TFS parameters

2.3 Modeling of HA-SEMTAS

In the research on human postural stabilization, the stiff rod inverted pendulum model consisting of point mass located at the end of the rod is often used. This model represents sufficiently human posture during slow walking and during balancing in the presence of small disturbances (Fig. 4). Postural correction is achieved by the torque produced in the ankle joint (the pivot point). Denotingby \({\tau }_{pivot}\) the torque in this joint and by \({\tau }_{in}\) the torque due to inertial and gravity forces we can write the torque balance equation \({\tau }_{pivot}-{\tau }_{in}=I{\ddot{\theta }}_{a}\). Then the torque \({\tau }_{pivot}\) is

Fig. 4
figure 4

Model representation of HA-SEMTAS (\({{\varvec{\uptheta}}}_{\mathbf{a}}\) and \({{\varvec{\uptau}}}_{\mathbf{a}}\) are the angle and torque of the ankle joint), quiet standing (a), hold (b), release (c) with consequence acceleration of the center of mass forward (d), recoil where fall is prevented and quiet posture is regained as in condition (a) [10].

$${\tau }_{pivot}={\tau }_{a}=I{\ddot{\theta }}_{a}+{\tau }_{in}$$
(4)

where \({\tau }_{in}=-{x}_{c}{F}_{z}+{z}_{c}{F}_{x}\) and:

$$F_{x} = m\ddot{x}_{c} = - ml\,sin\left( {\theta_{a} } \right)\dot{\theta }_{a}^{2} + ml\,cos\left( {\theta_{a} } \right)\ddot{\theta }_{a}$$
(5)
$$\begin{aligned} F_{z} & = m\ddot{z}_{c} + mg \\ & = - ml\,cos\left( {\theta_{a} } \right)\dot{\theta }_{a}^{2} + ml\,sin\left( {\theta_{a} } \right)\ddot{\theta }_{a} + mg \\ \end{aligned}$$
(6)

\({\theta }_{a}\) is the body pendulums sway from vertical line (Fig. 4) and I is moment of inertia, \({F}_{x}\) and \({F}_{z}\) are the components of gravity and inertia force applied to body pendulum’s point mass m, \({x}_{c}=lsin\left({\theta }_{a}\right)\), \({z}_{c}=lcos\left({\theta }_{a}\right)\) are the point mass coordinates, g is gravity acceleration (g =  − 9.81 m/s2), l is the body pendulum’s length. Following the zero moment point (ZMP) definition [13], in equilibrated posture the torque \({\tau }_{a}\) is compensated by the torque \({\tau }_{ar}\) from the reaction force (\({F}_{xr}\),\({F}_{zr}\)) are the reaction force components). Assuming that the ankle joint is on the ground level (it means h = 0 what is a common assumption), and taking into account that \({F}_{xr}=-{F}_{x}\),\({{F}_{zr}=-F}_{z}\), and \({\tau }_{a}+{\tau }_{ar}=0\), Considering (1) and (2) we obtain an expression for acceleration in the ankle joint during the free fall:

$${\ddot{\theta }}_{a}=\frac{1}{I}mgl\mathrm{sin}{(\theta }_{a})$$
(7)

Actively decreasing this acceleration by the ankle actuator prevents the body from falling. Ankle joint the required application point of the reaction force resulting in dynamic equilibrium. The elastic element acts as actuator for the reaction force in the ankle joint, because it transfers torque by the effect of elastic displacement. On the other hand, the amount of force can also be calculated from the measurement of elastic displacement, so that SEMTAS acts as a transducer at the same time. Therefore, both sections are in the control loop. The elastic element ks can be selected as a constant coefficient. It can change depending on the rigidity of the system. If the spring hysteresis is not taken into consideration, the arc length and force relation according to the Hooke rule will be as follows; stiffness profiles of TFS were identified by slowly pulling and pushing the ankle joint through an attached force sensor as the motor held the “proximal” position of the SEMTAS constant (spring stiffness: ks = 63.655 Nm/rad).

$${\tau }_{m}{+k}_{s}\left({\theta }_{a}-{\theta }_{m}\right)={J}_{m}{\ddot{\theta }}_{m}$$
(8)
$${\tau }_{ar}{=-k}_{s}\left({\theta }_{a}-{\theta }_{m}\right)$$
(9)

if \((\ddot{{\theta }_{a}}=0)\) (speed constant) let's assume and (\(\omega\) = Natural frequency)

$$\frac{{\tau_{ar} }}{{\tau_{m} }}\left( s \right) = \frac{1}{{1 + \frac{{J_{m} }}{{k_{s} }}s^{2} }},\quad \omega = \sqrt {\frac{{k_{s} }}{{J_{m} }}}$$
(10)
$${\tau }_{ar}\left(s\right)={\tau }_{m}\left(s\right)\frac{1}{1+ \frac{{J}_{m}}{{k}_{s}}{s}^{2}}-{\theta }_{a}\left(s \right)\frac{{{s}^{2}J}_{m}{k}_{s}}{1+ \frac{{J}_{m}}{{k}_{s}}{s}^{2}}$$
(11)

where \({\tau }_{m}\) and \({\tau }_{ar}\) are the torque of the motor and the ankle respectively, \({J}_{m}\) is the inertia of the motor, \({k}_{s}\) is the stiffness of the torsional flat Spring, \({\theta }_{m}\) and \({\theta }_{a}\) are the angles of the motor shaft and the ankle joint respectively, m is body pendulum’s point mass.

2.4 Controller design

The type of motor used in the system effect on the control performance of the HA-SEA. In this section, a PID torque controller [14] design for HA-SEMTAS will be explained in detail.

During balancing, the ankle torque has to cope with the whole body [15]. The corresponding ankle control model is depicted in Fig. 5.

Fig. 5
figure 5

Block diagram of the control model of HA-SEMTAS

2.5 FeedForward model

$${\tau }_{m}\left(s\right)=\left(1+ \frac{{J}_{m}}{{k}_{s}}{s}^{2}\right){\tau }_{ar}\left(s\right)+{J}_{m}{{s}^{2}\theta }_{a}\left(s\right)$$
(12)

As \({T}_{ideal}\) is fixed, its second derivative will be zero.

$${\tau }_{m}={\tau }_{ideal}+{J}_{m}{{s}^{2}\theta }_{a}$$
(13)

Recently works have been shown that force control performance and stability can be improved with series damper components [16]. In particular, the series dampers can augment force control bandwidth (when coupled with high impedance environment) and can reduce oscillations that can arise when coupled with low impedance environment.

Also, the series dampers increase Z-width. The series elastic/damping actuator model can be written as.

$${\tau }_{ar}={k}_{s}\left({\theta }_{m}-{\theta }_{a}\right)+{d}_{s}\left({\dot{\theta }}_{m}-{\dot{\theta }}_{a}\right)$$
(14)
$${{J}_{m}\ddot{\theta }=\tau }_{m}-{\tau }_{ar}$$
(15)

where \({d}_{s}\) is the equivalent series damping coefficient [17], \({\tau }_{a}\) is the torque exerted on the environment and the measured torque is still the spring torque \({\tau }_{ar}={k}_{s}\left({\theta }_{m}-{\theta }_{a}\right)\). In the Fig. 5 below is included a drawing of the proposed control scheme—it includes the feedforward terms and the PID control loop Eq. (10). According to the results we have determined the PID parameters. The block diagram of proposed The PID controller is shown in Fig. 5. As mentioned before, the PID gains are obtained by using genetic algorithm [18]. The genetic algorithm characteristics are population type = double vector, generations number = 100, scaling function = rank, selection function = stochastic uniform, mutation function = adaptive feasible, crossover function = scattered [19], and the PID parameters are P (proportional gain) = 2.73, I (integral gain) = 3.94, and D (derivative gain) = 1.34.

3 Experimental setup

In experimental setup, a torque motor with the worm gear is employed, used for rotational force and as shown in Fig. 6. The motor and load encoder sensors give information about motor angle and load angle respectively to the control unit. Figure 6 illustrates the experimental setup of the HA-SEMTAS controlled by PID controller [20] embedded in Industrial PC. Special torque motor with speed of 270 rpm and voltage of 48 V and worm gear with ratio of 1:60 are used in experimental setup. Furthermore, encoders sensor (HE40-50B) and the Driver (EC-10A) are included in the system. Encoder sensors are 2048 bit. The control block circuit includes PWM Generator card (ATMEGA128 microcontroller) which handles the main task of controlling and filtering inputs and outputs of the HA-SEMTAS and an Industrial PC Controller (GoogolThech GT-800 Series Motion Controller) (Table 2).

Fig. 6
figure 6

Experimental setup: a general view, b close look of worm gear, torsion spring and encoder, c motor angle

Table 2 System parameters

4 Results and discussions

Figure 7 illustrates position signals obtained from the experimental setup (GoogolThech GT-800 Series Motion Controller), in order to see the behavior of the controller performance. The evaluation of the controller performance is performed using IAE, ISE, and ITSE. A dynamic performance comparison of the two controllers is given in Table 3. Figure 8 shows the comparison of controller response for a step input (Table 4).

Fig. 7
figure 7

Performance of PID position control of HA-SEMTAS.

Table 3 Comparison of the controllers based on different performance index
Fig. 8
figure 8

Step input response of HA-SEMTAS for PID and PD + ff controller

Table 4 Comparison of performance results for PID and PD + ff

Step input response of the HA-SEMTAS for PID and PD + ff controller is shown in Fig. 7.

As shown in Fig. 9, the satisfied performance of torque tracking and external disturbance response ability are obtained during human standing position.

Fig. 9
figure 9

Torque disturbance: pulsed external disturbance and ankle reaction torque \(({\tau }_{ar})\), control signal, position of the motor and ankle joint and velocity of the motor and ankle joint

This reference input resembles a human ankle in a standing position.

5 Conclusions and future work

In this paper, a torsional flat spring (TFS) is proposed to provide high compliance and deformation values for Human Ankle Series Elastic muscle-tendon Actuator System (HA-SEMTAS). Also, a dynamic model and control of the HA-SEMTAS was developed under internal and external disturbances. Using this model, two different controllers (PID and PD + ff) were applied to HA-SEMTAS. The results obtained indicate that the PD + ff controller performs well for high frequency disturbances. Reference trajectories are followed with reasonable time delay. The real-time torque controller for HA-SEMTAS was embedded in the Industrial PC Controller (Motion Controller Series model: GoogolThech GT-800). The PID and PD + ff parameters in the controller with the inverse dynamic model were tuned by using the genetic algorithm. The PD + ff controller with SEA enhances the stability and control performance of the HA-SEMTAS. In future work, more in-depth investigations into the behavior of the system for slow frequency disturbances will be included which will be compared with human responses. Also, a real human movement will test in a moving Stewart platform.