Humanoid Robot Development.

(1)

HUMANOID ROBOT DEVELOPMENT

UMMUL AZKI BINTI MUSA

This report is submitted in partial fulfillment of the requirements for the award of Bachelor of Electronic Engineering (Computer Engineering) With Honours.

Faculty of Electronic and Computer Engineering Universiti Teknikal Malaysia Melaka


(2)

UNIVERSTI TEKNIKAL MALAYSIA MELAKA

FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER BORANG PENGESAHAN STATUS LAPORAN

PROJEK SARJANA MUDA II

Tajuk Projek : HUMANOID ROBOTIC DEVELOPMENT Sesi Pengajian : 2008 / 2009

Saya UMMUL AZKI BINTI MUSA

mengaku membenarkan Laporan Projek Sarjana Muda ini disimpan di Perpustakaan dengan syarat-syarat kegunaan seperti berikut:

1. Laporan adalah hakmilik Universiti Teknikal Malaysia Melaka.

2. Perpustakaan dibenarkan membuat salinan untuk tujuan pengajian sahaja.

3. Perpustakaan dibenarkan membuat salinan laporan ini sebagai bahan pertukaran antara institusi pengajian tinggi.

4. Sila tandakan ( ) :

SULIT*

(Mengandungi maklumat yang berdarjah keselamatan atau kepentingan Malaysia seperti yang termaktub di dalam AKTA RAHSIA RASMI 1972)

(Mengandungi maklumat terhad yang telah ditentukan oleh organisasi/badan di mana penyelidikan dijalankan) TERHAD*

TIDAK TERHAD

Disahkan oleh:

__________________________ ___________________________________

(TANDATANGAN PENULIS) (COP DAN TANDATANGAN PENYELIA)

Alamat Tetap:

No 32, Jalan Canggung 13, Taman Pasir Puteh,

81700 Pasir Gudang.

Johor.


(3)

“I hereby declare that this report is the result of my own effort except for quote that have been cited clearly in the references.”

Signature : ……….. Student : UMMUL AZKI BINTI MUSA


(4)

“I hereby declare that I have read this report and in my opinion this report is sufficient in terms of the scope and quality for the award the Bachelor of Electronic Engineering

(Computer Engineering) With Honours”.

Signature : ... Name : EN. SANI IRWAN BIN MD. SALIM


(5)

DEDICATION

Special dedicated to my beloved parents, family and fellow friends, who had strongly encouraged and supported me in my entire journey of learning.


(6)

ACKNOWLEGMENT

I would like to extend my sincere thanks to all of the people who were involved direct or indirect in this project, encouraged and supported me all the time. I also would like to take this opportunity to thanks to my supervisor; Mr. Sani Irwan Bin Md Salim for his guidance and advisory in execution of my project. Finally yet importantly, thanks to fellow friends and all those who have in one way or another help to make this project possible.


(7)

ABSTRACT

This project is to design and build robot that are capable of bipedal motion. Bipedal motion is a complex motion in humans, and even harder to simulate exactly using mechanical structures. The main objective of the project is to build a humanoid robot that is able to stand and walk. Electronic and mechanical skills provide the knowledge to create a feasible design using LEGO Mindstroms and is programmed by NQC languages. The robot is build with a high stability and balance so that it does not fall easily. The most important thing in the design is the lower part of the body or the leg segment. This is because the leg segment controls the movement of the robot when walking and standing. The type or style of walking for the robot is crucial because it affect its stability and movement speed.


(8)

ABSTRAK

Projek ini bertujuan merekabentuk dan membina robot berkaki dua yang mampu bergerak. Pergerakan robot berkaki dua adalah pergerakan manusia yang kompleks dan sukar untuk dipersembahkannya mengunakan struktur mekanikal. Objektif utama projek ini adalah untuk mereka sejenis robot yang mampu berdiri dan berjalan. Kemahiran elektronik and mekanikal memberi pengetahuan untuk merekebentuk robot yang fleksibel dengan menggunakan LEGO Mindstroms dan diaturcara menggunakan bahasa NQC. Robot ini dibina dengan kestabilan yang tinggi dan seimbang agar tidak mudah jatuh. Bahagian yang paling penting dalam merekabentuk adalah bahagian yang paling bawah atau kaki robot tersebut. Ini kerana bahagian kaki yang menampung berat atau mengawal pergerakan robot tersebut ketika berdiri dan berjalan. Cara – cara berjalan juga perlu ditentukan kerana ia mempengaruhi kesatabilan dan kelajuan pergerakan.


(9)

TABLE OF CONTENT

CHAPTER TOPICS PAGES

PROJECT TITLE i

VERIFICATION STATUS OF REPORT ii

DECLARATION iii

VERIFICATION BY SUPERVISOR iv

DEDICATION v

ACKNOWLEDGMENT vi

ABSTRACT vii

ABSTRAK viii

TABLE OF CONTENT ix

LIST OF FIGURE xii

LIST OF TABLE xv

I INTRODUCTION 1.1 Introduction of Project 1

1.2 Objective 2

1.3 Problem Statement 2

1.4 Scope of Project 3

1.5 Report Structures 4


(10)

II LITERATURE REVIEW

2.1 Introduction 5

2.2 The Honda Humanoid 6

2.3 Preamble 7

2.4 Human Characteristics 9

2.5 Design Specifications 10

III METHODOLOGY 3.1 Introduction 13

3.2 Methodology 14

3.3 Gait Analysis 16

3.4 The Kinematics 17

3.5 Kinetics 17

3.6 Hardware 18

3.6.1 Lego 18

3.6.2 RCX 19

3.6.3 IR 20

3.6.4 Gear 20

3.6.5 Sensor 21

3.6.6 Motor 23

3.7 Software


(11)

IV RESULTS AND DISCUSSION

4.1 Introduction 25

4.2 Base Construction 25

4.3 Legs Construction 28

4.4 Body Construction 32

4.5 Combining Part 34

4.6 Software Implementation 39 4.6.1 Code Programming 39

4.7 Discussion 43

4.7.1 Movement of the Robot 43

4.7.2 Programming of the Robot 44

V CONCLUSION AND SUGGESTION

5.1 Conclusion 46

5.2 Suggestion 47

REFERENCES 48

APPENDIX 49


(12)

LIST OF FIGURES

NO. TITLE PAGES

2.1 Front and Side view of P2 and P3 6

2.2 Preamble robot 8

2.3 Rotation sensors 9

2.4 Bipedal locomotion and humanoid robots. 9

3.1 Flow chart of create robot 14

3.2 Draft of the robot 15

3.3 A sample sequence of the silhouette of a walking 16

3.4 Lego’s Logo 18

3.5 The RCX Controller 19

3.6 IR Tower 20

3.7 Gears 20

3.8 Touch Sensor 22

3.9 Light Sensor 22

4.1 One of the robot’s legs (motor and gears usage) 26 4.2 Robot’s legs (motor and gears usage) 27

4.3 Firm the connection 27


(13)

NO. TITLE PAGES

4.5 The view of the robot’s legs 29

4.6 The right view of robot’s legs 29

4.7 The left view of robot’s legs 30

4.8 The gear usage 31

4.9 The ratio of gear 31

4.10 Part of robot’s body 32

4.11 The Bevel gear Usage 33

4.12 The Crown and 8-Teeth gear 33

4.13 Robot with body part 34

4.14 The front view of robot 35

4.15 The side view of robot 36

4.16 The completed robot 37

4.17 The front view of completed robot 38

4.18 Compiling process 39

4.19 Program with error 40

4.20 No error program (for Controller A) 41 4.21 Process to download the program to RCX 42


(14)

LIST OF TABLE

NO. TITLE PAGES


(15)

LIST OF ABBREVIATIONS

NQC - Not Quite C

IR - Infrared DC - Direct Current CoG - Center of Gravity


(16)

CHAPTER I

INTRODUCTION OF PROJECT

1.1 Introduction

Robot is a machine whose behavior can be programmed. Basically, robots have five fundamental components such as a brain to controls the robot’s action and respond to sensory input, a robot’s body is simply the physical chassis that hold the other pieces of the robot together, actuators (motor) to allow the robot to move, sensors to give a robot information about its environment and a power source supplies to run the brain, actuators and sensors.

This project is basically a development on humanoid robot where the robot is capable walking properly as a human. Designing the kinematics that describes the motion of objects without consideration of the circumstances leading to the motion and programming of a full-fledge humanoid robot. The system will be developed using a minimum 3 sets of LEGO Mindstorms. The set comes with a robot brain (controller)


(17)

called the RCX (Robotic Command Explorer). It has three input ports, three output ports, four push-buttons and an infrared (IR) serial communication interface. The robot is using sensors and motors as detector and for the robot’s movement. The movement of the robot will be control by the LEGO Mindstroms bricks. The programming language that will be used is Not Quite C (NQC).

1.2 Objectives

1) Design and develop humanoid robotic system using LEGO mindstorms. 2) To develop a model of human movement, structure to mimic walking

movement.

3) To utilize sensors and motors that act as human joint to performs the movement.

1.3 Problems Statements

1) Most of the robot not stable enough, it will fall easily when it make a movement. It because the robot have no balancing (Dynamic systems).

2) Problems of control and execution are concerned with correcting deviation from references trajectories and dynamically modifying these trajectories during execution to avoid unexpected obstacles.


(18)

1.4 Scope of Project

1) Using 3 brick LEGO MindStorms to create the humanoid robot that could stand and walk.

2) It uses RCX brick as a controller or robot’s brain.

3) The robot also uses a sensor to measures some attribute like position, orientation, speed and surrounding environment.

4) DC motors is used for motion in the robot such as muscles and joints.

1.5 Report Structures 1.5.1 Chapter 1

Chapter 1 provides a plan for the creation of the LEGO Humanoid Robot. It does this by listing the objectives, problem statement, scope, and the methodology of the project.

1.5.2 Chapter 2

Chapter 2 details how bipedal and humanoid robots have been develop in the past and what can be learnt from those efforts. Chapter 2 also provides background information on the human form including bone structure and how they combine within the human skeleton.

1.5.3 Chapter 3

Chapter 3 details the process of how the robot was created and also provides background information on the parts and materials that are going to be used in the design of the LEGO humanoid robot.


(19)

1.5.4 Chapter 4

Chapter 4 details the result that obtained based on the methodology that used. The obtained result will be analyze and based on the objectives and problem statement.

1.5.5 Chapter 5

Chapter 5 is about the discussion and summary of project achievement. It also includes the conclusion and recommendation that can be taken for future improvement of the project.


(20)

CHAPTER II

LITERATURE REVIEW

2.1 Introduction

This chapter deals with the work done by other researchers who have investigated about mechanical design of a humanoid. The concept behind the commencement of the program was to create a robot that could coexist and cooperate with human beings, by doing what a person cannot do and cultivating a new dimension immobility both of which would add value to society.

2.2 The Honda Humanoid

The Honda Humanoid Robot, The Honda Humanoid Robot, research began in

1986 with a development program. The Honda P2 and P3 biped robots shown in figure 2.2a is some of the very few that closely resemble a human structure and performance. Honda began its research towards humanoid robots in 1986. At the time, knowledge on legged locomotion was sparse and Honda started by studying bipedal walking mechanisms. Their aim was to develop a robot able to coexist and collaborate with humans and to perform tasks that humans cannot.


(21)

Figure 2.1: Front and Side view of P2 and P3. P3 is some 22 cm shorter and 80 kg lighter.

The engineers at Honda began their research on the .foot/leg walking mobile function; which corresponds to basic human mobility.

The studies that were conducted were:

1) Movement of leg/foot joints when walking 2) Joint alignment

3) Dimensions, weights and centre of gravity of each leg and foot 4) Torque application to the joints when walking

5) Sensor systems required for walking 6) Landing impact when walking

For the data gathered from the research into these areas the Honda Engineers were able to develop a model for stable walking. The model for stable walking worked by applying pressure to a part of the plantar to avoid falling while walking and at standstill. If the sensors judged that the pressure is not enough to keep the robot stable, the movement of mechanical limbs would alter the centre of gravity.


(22)

2.3 PREAMBLE

This robot is a single-RCX biped with the ability to turn within its own footprint. It's also first foray into doing a 'tough-looking' robot, as opposed to one that is purely functional.

Turning works by advancing the robot until the leg that leads the turn is in front (e.g., the right leg is forward for a right turn). To make a right turn, the robot takes its weight on the right foot (left leg off the ground) and turns the right ankle turntable about 15° to the right; it then takes half a step back onto the left foot, raising the right foot so that it can straighten the right ankle. It then moves its weight forward onto the right foot again, turns the ankle another 15°, and so on. This procedure can repeated until the robot has turned the desired amount. The advantage of turning in this way is that the robot turns pretty much within its own footprint, no requirement for maneuvering in large-diameter circles.

2.3.1 Mechanics

The lower (belly) motor drives a worm-24t gearbox. The axle from the 24t gear connects to two cams, one for each leg, offset 180°, lifting and moving the legs alternately to provide a walking action.

The two motors mounted high on the rear supply power to rotate the large Technic turntables which form the ankles; one motor for each ankle. The power is transferred to the ankles via Znap flexible axles; for each leg, one link runs from the motor to a small double-bevel gear at the 'knee' and drives a medium double-bevel gear is flexi-linked to the worm screw at the back of the 'ankle'. Having heavy legs is really the death of chicken-walker robots like Biped_II because the legs tear off after 10 or so paces -- the Znap flexy-drive links allowed me to put all the weight in a well-braced position at the center of the robot, rather than having the weight of the motors down at the ankles.


(23)

Figure 2.2: Preamble robot

The position of the moveable elements is monitored by three rotation sensors: one each for the ankles and one for the drive motor. The ankle sensors each have a 24t gear which is driven by an 8t gear on the same axle as the worm gear that turns the ankle turntable. The drive motor sensor has a pair of 12t gears driven by the 24t gear that is connected to the walking cams.


(24)

Figure 2.3: Rotation sensors

Figure 2.4: There has been much research into bipedal locomotion and humanoid robots.

2.4 Human Characteristics

There is a wealth of information relating to both the anatomy of a human and human motion. Therefore this was a good starting point in trying to model the walking characteristics of the humanoid robot. The first point to investigate is how the human body is constructed. The next point to investigate was how human walk in a bipedal fashion.


(1)

1.5.4 Chapter 4

Chapter 4 details the result that obtained based on the methodology that used. The obtained result will be analyze and based on the objectives and problem statement. 1.5.5 Chapter 5

Chapter 5 is about the discussion and summary of project achievement. It also includes the conclusion and recommendation that can be taken for future improvement of the project.


(2)

CHAPTER II

LITERATURE REVIEW

2.1 Introduction

This chapter deals with the work done by other researchers who have investigated about mechanical design of a humanoid. The concept behind the commencement of the program was to create a robot that could coexist and cooperate with human beings, by doing what a person cannot do and cultivating a new dimension immobility both of which would add value to society.

2.2 The Honda Humanoid

The Honda Humanoid Robot, The Honda Humanoid Robot, research began in 1986 with a development program. The Honda P2 and P3 biped robots shown in figure 2.2a is some of the very few that closely resemble a human structure and performance. Honda began its research towards humanoid robots in 1986. At the time, knowledge on legged locomotion was sparse and Honda started by studying bipedal walking mechanisms. Their aim was to develop a robot able to coexist and collaborate with humans and to perform tasks that humans cannot.


(3)

Figure 2.1: Front and Side view of P2 and P3. P3 is some 22 cm shorter and 80 kg lighter.

The engineers at Honda began their research on the .foot/leg walking mobile function; which corresponds to basic human mobility.

The studies that were conducted were:

1) Movement of leg/foot joints when walking 2) Joint alignment

3) Dimensions, weights and centre of gravity of each leg and foot 4) Torque application to the joints when walking

5) Sensor systems required for walking 6) Landing impact when walking

For the data gathered from the research into these areas the Honda Engineers were able to develop a model for stable walking. The model for stable walking worked by applying pressure to a part of the plantar to avoid falling while walking and at standstill. If the sensors judged that the pressure is not enough to keep the robot stable, the movement of mechanical limbs would alter the centre of gravity.


(4)

2.3 PREAMBLE

This robot is a single-RCX biped with the ability to turn within its own footprint. It's also first foray into doing a 'tough-looking' robot, as opposed to one that is purely functional.

Turning works by advancing the robot until the leg that leads the turn is in front (e.g., the right leg is forward for a right turn). To make a right turn, the robot takes its weight on the right foot (left leg off the ground) and turns the right ankle turntable about 15° to the right; it then takes half a step back onto the left foot, raising the right foot so that it can straighten the right ankle. It then moves its weight forward onto the right foot again, turns the ankle another 15°, and so on. This procedure can repeated until the robot has turned the desired amount. The advantage of turning in this way is that the robot turns pretty much within its own footprint, no requirement for maneuvering in large-diameter circles.

2.3.1 Mechanics

The lower (belly) motor drives a worm-24t gearbox. The axle from the 24t gear connects to two cams, one for each leg, offset 180°, lifting and moving the legs alternately to provide a walking action.

The two motors mounted high on the rear supply power to rotate the large Technic turntables which form the ankles; one motor for each ankle. The power is transferred to the ankles via Znap flexible axles; for each leg, one link runs from the motor to a small double-bevel gear at the 'knee' and drives a medium double-bevel gear is flexi-linked to the worm screw at the back of the 'ankle'. Having heavy legs is really the death of chicken-walker robots like Biped_II because the legs tear off after 10 or so paces -- the Znap flexy-drive links allowed me to put all the weight in a well-braced position at the center of the robot, rather than having the weight of the motors down at the ankles.


(5)

Figure 2.2: Preamble robot

The position of the moveable elements is monitored by three rotation sensors: one each for the ankles and one for the drive motor. The ankle sensors each have a 24t gear which is driven by an 8t gear on the same axle as the worm gear that turns the ankle turntable. The drive motor sensor has a pair of 12t gears driven by the 24t gear that is connected to the walking cams.


(6)

Figure 2.3: Rotation sensors

Figure 2.4: There has been much research into bipedal locomotion and humanoid robots.

2.4 Human Characteristics

There is a wealth of information relating to both the anatomy of a human and human motion. Therefore this was a good starting point in trying to model the walking characteristics of the humanoid robot. The first point to investigate is how the human body is constructed. The next point to investigate was how human walk in a bipedal fashion.