Legged Robot Control 1
Legged Robot Control 1
Authorized licensed use limited to: NUST School of Electrical Engineering and Computer Science (SEECS). Downloaded on March 20,2024 at 09:26:50 UTC from IEEE Xplore. Restrictions apply.
3. System Modeling
The basic technique used in the design of the mechanical
structure is to keep it symmetric in the weight shifting
plane about the mean position of the shifting arm.This
assures that at mean position of the arm the weight of the
robot is equally distributed over both feet. Also that the
arm is capable of shifting weight to either foot to the
same limit. The major materials used are Aluminium for
the body structure, Oil Hard Steel for gear systems and
Mild Steel for couplings.
m rcoc= 1 miri
i=l
74
Authorized licensed use limited to: NUST School of Electrical Engineering and Computer Science (SEECS). Downloaded on March 20,2024 at 09:26:50 UTC from IEEE Xplore. Restrictions apply.
ma= 0.796 kg For y-axis
5
mar,= miri
i=l ,=o
r,,= 0.197111
= (0.4929 + 0.157 COS e,) I 2.925 (3)
Using this procedure we can find the individual masses
and COG locations for each of the structural units and where 0, for (2) and (3) is the rotation angle of the
then determine their coordinates in the global axis system shifting arm measured from its mean position, and
for the robot. The origin for this axis system lies at the positive in the anticlockwise direction when the robot is
hack outer comer of the right foot of the robot. The viewed from the front. x and y give COG coordinates in x
allocation of direction for each axis can be seen from and y axes in the global axis system.
Fig.3 and 4 below as we determine the COG position for
the robot. By applying a similar approach COG location along z-
axis is determined as:
Using Fig.3, mass of the whole robot is determined as:
z= (0.086 + 0.495 Sin&+0.043 Sin&) 12.925 (4)
m= mi where the z-coordinate will always he determined
i=a forwards from the posterior end of the back foot using
m = 2.925 kg (4). hand b a r e shown in Fig.4.
Using (1) on Fig.3, for x-axis, For 0, = 4 9 , x = 0.037m => on right foot,
y = 0.206m,
h Net Torque = 0.23 Nm (CCW)
mx= C mixi
i=a Under this torque the body of the robot falls to a side by
rotating over the free ankle joint. Since during this falling
x = (0.22-0.157 Sin 8,)12.925 (2) motion, the body of the robot behaves like an inverted
75
Authorized licensed use limited to: NUST School of Electrical Engineering and Computer Science (SEECS). Downloaded on March 20,2024 at 09:26:50 UTC from IEEE Xplore. Restrictions apply.
pendulum swinging on the ankle joint, equations for 6, is restricted to rotating only 10" in one turning step.
COG location during this motion can be trivially M(0) and M ( I ) are object matrices of the right foot before
determined. and after rotation respectively as shown in Fig. 5 .
--
(5)
y = 0.206 COSSs (6) 4. Control Strategy
6 is determined from the ankle joint as shown in Fig.7
later on and is taken to he positive in anticlockwise
direction.
<y-
The robot is allowed to fall freely for Ss = 6.21' either
way after which the mechanical support attached to the I J
foot comes into contact with the body and stabilizes the
falling system with the COG balanced at the center of one
foot and the other foot lifted off the ground.
For the turning feature, the new coordinates for the foot
when it turns can be determined using spatial
transformations 151. The axis of rotation is along the y-
axis of an arbitrary frame whose origin is located at the
geometrical centre of the two feet of the robot (Point 0 in
Fig.5.).
IC%--
e
Ice,= hmnc
End d Sequenoe
Po 212
0
Z
0
j
A total of four DC motors are required to control
NUSTBOT-I i.e, two for leg movements, one for turning
and another for weight shifting. Each of these motors
runs on 12V DC in our design and draws a maximum
76
Authorized licensed use limited to: NUST School of Electrical Engineering and Computer Science (SEECS). Downloaded on March 20,2024 at 09:26:50 UTC from IEEE Xplore. Restrictions apply.
current of 0.2A. To suppolt this requirement two 6V DC,
1.3Ah batteries have been used in series as the power
source. .. ..
i.....
For hi-directional control of each motor the control i I
I
system has been implemented using H-bridge circuits.
For this purpose P I C 0 2 9 8 has been used which is a dual i
H-bridge IC from Texas Instruments. The control
inputs for the H-bridge come directly from an
i :
ATMEL89c51 microcontroller which is the logic device i
in our circuit. The feedback regarding the state of the iI .
joints is provided to the microcontroller by limit
switches. There are three limit switches to monitor the
position of each actuated joint, two for extremes and one
for the mean (or home) position.
5. COG Trajectory
Trajectory of the COG of the robot in the area marked
STABLE in Fig.7 is governed by (2) & (3) while the rest
of the motion is governed by ( 5 ) & (6).
77
Authorized licensed use limited to: NUST School of Electrical Engineering and Computer Science (SEECS). Downloaded on March 20,2024 at 09:26:50 UTC from IEEE Xplore. Restrictions apply.
Table.] gives the trajectory of the robot’s COG while observed that for more stable walking 4 should be kept
walking a step forward by standing on the left foot as significantly larger than &.
shown in F i g 3 below: Here, d=0.184 ( S i n 4 + Sin@) is
the distance of back end of front foot from origin in z-
axis and z, is the distance of COG along z-axis from the 6. Summary
original origin location for c a e s (v) and (vi) when the
foot marking the origin has moved forward. By virtue of a simple design and a layered control
software, we have accomplished our goal of making an
easy to handle and program, user-friendly two-legged
walking robot. The use of a mechanical suppolt for
balancing of the robot and limit switches for joint
position feedback have provided easy solutions to
complex problems. However, the turning mechanism
restricts NUSTBOT-1 to taking turns of multiples of 10”
only. Future work can be carried out to make the turning
motion of the robot more flexible.
Acknowledgements
Special thanks to Dr. Khalid Munawar of the Department
of Electrical Engineering for for his keen interest in our
work and for letting us use his labs for several of the
experiments during our research.
References
78
Authorized licensed use limited to: NUST School of Electrical Engineering and Computer Science (SEECS). Downloaded on March 20,2024 at 09:26:50 UTC from IEEE Xplore. Restrictions apply.