+ All Categories
Home > Documents > Design, development and control of a hopping machine – an...

Design, development and control of a hopping machine – an...

Date post: 07-Jun-2020
Category:
Upload: others
View: 2 times
Download: 0 times
Share this document with a friend
13
Applied Bionics and Biomechanics Vol. 7, No. 1, March 2010, 83–94 Design, development and control of a hopping machine – an exercise in biomechatronics Kuldip Naik a , Mehran Mehrandezh band John Barden c a iQmetrix, Regina, SK, Canada; b Faculty of Engineering, University of Regina, Canada; c Faculty of Kinesiology and Health Studies, University of Regina, Canada (Received 14 November 2008; final version received 2 September 2009) Hopping is a complicated dynamic behaviour in the animal kingdom. Development of a hopping machine that can mimic the biomechanics of jumping in Homo sapiens is envisioned. In this context, the design, development and control of a cost-effective, pneumatically actuated, one-legged hopping machine were initiated at the University of Regina in 2005. The pneumatic actuator has a simple design that employs an off-the-shelf on/off control valve which regulates the air pressure supplied to the hopper’s body using a pulse width modulated (PWM) signal. The objective is to maintain a constant jumping height in the hopper after going through a finite number of hopping cycles. The mechanistic model of the system was investigated in full detail. This model facilitates: (1) the design of the actuating system, and (2) the synthesis and verification of different control strategies in a simulation environment prior to implementation in the real world. The movement of the hopper is supported by a vertical slide; therefore, the hopper can only jump in place. However, the proposed control strategy and the propulsion unit can be further utilised for stable hopping in a 3-D environment. A model-free Neuro-PD controller was then designed, trained and implemented on a real system. Simulation and experimentation showed promising results. This system can be used as an educational tool for teaching real-time control of hybrid and non-linear systems. It can be also used as a biomechatronics test bed to simulate the effect of different timings in firing action potentials in jump-causing leg muscles on achieving a desired jumping height in the animal kingdom. Keywords: hopping robots; biomechatronics; real-time control; artificial neural networks; mathematical modelling of dy- namical systems; hybrid control systems 1. Introduction Research into legged robots began about two decades ago. However, it has been vastly revisited in the new millen- nium due to the recent interest in the development of rovers suitable for exploration of rough extraterrestrial terrains. Research in legged robots also has the potential to lead to development of machines which will be useful in fields of transportation, forestry, agriculture, fire fighting, defense (carrying weapons, de-mining), urban policing, assistive devices for walking, entertainment, service robotics and biomechanics. The proposed platform can serve as a test bed to examine different hopping strategies adopted in the animal kingdom. For instance, the effect of the different timings in firing the action potentials in leg muscles for high-jumping animals and for humans can be compared and evaluated within a lab environment using this platform by simply changing the timing of the pressurisation and depressurisation of the pneumatic valve. Hopping machines were extensively studied by Raib- ert in the 1980s. Most of these robots used a telescopic leg with an internal air spring as compliance in series with a hy- draulic thrust actuator (Raibert 1984). Papantoniou (1991) also proposed an electromechanical design of a one-legged Corresponding author. Email: [email protected] planar hopping robot. Their robotic leg was constructed of a four-bar linkage with a tension spring. Buehler (2002) employed electric actuators for a one-legged planar hop- per which relied on passive dynamics of the system and radially compliant leg designs. Sato and Buehler (2004) presented control of a 2-DOF hopping robot with a sin- gle actuator based on the spring loaded inverted pendulum (SLIP) model with the help of a PD controller. The leg angle was controlled with the help of torque applied by a motor connected at the hip joint. Lebaudy, Prosser and Kam (1993) designed a vertically constrained, electrically actu- ated hopping machine with a telescopic leg. They presented three different control algorithms in which the near-inverse controller with integral error feedback demonstrated the best tracking performance in the presence of abrupt mass changes. Sznair and Damborg (1989) used an adaptive con- trol algorithm based on online numerical minimisation of the performance criterion to control both vertical and hor- izontal motion in a 2-D hopping robot. Prosser and Kam (1992) suggested a control algorithm to regulate the jump- ing height of an electrically actuated hopper with a linear elastic element (spring) in the leg, based on offline synthesis of a near-inverse model for the plant achieved by numerical ISSN: 1176-2322 print / 1754-2103 online Copyright C 2010 Taylor & Francis DOI: 10.1080/11762320903239454 http://www.informaworld.com
Transcript
Page 1: Design, development and control of a hopping machine – an ...downloads.hindawi.com/journals/abb/2010/746921.pdfDesign, development and control of a hopping machine – an exercise

Applied Bionics and BiomechanicsVol. 7, No. 1, March 2010, 83–94

Design, development and control of a hopping machine – an exercise in biomechatronics

Kuldip Naika, Mehran Mehrandezhb∗ and John Bardenc

a iQmetrix, Regina, SK, Canada; bFaculty of Engineering, University of Regina, Canada; cFaculty of Kinesiology and Health Studies,University of Regina, Canada

(Received 14 November 2008; final version received 2 September 2009)

Hopping is a complicated dynamic behaviour in the animal kingdom. Development of a hopping machine that can mimicthe biomechanics of jumping in Homo sapiens is envisioned. In this context, the design, development and control of acost-effective, pneumatically actuated, one-legged hopping machine were initiated at the University of Regina in 2005. Thepneumatic actuator has a simple design that employs an off-the-shelf on/off control valve which regulates the air pressuresupplied to the hopper’s body using a pulse width modulated (PWM) signal. The objective is to maintain a constant jumpingheight in the hopper after going through a finite number of hopping cycles. The mechanistic model of the system wasinvestigated in full detail. This model facilitates: (1) the design of the actuating system, and (2) the synthesis and verificationof different control strategies in a simulation environment prior to implementation in the real world. The movement of thehopper is supported by a vertical slide; therefore, the hopper can only jump in place. However, the proposed control strategyand the propulsion unit can be further utilised for stable hopping in a 3-D environment. A model-free Neuro-PD controllerwas then designed, trained and implemented on a real system. Simulation and experimentation showed promising results.This system can be used as an educational tool for teaching real-time control of hybrid and non-linear systems. It can be alsoused as a biomechatronics test bed to simulate the effect of different timings in firing action potentials in jump-causing legmuscles on achieving a desired jumping height in the animal kingdom.

Keywords: hopping robots; biomechatronics; real-time control; artificial neural networks; mathematical modelling of dy-namical systems; hybrid control systems

1. Introduction

Research into legged robots began about two decades ago.However, it has been vastly revisited in the new millen-nium due to the recent interest in the development of roverssuitable for exploration of rough extraterrestrial terrains.Research in legged robots also has the potential to lead todevelopment of machines which will be useful in fields oftransportation, forestry, agriculture, fire fighting, defense(carrying weapons, de-mining), urban policing, assistivedevices for walking, entertainment, service robotics andbiomechanics. The proposed platform can serve as a testbed to examine different hopping strategies adopted in theanimal kingdom. For instance, the effect of the differenttimings in firing the action potentials in leg muscles forhigh-jumping animals and for humans can be comparedand evaluated within a lab environment using this platformby simply changing the timing of the pressurisation anddepressurisation of the pneumatic valve.

Hopping machines were extensively studied by Raib-ert in the 1980s. Most of these robots used a telescopic legwith an internal air spring as compliance in series with a hy-draulic thrust actuator (Raibert 1984). Papantoniou (1991)also proposed an electromechanical design of a one-legged

∗Corresponding author. Email: [email protected]

planar hopping robot. Their robotic leg was constructed ofa four-bar linkage with a tension spring. Buehler (2002)employed electric actuators for a one-legged planar hop-per which relied on passive dynamics of the system andradially compliant leg designs. Sato and Buehler (2004)presented control of a 2-DOF hopping robot with a sin-gle actuator based on the spring loaded inverted pendulum(SLIP) model with the help of a PD controller. The legangle was controlled with the help of torque applied by amotor connected at the hip joint. Lebaudy, Prosser and Kam(1993) designed a vertically constrained, electrically actu-ated hopping machine with a telescopic leg. They presentedthree different control algorithms in which the near-inversecontroller with integral error feedback demonstrated thebest tracking performance in the presence of abrupt masschanges. Sznair and Damborg (1989) used an adaptive con-trol algorithm based on online numerical minimisation ofthe performance criterion to control both vertical and hor-izontal motion in a 2-D hopping robot. Prosser and Kam(1992) suggested a control algorithm to regulate the jump-ing height of an electrically actuated hopper with a linearelastic element (spring) in the leg, based on offline synthesisof a near-inverse model for the plant achieved by numerical

ISSN: 1176-2322 print / 1754-2103 onlineCopyright C© 2010 Taylor & FrancisDOI: 10.1080/11762320903239454http://www.informaworld.com

Page 2: Design, development and control of a hopping machine – an ...downloads.hindawi.com/journals/abb/2010/746921.pdfDesign, development and control of a hopping machine – an exercise

84 K. Naik et al.

simulation of the system dynamics. Mehrandezh et al.(1995) proposed a method to control the jumping heightof an electrically actuated one-legged hopping robot. Theminimum number of hops a robot would need to executebefore reaching a desired jumping height was estimated. Toeliminate sensitivity due to perturbation of the system pa-rameters, a modified PI controller was implemented whichregulated the jumping height of the robot. For further infor-mation, a detailed review of research pertaining to hoppingrobots has been presented by Sayyad et al. (2007).

Like most other research (Helferty et al. 1989; Sznairand Damborg 1989; Mehrandezh et al. 1995), our proto-type’s motion was limited to a single plane. However, themechanics of this system were simpler than the mechanicsof its counterparts. The pneumatic actuator is controlled inreal-time by an on/off valve via a PWM signal. An infrared (IR) and a linear optical encoder were used to measurejumping height and the stroke of the single-acting cylinderused in the hopper, respectively. An important aspect of thehopping robot is that the natural dynamics of the plant areresponsible for producing the hopping motion. Even withno actuation, the prototype can still bounce several timeswhen dropped on the ground before settling down. Thisone-legged hopping robot embodies a minimalist designapproach that emphasises the design of mechanical oscilla-tors with motions that will accomplish a task, which leadsto simplicity and energy efficiency. The slim geometry ofone-legged robots makes them useful to move in narrowpassages and/or confined spaces. Our hopper is 50 cm tallwhen at rest and 65 cm tall when its pneumatic cylinder(i.e. body) is fully stretched.

Figure 1 shows the pneumatically actuated one-leggedhopping robot built at the University of Regina. The contin-uous pressurisation (i.e. the phase through which the air isallowed to flow from the air compressor to the air cylinderused as the body of the hopper) and depressurisation (i.e.the phase through which air from the air cylinder is allowedto exhaust to the atmosphere) phases enable the hoppingrobot to jump continuously. The reference variable is themaximum jumping height to be achieved and maintained

Figure 1. The experimental pneumatically actuated hoppingrobot.

by the robot after going through a finite number of hops.The control signal (e.g. the actuator’s stroke at which thepressurisation starts) is computed at the start of every hopand is then utilised in the next hopping cycle.

The salient contributions of this paper are: (1) design ofa simple one-legged hopping machine, (2) development ofa comprehensive mechanistic model of the hopper that canbe utilised for optimising the mechanical design, controllerand the sensor pack, (3) building a cost-effective hoppingmachine using off-the-shelf on-off pneumatic valves, (4)building an educational platform that can be employed tostudy the effect of different jumping actions adopted in theanimal kingdom in a lab environment and (5) devising acontrol strategy that can bring the robot to its desired jump-ing height in the shortest time. This is especially importantin applications where maintaining balance quickly in near-fall scenarios is desirable. A practical example could be aclimb up a staircase with narrow steps.

This article describes the hopping robot as follows: Theproblem statement is given in Section 2; Section 3 describesthe mechanistic model of the hopping robot used in the sim-ulation; open- and closed-loop control of the robot using itsmechanistic model through computer simulations are ex-plained in Section 4; the experimental setup and the controlof the real prototype are investigated in Sections 5 and 6,respectively; the experimental results are given in Section7 and conclusions and future work are given in Section 8.

2. Problem statement

The objective of this research was to develop a hardware-in-the-loop (HIL) real-time controller to regulate the jumpingheight of a one-legged hopping robot whose motion wassupported by a vertical stand. A second objective was tohave the controller achieve the desired jumping height inthe shortest possible time and to maintain this height byadjusting the air pressure inside the pneumatic cylinder,which acts as the body of the hopping robot, at each hoppingcycle.

The control of the hopping robot represents a nonlinearand hybrid problem.1 The presence of friction between thebody and the leg, delay (or deadband) in the pneumaticactuation systems and the dynamic impact between the bodyand the leg and the leg and the ground, make it a challengingcontrol problem. The goal was to demonstrate the capabilityof a real-time controller to regulate the jumping height of thehopper based on user-defined set points in the presence ofthe aforementioned disturbances and uncertainties. Amongall available forms of actuators, pneumatic actuators wereselected because they offer a higher power to mass ratiothan their counterparts at a lower cost.

1In general, hybrid structures can be found in control algorithmsas well as in the description of the physical behaviour of processes.A hopping machine has a hybrid structure in both the control andprocess domains.

Page 3: Design, development and control of a hopping machine – an ...downloads.hindawi.com/journals/abb/2010/746921.pdfDesign, development and control of a hopping machine – an exercise

Applied Bionics and Biomechanics 85

3. Mechanistic model of the robot

A comprehensive mechanistic model of our hopper was de-veloped. This model was then used to (1) size the pneumaticactuator, (2) to synthesise different control strategies in asimulation environment and (3) to do a qualitative sensitiv-ity analysis offline in a simulation environment to select themost appropriate on-board sensors for feedback purposes,prior to implementation in the real world. The robot had thefollowing components: a single-acting pneumatic cylinder(body), a piston that can move inside the cylinder (leg), anon-off control valve to regulate the pressure inside the cylin-der and a pressure supply (i.e. an air compressor) which wasconnected to the pneumatic cylinder (body) of the hoppervia the on/off control valve operated by a pulse width mod-ulated (PWM) signal. The body of the hopper acted as anactuator as well as a passive spring (when the valve wasclosed) in the system. It should be noted that by controllingthe duty cycle of the PWM signal supplied to the on/offvalve, the pressure inside the body of the hopper could becontrolled. An on/off valve was used, as opposed to a pro-portional solenoid valve, because of its simple constructionand cost effectiveness without compromising the overallperformance of the system. Figure 2 shows all parameters

used in the development of the mechanistic model for thehopping robot.

The kinematics equations relating the stroke in thesingle-acting pneumatic cylinder, x, to the movement ofthe body and leg COGs, namely y1, and y2, are:

x = C + (y2 − y1) (1a)

y1 = y0 + LL

2. (1b)

In Equation (1a), C is a constant. In the case that thecentroid of the hopper’s leg and body are located at theirmedians, then one can write: C = (Lb – LL)/2.

The dynamics equation governing the motion of thehopper’s leg is as follows:

−M1g − F + FG + FM2 − FM1 − Ff − β x = M1 y1,

(2)

where F denotes the force acting on the top area of theleg due to the resultant differential pressure (i.e. the dif-ference between the air pressure in the body, P, and theatmospheric pressure, Pa , (i.e. F = A (P – Pa) ) and β x

and Ff are the resistive forces generated by the viscous and

Figure 2. Internal structure of the hopping robot.

Page 4: Design, development and control of a hopping machine – an ...downloads.hindawi.com/journals/abb/2010/746921.pdfDesign, development and control of a hopping machine – an exercise

86 K. Naik et al.

coulomb frictions, respectively. FM1 and FM2 are the forcesgenerated due to the mechanical impacts between the up-per/lower end of the body and the leg, respectively. M1andg in Equation (2) denote the leg’s mass and the gravitationalacceleration, respectively. FG is the force exerted on the legby the ground. This force was modelled as a spring/dampersystem as follows:

FG ={

−KGy0 − BGy0

0

if y0 < 0

otherwise. (3)

The friction force, Ff is calculated as:

Ff ={

Fsf

Fdf sign(x)if x = 0if x �= 0

, (4)

where Fsf and Fdf in Equation (4) denote the static anddynamic dry frictions, respectively. The impact forces FM1

and FM2 in Equation (2) are calculated as:

FM1 ={ −Kxx − Cxx (x ≤ 0)

0 otherwise

FM2 ={

Kx(x − Lb + h) + Cxx (x > Lb − h)0 otherwise

(5)

The rate of change of pressure P through the pressurisa-tion and depressurisation phases were modelled as follows(Richer and Hurmuzulu 2000):

Pin = P

Vc

[KinAvmp − xαA]

Pout = − P

Vc

[KoutAvmdp + xαA ]. (6)

In Equation (6), Vc denotes the active volume (or the ex-panding volume) of the hopper’s cylinder. It can be calcu-lated as follows:

Vc = Ax. (7)

Kin and Kout in Equation (6) represent the combinedeffect of the supply pressure, Ps , the heat transfer coefficientfor air, α, the valve discharge coefficient, ϕ, and the absoluteair temperature, T . They can be calculated as follows:

Kin = Cf RαinϕinPs

√T Kout = Cf Rαexϕex

√T .

(8)

In Equation (8), α,αin,αex denote the heat transfer coeffi-cients for air at three stages, namely the air residing insidethe cylinder, the inflow and the air exhausted to the at-mosphere, respectively. Given that the pressurisation anddepressurisation processes are carried out very quickly,it can be assumed that these coefficients remain constantthroughout the entire process. The in/out flow attenuation

components, namely ϕin and ϕex given in Equation (8), canbe also calculated as:

ϕin = exp

(−Rt RTLt

2PsC

)ϕex = exp

(−RtRTLt

2PC

),

(9)

where Rt is the air hose’s resistance to the flow of air (whichvaries according to the nature of the flow), Lt is the hoselength, and C denotes the velocity of sound. Correspond-ingly, depending on the flow regime, the hose’s resistanceto the airflow can be calculated as follows:

Rt =

⎧⎪⎨⎪⎩

32µ/D2 For laminar flow

0.158 µRe

3

4D2

For turbulent flow, (10)

In Equation (10), represents the dynamic viscosity of theair, D denotes the internal diameter of the air hose andRe is the Reynolds number calculated for the inflow. Themass flow rates given in Equation (6), namely mp and mdp,represent the mass flow rate of air through the valve duringthe pressurisation and depressurisation phases, respectively,where:

mp={

C1

C2(P/Ps)1k

√1 − (P/Ps)

k−1k

if P/Ps ≤ Pcr

if P/Ps > Pcr,

(11)

mdp=⎧⎨⎩

C1

C2 (Pa/P )1k

√1 − (Pa/P )

k−1k

if Pa/P ≤ Pcr

if Pa/P > Pcr

.

(12)

In Equations (11) and (12), k represents the specific heatratio for air; Pcr , C1 and C2 are constants calculated asfollows:

Pcr = (2/(k − 1))((k−1)/k),

C1 =√

(k/R)(2/(k + 1))((k+1)/(k−1)),

C2 =√

2k/(R(k + 1)) (13)

Correspondingly, the dynamics equation for the bodyof the hopper is as follows:

−M2g + F + FM1 − FM2 − Ff − βx = M2y2. (14)

The physical impact between the ground surface and thefoot (bottom of the leg) of the hopping robot was modelledas a spring with stiffness KG and a damper with dampingcoefficient BG. Also, the physical impact between the legand the body of the hopper was modelled as a spring withstiffness KX and a damper with a damping coefficient BX.

The mechanistic model of the robot enabled us to de-sign the actuation system by analysing the effect of different

Page 5: Design, development and control of a hopping machine – an ...downloads.hindawi.com/journals/abb/2010/746921.pdfDesign, development and control of a hopping machine – an exercise

Applied Bionics and Biomechanics 87

control strategies/variables on maintaining a constant jump-ing height. It was also used to size the pneumatic actuatorand the air supply unit (i.e. the pressure range required) ina simulated environment. The procedure for model-baseddesign of the controller is described in Section 4 with addi-tional details.

4. Numerical simulation

Numerical simulation of the mechanistic model enabled usto conduct a feasibility study on the possible control strate-gies required to regulate the jumping height of the hoppingrobot. It also enabled us to analyse the effects of various fac-tors such as friction, actuation time delay, dynamic impactbetween mechanical parts and mass flow attenuation due toresistance of the air hose. The components required for thefunctioning of the hopping robot were either purchased ordesigned and built in our lab. A commercial air pogo stickwas utilised as the basic framework of the system. The val-ues associated with the physical parameters used to modelthe hopping robot were chosen on the basis of the manu-facturer’s specifications. Some parameters such as the massof the leg, M1, the mass of the body, M2, and the strokeof the pneumatic cylinder, x, were directly derived fromthe actual measurements of the air pogo stick. The valveparameters such as the valve coefficient, time delay in theactuation, etc. were calculated based on the specificationsof the Norgren’s Nugget 200, 1/4" solenoid, pilot actuated,3 port, 2 way on-off control valve (Norgren 2009). Otherparameters such as those associated with the mathematicalmodel of the friction and the dynamic impact between therobot and the ground were estimated through open-looptests on the real hopper. Table 1 summarises the physicalparameters and their corresponding numerical values setin the simulation. Further details on system identificationand control design are described in Sections 4.1 and 4.2,respectively.

4.1. System identification through open-looptesting

The unspecified parameters of the mechanistic model, suchas friction, dissipation of energy due to mechanical impactsand air compressibility were identified through open looptests. In these tests, the first step was to keep the valve closedwhile hopping. Therefore, the air trapped inside the cylinderacted as a passive spring. The behaviour of the systemwas recorded in real-time and compared with the simulatedmodel offline. The hard-to-measure parameters mentionedabove were then identified (i.e. estimated) through a trial-and-error procedure by matching the real and the simulationresults. In these open-loop tests, the hopper was releasedfrom a certain height while keeping the control valve closedall the time (i.e. no pressurisation and depressurisation). Therate of change of pressure inside the hopper’s body, under

Table 1. Physical parameters and their numerical values used inthe simulation.

Parameter Symbol Value and unit

Body mass of the hopping robot M2 1.3 kgMass of the leg of the hopper M1 1 kgBody length of the hopping robot Lb 0.8 mCircular area of the body of the

hopperA 0.1963 m2

Upper area of the leg A1 0.001257 m2

Lower area of the leg A2 0.000628 m2

Length of the leg of the hopper LL 1 mSupply pressure Ps 137.895 kpaAtmospheric pressure Pa 101.325 kpaOn-off valve coefficient

(discharge/charge constant ofthe valve)

Cva 15 N1/2/m-s

Compressibility of the air Kc 2 N/m2

Non-dimensional, geometrydependent, dischargecoefficient

Cf 0.82

Spring coefficient of the springused to model the impactbetween the leg and the body

Kx 500 N/m

Damping coefficient of thedamper used to model theimpact between the leg and thebody

Cx 125 N-s/m

Spring coefficient of the springused to model the impactbetween the rubber foot andthe ground

KG 15000 N/m

Damping coefficient of thedamper used to model theimpact between the rubber footand the ground

BG 125 N-s/m

On-off valve’s port area Av 0.001269 m2

Length of the hose supplying airto the body of the hoppingrobot

Lt 3.0 m

Static friction force Fsf 21 NDynamic friction force Fdf 10 NDynamic viscosity µ 2.066 N-s/m2

Air temperature in the body ofthe robot

T 293 K

Ideal gas constant R 8.31 L-atm/K-moleDiameter of the pneumatic hose

supplying air to the body fromthe pressure supply

D 0.0032 m

Heat transfer coefficient of airduring the pressurisation phase

αin 1.4

Heat transfer coefficient for thedepressurisation phase

αex 0.9

General heat transfer coefficientof the air

α 1.2

Specific heat ratio k 1.4Velocity of sound C 340 m/s

the assumption that the air compression/expansion remainadiabatic, can be calculated as:

P = −nRT V

V 2, (15)

Page 6: Design, development and control of a hopping machine – an ...downloads.hindawi.com/journals/abb/2010/746921.pdfDesign, development and control of a hopping machine – an exercise

88 K. Naik et al.

where R is the universal gas constant, n denotes the num-ber of gas molecules in moles and T denotes the air abso-lute temperature (assumed to remain constant throughoutthe hopping). Equation (15) in conjunction with Equations(1)–(5) were then numerically simulated and the result wascompared with the real system’s response in order to esti-mate the dry and viscous friction coefficients. For furtherdetail on the system identification process please refer toNaik (2006).

4.2. Design and evaluation of a PID controller

A number of control strategies were synthesised while pres-surising/depressurising the hopper at a certain rate to: (1)size the actuator and the air supply unit and (2) devisea robust control strategy that could be implemented in thereal system. A simple PID controller was deemed adequate.Therefore, a PID controller was designed, tested and tunedin a simulation environment. The control variable was cho-sen as the duty cycle (or dc for brevity) of the PWM signalprovided to the on/off control valve. The calculated dutycycle at each hopping cycle was cropped to its limits (i.e.dcmin and dcmax) as follows:

dc =⎧⎨⎩

dcmax if dc ≥ dcmax

dc if dcmin < dc < dcmax

dcmin if dc ≤ dcmin

. (16)

The following updating law for the duty cycle ap-plied to the control valve based on a PID controller was

adopted:

dci+1 = dci + KP (Hd − Hi) + KD(Hi − Hi−1)

+KI

i∑j=1

(Hd − Hj ), (17)

where KP , KD and Ki denote the Proportional, Derivativeand Integral gains, respectively. The well-known Ziegler–Nichols step response method was employed to tune the PIDgains (Ogata 2002). In Equation (17), Hi denotes the jump-ing height at the ith hopping cycle, dci denotes the PWM’sduty cycle at the ith hopping cycle and Hd denotes thedesired jumping height. An anti-windup strategy was alsoadopted to avoid actuator saturation due to the integral term.For further details one should refer to Naik (2006). Figure 3shows the simulation results when employing this PID con-troller. It is noteworthy that despite the fact that the hop-ping motion has a cyclic nature, but the maximum jumpingheight, as can be seen in Figure 3, increases exponentially tothe desired jumping height, which is the characteristic of anunder damped second-order system. Furthermore, the smallnon-zero steady-state error in jumping height observed inFigure 3 is due to the physical impact between robot partsand that with the ground.

It can be observed that the time taken by the controllerto achieve the desired jumping height (that is, foot eleva-tion) of 0.2 meters was approximately 5 seconds and thedesired jumping height was achieved within 5 hops with anear-zero steady-state error. The number of hops requiredbefore reaching the steady state can be reduced by incor-porating an Inverse-Dynamic (ID) based approach within

Figure 3. Simulation results of the PID controller.

Page 7: Design, development and control of a hopping machine – an ...downloads.hindawi.com/journals/abb/2010/746921.pdfDesign, development and control of a hopping machine – an exercise

Applied Bionics and Biomechanics 89

the control law. An Artificial Neural-Network (ANN) wasutilised to synthesise the inverse dynamic approach sub-jected to unmodelled errors in the system. The output ofthe ANN-based ID approach was then incorporated intothe control strategy. The details of this control strategy willbe described in Section 6.

Although the suggested PID controller was capable ofcontrolling the jumping height of the hopping robot, someproblems associated with the timing of the control strat-egy were discovered during the computer simulations. Forinstance, it was realised that pressurising the cylinder atthe touchdown phase (the phase at which the leg hits theground) and depressurising it at the lift-off phase (the phaseat which the hopper loses contact with the ground) couldinduce unwanted vibrations with fast dynamics (i.e. res-onance). The cause of this resonance was the mechanicalimpact between the leg and the ground at the touchdown andalso between the leg and body at the lift-off phase. Figure 4shows this phenomenon. From this it was concluded that thetouchdown and lift-off phases might not be the most appro-priate times to pressurise/depressurise the system. Basedon this fact, another control strategy was adopted in the realsystem which will be described in Section 6.

5. Experimental setup

Our hopping robot was able to jump in place along a ver-tical support (i.e. a linear slide). The body of the hoppingrobot was fitted onto a mounting plate to provide verti-cal motion on the linear slide. The air was supplied to thehopper from a floor compressor (0-120 psi) via a 3/2-porton/off control valve adopted for regulating the pressure sup-plied to the hopper with the help of a 1/4" lightweight airhose. A 6036-PCI card from National Instruments was used

as the DAQ system (National Instruments 2008). A linearquadratic optical encoder was used to measure the stroke,x, and an IR sensor was used to measure the body’s eleva-tion, y2. A low-pass filter was designed to filter the noise inthe IR readings.

The hopping robot is considered to be a discrete con-trol system, where one cycle of motion is regarded as onesampling interval of the controller. However, the state ofthe system was updated at a much faster rate. The Real-Time Windows Target (RTWT) and Real-time Workshoptoolboxes along with Simulink from Mathworks were usedfor the real-time control of the system. A C-code for real-time operation was generated directly from Simulink viathe Open Watcom C/C++ compiler.

6. Control of the hopping robot

A Neuro-PD controller was developed for the real systemwhich outperformed a PD and/or PID controller in termsof the response time. The neural network was specificallyutilised to estimate the inverse dynamics of the system.Furthermore, to avoid resonance in the hopper’s motion, thetiming for the pressurisation was carried out based on thestroke, x, in the real system. This way unwanted vibrationin the optical encoder that could lead to faulty results wasavoided. The overall structure of the Neuro-PD controllerwith a modified timing constitution is described below.

The error input to the controller was calculated as:

Ei = Hd − Hi, (18)

where Ei denotes the error between the desired maximumjumping height, Hd , and the maximum jumping height (i.e.peak height) at the ith hop, Hi . The only control variablewas the stroke, x, at which the pressurisation occurred. In

Figure 4. Time variation of the body’s stroke. Mechanical impact causes vibration.

Page 8: Design, development and control of a hopping machine – an ...downloads.hindawi.com/journals/abb/2010/746921.pdfDesign, development and control of a hopping machine – an exercise

90 K. Naik et al.

this control strategy, it was assumed that the duty cycle ofthe PWM signal provided to the control valve remainedconstant during the pressurisation process. A number oftests were conducted with different air pressures supplied bythe compressor and it was verified that the control variable,x, at which pressurisation starts had a significant impact onthe jumping height achieved by the robot. A stroke-basedcontrol strategy was then developed based on the followingsteps. First, the control variable x was cropped based on itshard limits (i.e. xmin and xmax) as follows:

x =⎧⎨⎩

xmax if x > xmax

x if xmin < x < xmax

xmin if x < xmin

. (19)

Second, a PD controller with an offset term was designedas:

xi+1 = xi − KP (Hd − Hi) + KD(Hi − Hi−1 ), (20)

where, xi denotes the stroke value at which the system waspressurised in the ith hop. Controller gains, namely KP

and KD, were tuned with the help of the Ziegler–Nicholsstep response method (Ogata 2002). Figure 5 shows theexperimental results when using a stand-alone P and PDcontroller. In Figure 5 the desired jumping height of thehopper’s body (i.e. body elevation) was set at 82 centime-tres. It can be observed from Figure 5 that the hopper wasable to achieve sustainable hopping while maintaining the

user-defined maximum jumping height for the time span of20 seconds. Lesser overshoots can be observed in Figure5 when the PD controller was used. The number of jumpsrequired to settle to the desired jumping height, within acertain threshold, when employing a PD controller was 5where that for a P controller was 9 with sporadic violationsin maintaining the jumping height close to the desired atthe 13th, 16th, 25th and 26th jumps as well.

Through simulation, it was conjectured that faster re-sponses would be possible if an inverse-dynamic based ap-proach was incorporated into the controller. Subsequently,an ANN was designed to model the inverse dynamics ofthe system. Further details of this approach are provided inSection 6.1.

6.1. Neural-network-based inverse dynamics

In the present context, inverse dynamics refers to the pro-cess of predicting a control strategy (in the form of therequired actuation effort) that would bring the system froman initial state to a desired terminal state. As such, theinverse dynamics approach can be viewed as a predictivecontrol strategy. The amalgamation of a predictive and areactive feedback control strategy (e.g. a PD controller)should result in performance that exceeds that of the indi-vidual controllers. Although the predictive control strategycould have been synthesised using the mechanistic modelpresented in Section 3, due to unmodelled dynamics per-tinent to friction, physical impacts and air compressibility,

Figure 5. Comparison of the P and PD controller applied to the real hopping robot. Note that the jumping height represents the elevationof the body’s COG.

Page 9: Design, development and control of a hopping machine – an ...downloads.hindawi.com/journals/abb/2010/746921.pdfDesign, development and control of a hopping machine – an exercise

Applied Bionics and Biomechanics 91

we decided to utilise a model-free neural-network-basedapproach so that the inverse dynamics of the system couldbe modelled with higher precision using the real prototype.ANNs have a remarkable ability to learn and derive meaningfrom complicated or imprecise data which can be used toextract information and detect trends that are too complex tobe noticed by either humans or other computer techniques.In general, artificial neural networks are incorporated intoa control strategy as follows: A neural network model ofa nonlinear system is derived and trained (online and/oroffline) to predict future plant performance. The controllerthen calculates the control input on fly that will optimiseplant performance over a specified future time horizon (inour case this horizon is defined by the number of jumpsrequired to reach the desired jumping height). Figures 6aand 6b show the block diagram of the proposed ANN-basedcontrol strategy.

Neural networks have been applied to the identificationand control of linear and non-linear dynamic systems. Forexample, Werbos (1991) specified a direct inverse controlmethod, in which the ANN learns the inverse dynamics ofthe system, so that it can command the system to followa user specified trajectory. Helferty et al. (1989) demon-strated a neuron-like learning/control system, applied to a1-DOF, one-legged electrically actuated hopping robot with

a springy leg whose desired motion was characterised by pe-riodicity in the state space variables. The difference betweenour research and the work done by Helferty et al. is that theyapplied the neuromorphic controller to the mathematicalmodel of an electrically actuated hopping robot, whereaswe applied the ANN-based controller to the real hopper. Inour control strategy, a 3-state vector, s, is defined as:

s = [xxy2]T , (21)

where the optimal value of the stroke, x, to bring the robotto its desired jumping height is estimated through a trainedneural network based on the state vector s given in Equa-tion (21). It is noteworthy that the sequential effect of thepressurisation and depressurisation phases in training theANN-based inverse dynamic approach was kept at min-imum by tuning the timing of these phases. In fact, thetiming of pressurisation and depressurisation were tunedoffline in a way that it would guarantee no change in inter-nal states of the hopping machine going from one jumpingcycle to another. In other words, it was assured that when-ever the robot reaches its peak during its flying phase, theinside pressure has been already reduced to the atmosphericpressure and the pneumatic cylinder has been retracted toits full length. Therefore, there will be no residual effect

Hopping robot

Neural network Model

Learning algorithm

Control input Jumping height

Predicted jumping height

+ -

Optimisation Neural

Network Model

Hopping robot

Desired jumping height

Predicted jumping height

Jumping height

Control input

CONTROLLER

(a)

(b)

Figure 6. (a) The inverse dynamic calculation using a neural network; (b) ANN-based predictive control scheme.

Page 10: Design, development and control of a hopping machine – an ...downloads.hindawi.com/journals/abb/2010/746921.pdfDesign, development and control of a hopping machine – an exercise

92 K. Naik et al.

from one cycle to another that should be accounted for ininverse dynamic calculations.

Generally speaking, in an artificial neural network, anew input to the network leads to an output similar to thecorrect output for input vectors used in training. This gen-eralised property makes it possible to train a network on arepresentative set of input/target pairs and get good resultswithout training the network on all possible input/outputpairs. The constructed ANN model was a multi-layeredFeedforward Back Propagation (FBP) network. The net-work was made of one hidden layer and an output layer.The output y in the FBP is related to the network parame-ters by the following equation:

y = f 2(LW 2,1f 1(IW 1,1p + b1) + b2), (22)

where f 2 is the function being applied on layer 2 (i.e. theoutput layer in the proposed neural network) with weightsLW2,1. IW1,1 is the input layer’s weights, b1 and b2 are thebias terms and p is the input vector. The output y representsthe jumping height of the hopper, namely y2.

To achieve the goal of controlling the jumping heightof the hopping robot, a FBP network was trained to esti-mate the optimal value of the control variable, namely thestroke x at which the system should be pressurised, basedon the user-defined desired maximum jumping height. Af-ter a certain number of trials, one ‘pure linear’ neuron forthe output layer and fifteen ‘tan sigmoid’ neurons for thehidden layer were chosen in the network’s structure. The

ANN was trained offline. The training and implementationprocesses were conducted through the following steps:

1. Training data assembly: To gather the training data,the hopper was made to jump by randomly chang-ing the control input ‘x’ at which the system waspressurised.

2. Creation of the network object: The ANN objectwas constructed with 15 ‘tan-sigmoid’ neurons inthe middle layer, and one ‘pure-linear’ neuron in theoutput layer. The number of epochs, i.e. 1750 (trials),was selected through a trial and error procedure.

3. Network training: FBP was trained with the backpropagation technique which involves executionof a series of backward iterations through thenetwork to calculate the gradient of the ANN’sperformance function. In back propagation, theLevenberg-Marquardt optimisation algorithm wasadopted for the training of the ANN instead of theQuasi-Newton and Gradient Descent, due to its bet-ter performance for moderate sized networks.

4. Subjecting the network to new testing inputs: Thetrained network was subjected to new input data viasimulation to validate the performance of the trainednetwork object.

The input/output layer weights and biases of the trainedANN object were derived and then implemented in thecontroller model built in SIMULINK in the form of anS-function.

Figure 7. Experimental results of the Neuro-PD controller.

Page 11: Design, development and control of a hopping machine – an ...downloads.hindawi.com/journals/abb/2010/746921.pdfDesign, development and control of a hopping machine – an exercise

Applied Bionics and Biomechanics 93

7. Experimental results and discussion

The PID controller adopted in simulation would makethe steady state error very small at the cost of makingthe overall time response of the system slow. Besides, ananti-windup strategy must be adopted to avoid unwantedover/undershoots. To make the system’s response fasterwithout compromising the steady state error, a PD con-troller integrated with the trained ID-based ANN (calleda Neuro-PD controller) was developed and implementedon a real system. Figure 7 shows the performance of theproposed controller when the robot was subjected to stepchanges in the desired jumping height on fly. The algo-rithm for implementing the proposed neuro-PD controlleris as follows:

Whenever a change in the user-defined set point (i.e.a change in the desired trajectory) was detected, the ID-based ANN controller calculates the control variable (i.e.the stroke at which the pressurisation phase starts) to beadopted for the next hop. This control strategy is then ap-plied within the next hopping cycle at the pressurisationphase. Consequently, the PD controller takes over in thenext hopping cycle. Figure 7 shows a representation ofmore than 20 tests that were conducted to assess the perfor-mance of the controller. The same trend was observed for alltests. It is noteworthy that an integrator with an anti-windupstrategy would be required to bring the steady-state errorto zero, especially for large changes in the user-defined de-sired jumping height. One should note that the result givenin Figure 7 depicts a representative test. However, the dif-ference in numerous runs carried out under the same initialconditions remained very incremental. Figure 7 also depictsthe robustness of the proposed control strategy in achiev-ing the control objective when the system was subjected toseven step changes in the desired jumping height on fly. Amaximum foot elevation of 20 centimetres was achieved.It can be increased by raising the pressure of air supply.This is comparable to the jumping height achieved by sim-ilar one-legged hopping machines using electromechanicalactuators with a much higher power consumption.

8. Conclusions and future work

In this paper, the development of a comprehensive mecha-nistic model of a pneumatically actuated one-legged hop-ping robot was presented. The model was utilised to scalethe pneumatic actuator and to synthesise different controlstrategies in a simulated environment prior to real imple-mentation. The procedure for system identification throughreal-time open-loop tests was briefly discussed. Two setsof control variables, namely the duty cycle of the PWMsignal applied to the on/off control valve at the touchdownphase and the stroke at which the pressurisation starts, weretested. Unwanted fast vibrations in the system’s behaviourdue to mechanical impacts were detected when utilising the

former control variable. P, PD, PID and Neuro-PD (inverse-dynamic based) control strategies were studied. The at-tributes of prediction and learning of an ANN were in-corporated into the control design. The inverse dynamicsconcept was adopted to train a feedforward back propaga-tion ANN offline. In order to increase the reliability androbustness of the controller, a well-tuned PD controller wasintegrated into the ANN, which resulted in a Neuro-PDcontroller. The main advantage of this approach was thatthe controller was able to move the robot from any jumpingheight to the desired height in a shorter time than that whichcould be achieved when using a stand-alone PD controller.This was particularly shown in a representative experimen-tal test with six step changes in the desired jumping heighton fly (see Figure 7). The performance of the proposedneuro-PD controller was found to be satisfactory in termsof the settling time and the steady state error. However, fur-ther tuning would be required to decrease the steady-stateerror in the system.

Our proposed control strategy does not address theonline learning of the ANN controller, the addition ofwhich would allow the network controller to be of anadaptive nature. The development of a next-generationhopping robot using an electromagnetic actuator alongwith a Magnetorheological-Fluid based motion damper forsmoother jumps is presently under investigation. The cur-rent system can be further used as a test bed for implement-ing modal and/or supervisory control strategies.

ReferencesBuehler M, Cocosco A, Yamazaki K, Battaglia R. 1999. Stable

open loop walking in quadruped robots with stick legs. Pro-ceedings of the IEEE International Conference on Roboticsand Automation. Detroit, MI, USA, Vol. 3. p. 2348–2353.

Helferty J, Collins J, Kam M. 1989. A learning strategy for thecontrol of a one-legged hopping machine. In Proceedings ofthe IEEE International Conference on Robotics and Automa-tion; Scottsdale, USA. p. 1604–1609.

Lebaudy A, Prosser J, Kam M. 1993. Control algorithms for avertically constrained one-legged hopping machine. In Pro-ceedings of 32nd IEEE Conference on Decision and Control.Vol. 3; San Antonio, TX, USA, 15–17 December 1993, p.2688–2693.

Mehrandezh M, Surgenor BW, Dean SRH. 1995. Jumping heightcontrol of an electrically actuated, one-legged hopping robot:modeling and simulation. Paper presented at the Proceedingsof the 34th Conference on Decision & Control; New Orleans,LA, USA. p. 1016–1020.

Naik K. 2006. Real-time active control of a pneumatically actuatedone-legged hopping robot [M.Sc. thesis]. Canada: Faculty ofEngineering, University of Regina.

National Instruments 2008. http://sine.ni.com/nips/cds/view/p/lang/en/nid/11913 (last visited July 2008).

Norgren 2009. 24011 Series General Purpose Solenoid Valve.http://www.norgren.com/usa/products/Section.asp?SPID=108(last visited August 2009).

Ogata K. 2002. Modern control engineering. 4th ed. Upper SaddleRiver (NJ): Prentice Hall.

Page 12: Design, development and control of a hopping machine – an ...downloads.hindawi.com/journals/abb/2010/746921.pdfDesign, development and control of a hopping machine – an exercise

94 K. Naik et al.

Papantoniou K. 1991. Electro-mechanical design for an electri-cally powered actively balanced one leg planar robot. Pa-per presented at the Proceedings of IEEE/RSJ InternationalWorkshop on Intelligent Robots and Systems. Vol. 3; Osaka,Japan. p. 1553–1560.

Prosser J, Kam M. 1992. Vertical control for a mechanical modelof the one-legged hopping machine. Paper presented at theProceedings of IEEE 1st Conference on Control Applications;Daytona, USA. p. 136–141.

Raibert MH. 1984. Hopping in legged systems, modeling andsimulation for the two-dimensional one-legged case. IEEETrans SMC. 14(3):451–463.

Richer E, Hurmuzulu Y. 2000. A high performance pneu-matic force actuator system Part-1 Nonlinear mathemati-

cal model. ASME J Dyn Syst Meas Control. 122(3):416–425.

Sato A, Buehler M. 2004. A planar hopping robot with one actu-ator: design, simulation, and experimental results. IEEE/RSJ17th International Conference on Intelligent Robots and Sys-tems (IROS); Sendai, Japan. p. 3540–3545.

Sayyad A, Seth B, Seshu P. 2007. Single-legged hop-ping robotics research – A review. Robotica. 25(5):587–613.

Sznair M, Damborg M. 1989. An adaptive controller for a one-legged mobile robot. IEEE Trans Robot Autom. 5(2):253–259.

Werbos P. 1991. An overview of neural networks for control. IEEEContr Syst Mag. 11(1):40–41.

Page 13: Design, development and control of a hopping machine – an ...downloads.hindawi.com/journals/abb/2010/746921.pdfDesign, development and control of a hopping machine – an exercise

International Journal of

AerospaceEngineeringHindawi Publishing Corporationhttp://www.hindawi.com Volume 2010

RoboticsJournal of

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Active and Passive Electronic Components

Control Scienceand Engineering

Journal of

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

International Journal of

RotatingMachinery

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Hindawi Publishing Corporation http://www.hindawi.com

Journal ofEngineeringVolume 2014

Submit your manuscripts athttp://www.hindawi.com

VLSI Design

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Shock and Vibration

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Civil EngineeringAdvances in

Acoustics and VibrationAdvances in

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Electrical and Computer Engineering

Journal of

Advances inOptoElectronics

Hindawi Publishing Corporation http://www.hindawi.com

Volume 2014

The Scientific World JournalHindawi Publishing Corporation http://www.hindawi.com Volume 2014

SensorsJournal of

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Modelling & Simulation in EngineeringHindawi Publishing Corporation http://www.hindawi.com Volume 2014

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Chemical EngineeringInternational Journal of Antennas and

Propagation

International Journal of

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

Navigation and Observation

International Journal of

Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

DistributedSensor Networks

International Journal of


Recommended