a new dynamic model of a two-wheeled two-flexible-beam

9
A New Dynamic Model of a Two-Wheeled Two-Flexible-Beam Inverted Pendulum Robot Amin Mehrvarz 1 *, Mohammad Javad Khodaei 1 *, William Clark 1 , and Nader Jalili 1,2 1 Department of Mechanical and Industrial Engineering, Northeastern University, Boston, MA, U.S. 2 Professor and Head, Department of Mechanical Engineering, University of Alabama, Tuscaloosa, AL, U.S. * Co-first author Abstract—Two-wheeled inverted pendulum robots are designed for self-balancing and they have remarkable advantages. In this paper, a new configuration and consequently dynamic model of one specific robot is presented and its dynamic behavior is analyzed. In this model, two cantilever beams are on the two- wheeled base and they are excited by voltages to the attached piezoelectric actuators. The mathematical model of this system is obtained using the extended Hamilton’s Principle. The results show that the governing equations of motion are highly nonlinear and contain several coupled terms. These complex equations are solved numerically and the natural frequencies of the system are extracted. The system is then simulated in both lateral and horizontal plan movements. This paper proposes a new model of two-wheeled two-flexible-beam inverted pendulum Robot and investigates its complex dynamic; however, the derived equations will be validated experimentally and a suitable control strategy will be applied to the system to make it fully automated and more applicable in the future works. Index Terms—Two-wheeled robot, flexible system, Euler- Bernoulli beam, inverted pendulum. I. I NTRODUCTION Inverted pendulums are traditional dynamic problems. If an inverted pendulum is used in a moving cart, new type of interesting problems will appear. One of these problems is two-wheeled inverted pendulum systems. Because of their small size, great performance in quick driving, and their stability with controller, scientists and engineers are interested in them [1]. Based on this interest, each year new models are introduced and new robots are made. Self-transportation systems such as hoverboards and small two-wheeled robots are the most important patents based on the moving inverted pendulums [2]. The idea of using self-transportation systems comes from a push in the transportation industry to develop transportation systems that contribute less to pollution and cause less damage to the environment overall. One approach to this has been a shift to Personal Electric Vehicles (PEVs), which are powered by electricity rather than combustion. PEVs provide many benefits to both consumers and society, including lower costs than automobiles, shorter trip times for short distances, cleaner transportation, and mobility for the disabled [3]. One popular type of PEV that has emerged in recent years is the ”Stand-on Scooter”. In 2005, Ulrich analyzed existing stand-on scooter technology and estimated that the light design of these PEVs combined with their modest range and speed would be ”highly feasible technically, and with substantial consumer demand could be feasible economically” [3]. One type of stand-on scooter analyzed by Ulrich was the Segway, which is a type of PEV that marketed itself based on its inverted pendulum balancing mechanism and its agility. Inverted-pendulum transporter is a type of self-balancing system that allows for an operator to control it without the need for a throttle. Instead, the device applies a lateral movement to the system based on an angle applied by the operator, who acts as an inverted pendulum, in order to keep the inverted pendulum balanced and stable in the upright posi- tion. A popular inverted pendulum PEV is the ”Hoverboard”, which consists of two motorized wheels connected to two independent articulating pads. The operator controls the speed of travel by leaning forward and backward and controls the direction of travel by twisting the articulating pads with their feet. This allows for an inexpensive transportation system that is compact, as it does not require any large motor or steering apparatus, and agile, as it can be controlled easily and move quickly. Considerable work has already been done in developing a transportation device that uses this sort of self-balancing mechanism. Grasser et al. developed a scaled- down prototype of a self-balancing pendulum, but not a full- scale version that could be ridden by a person [4]. Tsai et al. [5] developed a self-balancing PEV but used handlebars for guidance rather than the articulating pads like the hoverboard. Moving inverted pendulum systems are also used in robots for different objects. For example, Solis et al. used the robot for educational purposes [6] or Double Robotics Inc made a robot for telecommuter [7]. Two steps are needed to design a proper controller for these robots. Finding a perfect model for the two-wheeled inverted pendulum is the first step and designing the best controller is the second step. It should be mentioned that the self-balancing systems like these robots create difficult control problems, as they are inherently un- stable and subject to unpredictable external forces from their environment. To solve these problems, a robust dynamic model must be developed, in order to fully understand the physical properties of the system, and also a better comprehending of how to control it to maintain stable. These robots also need one or two motors for moving which their motors models should be considered in the robots dynamic [8]. Decreasing the number of wheels which are unnecessary in most of the time and only used for the system’s balanc- ing was one of the first ideas of the two-wheeled robots arXiv:1910.01596v1 [math.DS] 3 Oct 2019

Upload: others

Post on 17-May-2022

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A New Dynamic Model of a Two-Wheeled Two-Flexible-Beam

A New Dynamic Model of a Two-WheeledTwo-Flexible-Beam Inverted Pendulum Robot

Amin Mehrvarz1*, Mohammad Javad Khodaei1*, William Clark1, and Nader Jalili1,21Department of Mechanical and Industrial Engineering, Northeastern University, Boston, MA, U.S.

2Professor and Head, Department of Mechanical Engineering, University of Alabama, Tuscaloosa, AL, U.S.* Co-first author

Abstract—Two-wheeled inverted pendulum robots are designedfor self-balancing and they have remarkable advantages. In thispaper, a new configuration and consequently dynamic modelof one specific robot is presented and its dynamic behavior isanalyzed. In this model, two cantilever beams are on the two-wheeled base and they are excited by voltages to the attachedpiezoelectric actuators. The mathematical model of this systemis obtained using the extended Hamilton’s Principle. The resultsshow that the governing equations of motion are highly nonlinearand contain several coupled terms. These complex equations aresolved numerically and the natural frequencies of the systemare extracted. The system is then simulated in both lateral andhorizontal plan movements. This paper proposes a new modelof two-wheeled two-flexible-beam inverted pendulum Robot andinvestigates its complex dynamic; however, the derived equationswill be validated experimentally and a suitable control strategywill be applied to the system to make it fully automated andmore applicable in the future works.

Index Terms—Two-wheeled robot, flexible system, Euler-Bernoulli beam, inverted pendulum.

I. INTRODUCTION

Inverted pendulums are traditional dynamic problems. Ifan inverted pendulum is used in a moving cart, new typeof interesting problems will appear. One of these problemsis two-wheeled inverted pendulum systems. Because of theirsmall size, great performance in quick driving, and theirstability with controller, scientists and engineers are interestedin them [1]. Based on this interest, each year new modelsare introduced and new robots are made. Self-transportationsystems such as hoverboards and small two-wheeled robotsare the most important patents based on the moving invertedpendulums [2].

The idea of using self-transportation systems comes froma push in the transportation industry to develop transportationsystems that contribute less to pollution and cause less damageto the environment overall. One approach to this has been ashift to Personal Electric Vehicles (PEVs), which are poweredby electricity rather than combustion. PEVs provide manybenefits to both consumers and society, including lower coststhan automobiles, shorter trip times for short distances, cleanertransportation, and mobility for the disabled [3]. One populartype of PEV that has emerged in recent years is the ”Stand-onScooter”. In 2005, Ulrich analyzed existing stand-on scootertechnology and estimated that the light design of these PEVscombined with their modest range and speed would be ”highlyfeasible technically, and with substantial consumer demand

could be feasible economically” [3]. One type of stand-onscooter analyzed by Ulrich was the Segway, which is a typeof PEV that marketed itself based on its inverted pendulumbalancing mechanism and its agility.

Inverted-pendulum transporter is a type of self-balancingsystem that allows for an operator to control it without the needfor a throttle. Instead, the device applies a lateral movementto the system based on an angle applied by the operator,who acts as an inverted pendulum, in order to keep theinverted pendulum balanced and stable in the upright posi-tion. A popular inverted pendulum PEV is the ”Hoverboard”,which consists of two motorized wheels connected to twoindependent articulating pads. The operator controls the speedof travel by leaning forward and backward and controls thedirection of travel by twisting the articulating pads with theirfeet. This allows for an inexpensive transportation systemthat is compact, as it does not require any large motor orsteering apparatus, and agile, as it can be controlled easilyand move quickly. Considerable work has already been donein developing a transportation device that uses this sort ofself-balancing mechanism. Grasser et al. developed a scaled-down prototype of a self-balancing pendulum, but not a full-scale version that could be ridden by a person [4]. Tsai et al.[5] developed a self-balancing PEV but used handlebars forguidance rather than the articulating pads like the hoverboard.

Moving inverted pendulum systems are also used in robotsfor different objects. For example, Solis et al. used the robotfor educational purposes [6] or Double Robotics Inc made arobot for telecommuter [7]. Two steps are needed to designa proper controller for these robots. Finding a perfect modelfor the two-wheeled inverted pendulum is the first step anddesigning the best controller is the second step. It should bementioned that the self-balancing systems like these robotscreate difficult control problems, as they are inherently un-stable and subject to unpredictable external forces from theirenvironment. To solve these problems, a robust dynamic modelmust be developed, in order to fully understand the physicalproperties of the system, and also a better comprehending ofhow to control it to maintain stable. These robots also need oneor two motors for moving which their motors models shouldbe considered in the robots dynamic [8].

Decreasing the number of wheels which are unnecessaryin most of the time and only used for the system’s balanc-ing was one of the first ideas of the two-wheeled robots

arX

iv:1

910.

0159

6v1

[m

ath.

DS]

3 O

ct 2

019

Page 2: A New Dynamic Model of a Two-Wheeled Two-Flexible-Beam

[9]. For this purpose, Kim et al. developed a mathemati-cal model for a self-balancing two-wheeled robot that wascapable of changing direction. This robot acted as a rigidsingle-pendulum, allowing the model to assume a lumped-parameter system and they designed a linear controller fortheir robot [9]. Other researchers tried to develop [1] ormodify the previous models [10]. They also tried to improvethe controller performance during the robots’ operation. In aresearch, Zafar et al. discussed a derived mathematical modelfor a self-balancing inverted-pendulum robot and implementthe operational space controller [11]. In other researches, newcontrollers for the two-wheeled inverted pendulum systemswere designed. These controllers can work with time-varyingparametric uncertainties [12], strong nonlinear behaviors dueto abrupt external disturbances [13], and initial errors, pulsedisturbance and random noises [14].

A new type of two-wheeled inverted pendulum robot isalso designed for specific applications. This pendulum was notrigid and it behaves as a flexible system. Partial DifferentialEquations (PDEs) are the most standard way of mathemati-cally representing continuous systems and has been used forvibrational analysis and control for different models and appli-cations [15]–[18]. Researchers work on the flexible structuresuch as beams and bars with the base motion for several yearsbut they did not consider their systems as a moving robots.They used flexible structures with moving base for differentapplications, such as micro gyroscopes and piezoresponseforce microscopy and etc. [19]–[21]. The base motion createsdifferent accelerations and complex nonlinear PDE equationsof motion for the flexible system. The first idea of usingflexible structure as an inverted pendulum in robot was createdby Nguyen et al. They studied a linearized mathematical modeland controller for a single flexible inverted pendulum, thismodel only accounted for lateral movement in one directionrather than in the two directions and it has four wheels [22]. Inanother robot Mehrvarz et al. modeled a two-wheeled flexibleinverted pendulum which can move in one direction [23]. Theyalso designed a MPC controller for their robot and showed thatthe percision of their modeling [24]. Their robot cannot movein the plane and this was their main problem.

Here, to solve the problem of two-wheeled flexible beaminverted pendulum which is used in [23], two-wheeled two-flexible beam inverted pendulum model is addressed. Thisrobot is designed to move in-plane and has not the previousproblem. Because of its complexity and non-linearity, thedynamic model and the vibrations of the system are justconsidered and analyzed in this paper and controller is notdesigned for this system right now. The proposed modelanalyzes the pure dynamics of the robot and the vibrationsof the beams at the same time, which is a novel approach.The main goal of this paper is to investigate and simulatethe dynamic model of a piezoelectrically actuated cantileverbeams on the two-wheeled robot.

The remainder of this paper is organized as follow. Thedynamic equations of the system are derived in Section IIand a brief summary of their solution is presented in Section

Fig. 1. The proposed dynamic model of the two-wheeled two-flexible-beaminverted pendulum robot.

III In Section IV the simulation results are discussed and aconclusion is given in Section V.

II. MATHEMATICAL MODELING

In this section, the governing equations of motion arederived using the extended Hamilton’s principle. In order toapply the extended Hamilton’s principle to the system, thepositions and translational and rotational velocities of theseelements are needed to be defined mathematically. As shownin Fig.1, the system has two beams and two piezoelectricactuators to excite the beams. These beams are mounted ontwo independent bases, which are attached to two wheelsand DC motors. In this model, as seen in Fig.1, two flexiblecantilever beams act as flexible inverted pendulums fixed totwo articulating bases. The mathematical model for the systemrepresents the response of the system to small disturbancesfrom piezoelectric actuators mounted to the base of eachpendulum. These actuators cause deformation and bending inthe continuous pendulums when voltage is applied to them.As seen in Fig.2, the position of the right (beam1) and left(beam2) beams in the XY Z frame are as:

Xbeam1

Ybeam1

Zbeam1

=

Xc + a sinϕ+ cosϕ (cos θ1w1 + x1 sin θ1)Yc − a cosϕ+ sinϕ (cos θ1w1 + x1 sin θ1)

rw − sin θ1w1 + x1 cos θ1

(1)Xbeam2

Ybeam2

Zbeam2

=

Xc − a sinϕ+ cosϕ (cos θ2w2 + x2 sin θ2)Yc + a cosϕ+ sinϕ (cos θ2w2 + x2 sin θ2)

rw − sin θ2w2 + x2 cos θ2

(2)

where Xc and Yc are the positions of the center of gravityof the robot and a denotes the distance between the centerof the beams and the center of gravity in the y-direction.The robot can rotate around the z-axis and the bases havedifferent rotations around the y-axis. These rotational anglesare shown by ϕ, θ1 and θ2. In (1) and (2), the parameters w1

Page 3: A New Dynamic Model of a Two-Wheeled Two-Flexible-Beam

and w2 represent the bending deflections of the beams and rwis the radius of the wheels. Since the beams are supposed tobe continuous, the position of each particle in the beams aregiven by x1 and x2. The position of the right (wheel1 andbase1) and left (wheel2 and base2) wheels and bases can beobtained as: Xwheel1

Ywheel1

Zwheel1

=

Xc + 2a sinϕYc − 2a cosϕ

rw

(3)

Xwheel2

Ywheel2

Zwheel2

=

Xc − 2a sinϕYc + 2a cosϕ

rw

(4)

Xbase1

Ybase1Zbase1

=

Xc + a sinϕYc − a cosϕ

rw

(5)

Xbase2

Ybase2Zbase2

=

Xc − a sinϕYc + a cosϕ

rw

(6)

Consequently, the translational velocity of all the elementscan be obtained by applying a time derivation operator to (1)through (6).

It is assumed that the system move without slippage in yand x directions. Hence, velocity of the center of gravity ofthe system can have the following relationship,

Yc

Xc

= − tanϕ (7)

It should be noted that the whole velocity of the beams canbe calculated through integration of the each beam’s particlesvelocity along the beam. Besides the translational motion, theelements of the robot have also some rotational movements.The rotational velocity of each element can be written as:ωx

wheel1

ωywheel1

ωzwheel1

=

0Xc cosϕ+Yc sinϕ+2aϕ

rwϕ

(8)

ωxwheel2

ωywheel2

ωzwheel2

=

0Xc cosϕ+Yc sinϕ−2aϕ

rwϕ

(9)

ωxbase1

ωybase1

ωzbase1

=

0

θ1ϕ

(10)

ωxbase2

ωybase2

ωzbase2

=

0

θ2ϕ

(11)

ωxbeam1

ωybeam1

ωzbeam1

=

ϕ cos θ1θ1 +

∂2w1

∂x∂tϕ sin θ1

(12)

ωxbeam2

ωybeam2

ωzbeam2

=

ϕ cos θ2θ2 +

∂2w2

∂x∂tϕ sin θ2

(13)

Since the system has 6 different parts, the kinetic energyof the whole system including the translational and rotationalparts can be obtained as:

T =1

2

6∑i=1

(ρiAiVi

2 + Ixiωxi2 + Iyiωyi

2 + Iziωzi2)

(14)

where Vi2 = Xi2+ Yi

2+ Zi

2. Ixi, Iyi and Izi are the mass

moments of inertia of the i-th element and are assumed to beequal for each wheel, each base, and each beam. Also, theeffect of rotary inertia terms of the beams are ignored as in[25]. The combined ρA for the system can be calculated as:

ρA =

{ρbAb + ρpAp 0 < x ≤ Lp

ρbAb Lp < x ≤ L(15)

where L and Lp are the beam and the piezoelectric lengths,ρb and ρp are the densities of the beam and piezoelectricactuators, respectively, and Ab and Ap are the cross-sectionalareas. Also, the potential energy of the beams and piezoelectricactuators can be expressed as:

U = 2ρgAL+

∫ L

0

1

2EbIb

(∂2w1

∂x12

)2

dx1

+

∫ Lp

0

1

2EpIp

(∂2w1

∂x12+ zpd31

v1 (t)

tp

)2

dx1

+

∫ L

0

1

2EbIb

(∂2w2

∂x22

)2

dx2

+

∫ Lp

0

1

2EpIp

(∂2w2

∂x22+ zpd31

v2 (t)

tp

)2

dx2

+

∫ L

0

ρgA (− sin θ1w1 + x1 cos θ1) dx1

+

∫ L

0

ρgA (− sin θ2w2 + x2 cos θ2) dx2

(16)

where Eb and Ep denote Young’s modulus of elasticity of thebeam and the piezoelectric, respectively, and Ib and Ip are themass moments of inertia of the beam and piezoelectric cross-section about y-axis, respectively. In Eq. (16), zp is the neutralaxis along the z-axis, d31 denotes the piezoelectric constantof the actuator, v1(t) and v2(t) are voltages that are appliedto the piezoelectric actuators and tp is the thickness of thepiezoelectric actuators.

The damping effects of the beams can be taken to accountas virtual work terms as follows:

δWnc =

∫ L

0

C1∂w1

∂tδw1dx1 +

∫ L

0

C2∂w2

∂tδw2dx2 (17)

Page 4: A New Dynamic Model of a Two-Wheeled Two-Flexible-Beam

Fig. 2. The robot kinematics.

Fig. 3. The DC motor circuit diagram.

where C1 and C2 are the viscous damping coefficients of thebeams. As noted, the robot is assumed to have two DC motors,which produce torques τ1 and τ2. The work of these externaltorques makes additional virtual work terms as:

δW ext =τ1 + τ2rw

( cosϕδXc + sinϕδY + ( Yc cosϕ

−Xc sinϕ ) δϕ ) + Fs ( − sinϕδXc + cosϕδYc−( Xc cosϕ+ Yc sinϕ ) δϕ )

(18)

In Eq. (18), the torques τ1 and τ2 are produced by the wheel-connected DC motors. The circuit diagram of the DC motorsis shown in Fig.3. In this figure, the parameter Ra denotes thearmature resistance and the variables Va and ia are the appliedvoltage and the motor current draw, respectively. The equationof this system can be derived by applying the Kirchhoff’svoltage Law to the circuit as:

Vaj(t) = Raiaj(t) + τBj , j = 1, 2 (19)

where τBi represents the back electromotive force (emf) andis equal to:

τBj = KBXwheelj

rw, j = 1, 2 (20)

with KB being the motor speed coefficient. Here, torques τ1and τ2 are given as:

τj = Ktiaj , j = 1, 2 (21)

where Kt is the motor torque constant and is provided by themanufacturer. Hence, the coupled equation can be obtained forthe DC motor part by substituting Eq. (20) into Eq. (19).

Vaj(t) = Raiaj(t) +KBXwheelj

rw, j = 1, 2 (22)

The extended Hamilton’s principle for this system can bewritten as: ∫ t

0

(δT − δU + δWnc + δW ext)dt = 0 (23)

After substituting Eqs. (14)-(18) to Eq. (23) and somemanipulations and simplifications, the dynamic equations ofthe system can be obtained as:(

τ1 + τ2rw

)cosϕ− sinϕFs +

2Iywheel

rw2( sin 2ϕXϕ− cos 2ϕY ϕ )− 2 (

Iywheel

rw2cos2ϕ+mw

+mbase ) X +Iywheel

rw2sin 2ϕY −

∫ L

0

ρA [ X + (a cosϕ− cos θ1 sinϕw1 − x1 sin θ1 sinϕ)

× ϕ1 + (− cosϕ sin θ1w1 + x1 cosϕ cos θ1) θ + cosϕ cos θ1∂2w1

∂t2+ ( 2 sin θ1 sinϕw1 − 2

× x1 cos θ1 sinϕ)θ1ϕ− 2 sinϕ cos θ1ϕ∂w1

∂t+ (−a sinϕ− cos θ1 cosϕw1 − x1 cosϕ sin θ1)

× ϕ2 − 2 cosϕ sin θ1θ1∂w1

∂t+ (− cos θ1 cosϕw1 − x1 cosϕ sin θ1) θ

21 ] dx1 −

∫ L

0

ρA[X−

(a cosϕ+ cos θ2 sinϕw2 + x2 sin θ2 sinϕ)ϕ− (cosϕ sin θ2w2 − x2 cosϕ cos θ2) θ2 + cosϕ

× cos θ2∂2w2

∂t2+ ( 2 sin θ2 sinϕw2 − 2x2 cos θ2 sinϕ ) θ2ϕ− 2 sinϕ cos θ2ϕ

∂w2

∂t+ (a sinϕ

− cos θ2 cosϕw2 − x2 cosϕ sin θ2)ϕ2 − 2 cosϕ sin θ2θ2

∂w2

∂t− ( cos θ2 cosϕw2 + x2 cosϕ

× sin θ2 ) θ22 ] dx2 = 0

(24)

Page 5: A New Dynamic Model of a Two-Wheeled Two-Flexible-Beam

(τ1 + τ2rw

)sinϕ+ cosϕFs −

2Iywheel

rw2

(sin 2ϕY ϕ+ cos 2ϕXϕ

)− 2 (

Iywheel

rw2sin2ϕ+mw

+mbase ) Y − Iywheel

rw2X sin 2ϕ−

∫ L

0

ρA [ Y + (a sinϕ+ cos θ1 cosϕw1 + x1 cosϕ sin θ1)

× ϕ+ ( x1 cos θ1 sinϕ− sin θ1 sinϕw1 ) θ1 + cos θ1 sinϕ∂2w1

∂t2+ ( 2x1 cos θ1 cosϕ− 2×

cosϕ sin θ1w1)ϕθ1 + 2 cos θ1 cosϕϕ∂w1

∂t+ ( a cosϕ− cos θ1 sinϕw1 − x1 sin θ1 sinϕ ) ϕ2

− 2 sin θ1 sinϕθ1∂w1

∂t+ (−x1 sin θ1 sinϕ− cos θ1 sinϕw1)θ

21]dx1 −

∫ L

0

ρA[Y − (a sinϕ

− cos θ2 cosϕw2 − x2 cosϕ sin θ2 ) ϕ+ (x2 cos θ2 sinϕ− sin θ2 sinϕw2) θ2 + cos θ2 sinϕ

∂2w2

∂t2+ 2 cos θ2 cosϕϕ

∂w2

∂t+ ( 2x2 cos θ2 cosϕ− 2 cosϕ sin θ2w2 ) ϕθ2 − 2 sin θ2 sinϕθ2

× ∂w2

∂t+ (−a cosϕ− w2 cos θ2 sinϕ− x2 sin θ2 sinϕ) ϕ

2 + ( − x2 sin θ2 sinϕ− cos θ2×

sinϕw2 ) θ22 ] dx2 = 0

(25)

2a

(τ1 − τ2rw

)− (

8a2Iywheel

rw2+ 8a2mw + 2a2mbase + 2Izwheel

+ 2Izbase)ϕ+

Iywheel

rw2sin 2ϕ

× Y 2 − Iywheel

rw2sin 2ϕX2 + 2

Iywheel

rw2Y X cos 2ϕ−

∫ L

0

ρA[( a cosϕ− sinϕ cos θ1w1 − x1

sinϕ sin θ1)X + a cos θ1∂2w1

∂t2+ ( a sinϕ+ x1 cosϕ sin θ1 + w1 cosϕ cos θ1 ) Y + ( a2+

x12 + cos2θ1w1

2 − x12cos2θ1 + x1 sin 2θ1w1)ϕ+ (ax1 cos θ1 − a sin θ1w1)θ1 + ( 2cos2θ1

× w1 + x1 sin 2θ1)ϕ∂w1

∂t− 2a sin θ1θ1

∂w1

∂t+ (−a cos θ1w1 − ax1 sin θ1)θ

21 + (x1

2 sin 2θ1

− sin 2θ1w12 + 2x1 cos 2θ1w1 ) ϕθ1 ] dx1 −

∫ L

0

ρA[−(a cosϕ+ sinϕ cos θ2w2 + x2 sinϕ

× sin θ2)X + (a2 + x22 + cos2θ2w2

2 − x22cos2θ2 + x2 sin 2θ2w2)ϕ− (a sinϕ− x2 cosϕ

× sin θ2 − cosϕ cos θ2w2)Y + ( − ax2 cos θ2 + a sin θ2w2)θ2 − a cos θ2∂2w2

∂t2+ (a cos θ2

× w2 + ax2 sin θ2)θ22 +

(2cos2θ2w2 + x2 sin 2θ2

)ϕ∂w2

∂t+ 2a sin θ2θ2

∂w2

∂t+ (x2

2 sin 2θ2

− sin 2θ2w22 + 2x2w2 cos 2θ2 ) ϕθ2 ] dx2 = 0

(26)

− Iybaseθ1 −

∫ L

0

ρA[(w1

2 + x12)θ1 + (x1 cos θ1 cosϕ− cosϕ sin θ1w1) X + x1

∂2w1

∂t2+

(ax1 cos θ1 − a sin θ1w1)ϕ+ (x1 cos θ1 sinϕ− sin θ1 sinϕw1)Y + 2w1θ1∂w1

∂t( sin θ1w1

2

× cos θ1 − x12 sin θ1 cos θ1 − x1 cos 2θ1w1)ϕ

2 − gw1 cos θ1 − x1 sin θ1]dx1 = 0

(27)

− Iybaseθ2 −

∫ L

0

ρA[(w2

2 + x22)θ2 + (x2 cos θ2 cosϕ− cosϕ sin θ2w2) X + x2

∂2w2

∂t2−

(ax2 cos θ2 − a sin θ2w2) ϕ+ (x2 cos θ2 sinϕ− sin θ2 sinϕw2)Y + 2w2θ2∂w2

∂t+ (sin θ2

× cos θ2w22 − x2

2 sin θ2 cos θ2 − x2 cos 2θ2w2)ϕ2 − gw2 cos θ2 − gx2 sin θ2]dx2 = 0

(28)

ρA (∂2w1

∂t2+ x1θ1 + a cos θ1ϕ+ cos θ1 cosϕX + cos θ1 sinϕY − w1θ

21 + (−cos2θ1w1−

x1 sin θ1 cos θ1)ϕ2) + C2

∂w1

∂t+ EI

∂4w1

∂x14+ ρgA sin θ1 +

∂2

∂x12

(EIS(x)zd31

tpV1(t)

)= 0

(29)

Page 6: A New Dynamic Model of a Two-Wheeled Two-Flexible-Beam

ρA(∂2w2

∂t2+ x2θ2 − a cos θ2ϕ+ cos θ2 cosϕX + cos θ2 sinϕY − w2θ

22 + ( − cos2θ2w2−

x2 sin θ2 cos θ2)ϕ2) + C1

∂w2

∂t+ EI

∂4w2

∂x24+ ρgA sin θ2 +

∂2

∂x22

(EIS(x)zd31

tpV2(t)

)= 0

(30)

whereS(x) = H(x)−H(x− Lp) (31)

and H(x) is the Heaviside function. The boundary conditionsof the above equations are represented as:(

∂2w1

∂x12δ∂w1

∂x1− ∂3w1

∂x13δw1

)L

0

= 0 (32)

(∂2w2

∂x22δ∂w2

∂x2− ∂3w2

∂x23δw2

)L

0

= 0 (33)

To show the accuracy of Eqs. (24)-(33), it is sufficient toomit the ϕ and one of these beams. Then, the final equationswill convert to [23].

III. NUMERICAL SIMULATION

As described in the previous section, the derived equationsof motion are complex and have many nonlinear and coupledterms. In this section, a solution technique for these nonlinearequations is briefly presented. The natural frequencies of thebeams need to be obtained first in order to solve the obtainedequations of motion and extract the natural frequencies of thewhole system. In order to extract the natural frequencies of thebeams, the following undamped, unforced equations of motionand boundary conditions of the beams are to be used:

ρA∂2w

∂t2+ EI

∂4w

∂x4= 0 (34)

w (0, t) = 0∂w∂x (0, t) = 0

∂2w∂x2 (L, t) = 0∂3w∂x3 (L, t) = 0

(35)

Here, the beams are assumed to have harmonic motions withfrequency ω as [26]:

w =W (x)eiωt (36)

Substituting Eq. (36) to (34), results the below equation:

− ρbAbω2W + EIbW

′′′′ = 0 (37)

The general solution for (37) and its boundary conditionsis given as

W (x) = a1 cosβx+a2 sinβx+a3 coshβx+a4 sinhβx (38)

where

β2 =

√ρA

EIω (39)

Substituting boundary conditions (35) into eigenfunction(38), results in the following set of equations:

A2×2X2×1 = 0 (40)

whereX2×1 =

[a1a2

](41)

To obtain a nontrivial solution, the determinant of matrixA in Eq. (40) should equal to zero. This equation gives thenatural frequencies of the beams. The next step is to solvethe equations of motion of the system using the assumedmode model expansion technique and the obtained naturalfrequencies. In this technique, the lateral displacements w1

and w2 are assumed as follows [27]:

w1 =∞∑i=1

Wi(x1)q1i(t)

w2 =∞∑i=1

Wi(x2)q2i(t)(42)

where q1i(t) and q2i(t) are the generalized coordinates for thebending of the beams and Wi(x1) and Wi(x2) are the modeshapes of a fixed-free beam. These functions are defined as:

Wi(xi) = A′1(sin(βnxi)− sinh(βnxi))

+A′2(cos(βnxi)− cosh(βnxi))(43)

where A′1 and A′2 are two tunable and dependent coefficientsas

A′2 = − (sin(βnL)− sinh(βnL))

(cos(βnL) + cosh(βnL))A′1 (44)

with βn being defined as follows for each mode:

βn4 =

ρbω1n2

EIb(45)

The equations of motion can be obtained by substituting Eq.(42) to Eqs. (24)-(30) and also multiplying Eq. (43) to Eqs.(29) and (30), and then integrating the obtained equations over0 to L. The final equations represent 2n+5 DOF of the system.

IV. SIMULATION RESULTS

To investigate the dynamic behavior of the system, theequations of motions are solved numerically in Matlab andthe results are presented in different scenarios. The numericalvalues of the physical parameters are presented in Table I andonly two modes are considered for both beams. First, a sweepfrequency input, shown in Fig.4, is applied to the system toextract the natural frequencies of the system. This standardinput provides a fairly uniform spectral excitation and gives themodes of the systems [28]. Fig.5 shows the spectral analysisof time history of the system and its natural frequencies.

Page 7: A New Dynamic Model of a Two-Wheeled Two-Flexible-Beam

Fig. 4. The swipe frequency input voltage.

Fig. 5. The FFT analysis of the system.

In the next scenario, the lateral movement of the systemin X-direction is presented by applying two same unit stepinput voltages to the piezoelectric actuators. It is assumed thatthe robot just moves forward. Hence, the below relation isset between the beams’ rotation angle and the DC motors’voltage. {

Vai = 10−2θi θ > 0Vai = 0 θ < 0

, i = 1, 2 (46)

Fig.6 shows the lateral vibrations of the beams. Theselateral vibrations, as shown in Fig.7, make the beam rotation θvariations and consequently produce the DC motors voltages.As considered in the previous section, these voltages causethe external torques and the lateral movement in X-direction.The displacement of the robot is shown in Fig.8. Because ofnonlinearity of the system, ϕ and Y are not zero but theirsize are small with respect to both X and θi and considerednegligible.

The final scenario is rotation test in the X-Y plane. Inthis test, two step input voltages with different amplitudes areapplied to the piezoelectric actuators. This makes differentbeams’ lateral vibrations and bases’ rotational angles, andconsequently different torques applied to the wheels. Thiscauses different angular velocities in the wheels and producesrotational angle ϕ in the robot system. Fig.9 shows the rotationangles θ1 and θ2. The rotation and the path of the robot arealso shown in Fig.10 and Fig.11.

V. CONCLUSIONS

A new configuration for the conventional two-wheeledinverted pendulum system was presented in this paper. The

Fig. 6. Tip deflection of the beams w1(L, t) and w2(L, t) with unit stepinput.

Fig. 7. Angular rotations of the beams θ1 and θ2 around the robot’s basewith unit step input.

Fig. 8. Displacement of the robot in X-direction with step input.

Fig. 9. Angular rotations of the beams θ1 and θ2 around the robot’s basewith v1 = H(t) and v1 = 9

10H(t).

Page 8: A New Dynamic Model of a Two-Wheeled Two-Flexible-Beam

TABLE ITHE SYSTEM PARAMETERS.

Parameter Value Parameter ValueBeam length (mm) 271.46 Piezo layer shear modulus (GPa) 5.515Beam thickness (mm) 0.5 Piezo layer elastic modulus (GPa) 30.33Beam width (mm) 25.65 Piezo layer density (Kg/m3) 5440Beam elastic modulus (GPa) 70 First flexural damping ratio (%) 0.0058Beam shear modulus (GPa) 30 Second flexural damping ratio (%) 0.015Piezo layer length (mm) 38 PZT layer width (mm) 23Piezo layer thickness (mm) 0.3 Beam density (Kg/m3) 2700

Fig. 10. Angular rotation ϕ of the robot around the z-axis.

Fig. 11. Displacement X and Y of the robot in XY -plane.

developed model had 2n+ 5 DOF and its main purpose wasto simulate two cantilever beams and piezoelectric actuatorson a moving base as a new robot which can move in-plane. The governing equations of motion were obtained byemploying the extended Hamilton’s Principle. The derivationsteps of these equations were presented in detail. The obtainedmodel indicates that these systems have several coupled andnonlinear terms in their dynamics. To investigate the dynamicbehavior of the system, these complex equations were solvednumerically and the natural frequencies of the system wereextracted. Finally, the result of two different tests includingthe lateral and circular movements were presented.

REFERENCES

[1] S. Jeong and T. Hayashi, “Development of a wheeled inverted pendu-lum mobile platform with a four-bar parallel mechanism,” AdvancedRobotics, vol. 32, no. 4, pp. 191–201, 2018.

[2] L. Canete and T. Takahashi, “Modeling, analysis and compensation ofdisturbances during task execution of a wheeled inverted pendulum typeassistant robot using a unified controller,” Advanced Robotics, vol. 29,no. 22, pp. 1453–1462, 2015.

[3] K. T. Ulrich, “Estimating the technology frontier for personal electric ve-hicles,” Transportation research part C: Emerging technologies, vol. 13,no. 5-6, pp. 448–462, 2005.

[4] F. Grasser, A. D’arrigo, S. Colombi, and A. C. Rufer, “Joe: a mobile, in-verted pendulum,” IEEE Transactions on industrial electronics, vol. 49,no. 1, pp. 107–114, 2002.

[5] C.-C. Tsai, H.-C. Huang, and S.-C. Lin, “Adaptive neural networkcontrol of a self-balancing two-wheeled scooter,” IEEE Transactions onIndustrial Electronics, vol. 57, no. 4, pp. 1420–1428, 2010.

[6] J. Solis, R. Nakadate, Y. Yoshimura, Y. Hama, and A. Takanishi, “Devel-opment of the two-wheeled inverted pendulum type mobile robot wv-2rfor educational purposes,” in 2009 IEEE/RSJ International Conferenceon Intelligent Robots and Systems. IEEE, 2009, pp. 2347–2352.

[7] Double Robotics Inc, “Double 3,” 2019. [Online]. Available: https://www.doublerobotics.com

[8] P. Frankovsky, L. Dominik, A. Gmiterko, I. Virgala, P. Kurylo, andO. Perminova, “Modeling of two-wheeled self-balancing robot drivenby dc gearmotors,” International Journal of Applied Mechanics andEngineering, vol. 22, no. 3, pp. 739–747, 2017.

[9] Y. Kim, S. H. Kim, and Y. K. Kwak, “Dynamic analysis of a nonholo-nomic two-wheeled inverted pendulum robot,” Journal of Intelligent andRobotic Systems, vol. 44, no. 1, pp. 25–46, 2005.

[10] S. Kim and S. Kwon, “Dynamic modeling of a two-wheeled invertedpendulum balancing mobile robot,” International Journal of Control,Automation and Systems, vol. 13, no. 4, pp. 926–933, 2015.

[11] M. Zafar and H. I. Christensen, “Whole body control of a wheeledinverted pendulum humanoid,” in 2016 IEEE-RAS 16th InternationalConference on Humanoid Robots (Humanoids). IEEE, 2016, pp. 89–94.

[12] M. Boukens and A. Boukabou, “Design of an intelligent optimalneural network-based tracking controller for nonholonomic mobile robotsystems,” Neurocomputing, vol. 226, pp. 46–57, 2017.

[13] S. Kim and S. Kwon, “Nonlinear optimal control design for underac-tuated two-wheeled inverted pendulum mobile platform,” IEEE/ASMETransactions on Mechatronics, vol. 22, no. 6, pp. 2803–2808, 2017.

[14] M. Yue, C. An, and J.-Z. Sun, “An efficient model predictive control fortrajectory tracking of wheeled inverted pendulum vehicles with variousphysical constraints,” International Journal of Control, Automation andSystems, vol. 16, no. 1, pp. 265–274, 2018.

[15] A. Mehrvarz, A. Najafi Ardekani, M. J. Khodaei, and N. Jalili, “Vi-bration analysis and control of fluid containers using piezoelectrically-excited side wall,” Journal of Vibration and Control, vol. 25, no. 7, pp.1393–1408, 2019.

[16] A. Mehrvarz, H. Salarieh, A. Alasty, and R. Vatankhah, “Vibrationboundary control of timoshenko micro-cantilever using piezoelectricactuators,” Scientia Iranica, vol. 25, no. 2, pp. 711–720, 2018.

[17] D. Karagiannis and V. Radisavljevic-Gajic, “Exponential stability fora class of boundary conditions on a euler-bernoulli beam subject todisturbances via boundary control,” Journal of Sound and Vibration,vol. 446, pp. 387–411, 2019.

[18] B. Marzban and H. Yuan, “The effect of viscous force on the predic-tion of muscle contractility in biohybrid cantilever-based experiments,”Extreme Mechanics Letters, vol. 9, pp. 342–346, 2016.

[19] A. Salehi-Khojin, N. Jalili, and S. N. Mahmoodi, “Vibration analy-sis of vector piezoresponse force microscopy with coupled flexural-longitudinal and lateral-torsional motions,” Journal of Sound and Vi-bration, vol. 322, no. 4-5, pp. 1081–1099, 2009.

[20] M. Ansari, E. Esmailzadeh, and N. Jalili, “Coupled vibration andparameter sensitivity analysis of rocking-mass vibrating gyroscopes,”Journal of Sound and Vibration, vol. 327, no. 3-5, pp. 564–583, 2009.

Page 9: A New Dynamic Model of a Two-Wheeled Two-Flexible-Beam

[21] M. J. Khodaei, A. Mehrvarz, N. Candelino, and N. Jalili, “Theoreticaland experimental analysis of coupled flexural-torsional vibrations of ro-tating beams,” in ASME 2018 Dynamic Systems and Control Conference.American Society of Mechanical Engineers, 2018, pp. V003T42A004–V003T42A004.

[22] M. H. Nguyen, V. T. Ngo, M. T. Nguyen, T. T. H. Le, and V. Nguyen,“Designing linear feedback controller for elastic inverted pendulum withtip mass.” Robotica & Management, vol. 21, no. 2, 2016.

[23] A. Mehrvarz, M. J. Khodaei, W. Clark, and N. Jalili, “Modeling anddynamics analysis of a beam-hoverboard self-transportation system,” inASME 2018 Dynamic Systems and Control Conference. American Soci-ety of Mechanical Engineers, 2018, pp. V003T32A008–V003T32A008.

[24] W. R. Clark, “Control of a beam-hoverboard self-transportation system

with model predictive control,” Ph.D. dissertation, Northeastern Univer-sity, 2019.

[25] V. Bhadbhade, N. Jalili, and S. N. Mahmoodi, “A novel piezoelectricallyactuated flexural/torsional vibrating beam gyroscope,” Journal of Soundand Vibration, vol. 311, no. 3-5, pp. 1305–1324, 2008.

[26] N. Jalili, Piezoelectric-based vibration control: from macro to mi-cro/nano scale systems. Springer Science & Business Media, 2009.

[27] S. S. Rao, Vibration of continuous systems. Wiley Online Library, 2007,vol. 464.

[28] A. Banazadeh, M. S. Seif, M. J. Khodaei, and M. Rezaie, “Identificationof the equivalent linear dynamics and controller design for an unmanned

underwater vehicle,” Ocean Engineering, vol. 139, pp. 152–168, 2017.