Development Of A Low Cost 3D Scanner.

(1)

i

DEVELOPMENT OF A LOW COST 3D SCANNER

MUHAMMAD MUSFAREZAL BIN MUSTAFA


(2)

SUPERVISOR DECLARATION

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

Bachelor of Mechanical Engineering (Design and Innovation).”

Signature: ……… Supervisor: Dr Faiz Redza Bin Ramli


(3)

iii

DEVELOPMENT OF A LOW COST 3D SCANNER

MUHAMMAD MUSFAREZAL BIN MUSTAFA

This report is submitted in fulfillment of the requirement for the award Bachelor of Mechanical Engineering (Design and Innovation)

Faculty of Mechanical Engineering Universiti Teknikal Malaysia Melaka


(4)

DECLARATION

“I hereby declare that the work in this report is my own except for summaries and quotations which have been duly acknowledged.”

Signature: ………..……… Author: Muhammad Musfarezal bin Mustafa


(5)

iii

Dedicated to Allah S.W.T

My beloved parents

Mustafa Salleh and Norizam Abdullah

My siblings that give me support to finish my study at Universiti Teknikal Malaysia Melaka (UTeM)

My beloved lecturers My supervisors,

My friends, PTPTN


(6)

ACKNOWLEDGEMENT

In the name of Allah, the most Gracious and most Merciful,

I am really grateful as I have managed to complete this PSM II (Projek Sarjana Muda II) with help and support, encouragement by various parties. All knowledge and information that they give are really helpful and useful. First of all I would like to express my gratitude to Dr Faiz Redza for all his support, comment and advices during completing this project and thank you very much for becoming my supervisor and my become my lecturer for this project. Other than that, not forget to all the lecturers that give the spirit and motivation to improve my engineering skill.

I would like to thanks to my beloved parent and family who always give me non-stop support and also motivation during my project. I am really appreciate their understanding. Not forgetting, to all my friends. Thank you for always with me and always give me motivation and inspiration. Thank you also for their help in completing this project. Finally, thank you to the people who are around me who give me support which is direct or indirect for the contribution in this work.


(7)

v

ABSTRACT

In this project, an approach to use Microsoft Kinect as a scanner where the function is to scan an object and convert it into CAD format. The objective of the project to design the low cost 3D scanner and have turning capabilities during the scanning process. In the development process it involved design process which is morphological chart, 3D drawing by using Solid Work and ANSYS software as the FEA analysis tools, programing, fabrication and testing. There are two sizes of gear which is 40 teeth and 20 teeth, both of the gear have been printed using 3D printer with ABS material. The Arduino UNO board has been coded by using open source software. The result of the analysis between the pulse of the servo and the depth image of the object, the results shows 1650 μs servo speed is ideal the speed of scanning process to get the best result. For the complex object the, the analysis has been done by using a kettle as the object and based on the result other problem has been found such as hole on the depth image of the surface causes from glare and light reflecting on the surface give the not satisfied result. In conclusion, the low cost 3D scanner performance is good enough in term of result produce compared to others expensive 3D scanner.


(8)

ABSTRAK

Dalam projek ini, satu pendekatan untuk menggunakan Microsoft Kinect sebagai pengimbas di mana fungsi ini adalah untuk mengimbas objek dan menukar ke format CAD. Objektif projek untuk mereka bentuk pengimbas 3D kos yang rendah dan mempunyai keupayaan mengubah semasa proses imbasan. Dalam proses pembangunan ia melibatkan proses reka bentuk yang carta morfologi, lukisan 3D dengan menggunakan SolidWork dan perisian ANSYS sebagai alat analisis FEA, pengaturcaraan, fabrikasi dan ujian. Terdapat dua saiz gear iaitu 40 dan 20 gigi, kedua-dua gear yang telah dicetak menggunakan pencetak 3D dengan bahan ABS. Lembaga Arduino UNO telah dikodkan dengan menggunakan perisian sumber terbuka. Hasil analisis antara nadi servo dan depth image objek, keputusan menunjukkan kelajuan 1650 μs servo sesuai untuk kelajuan proses pengimbasan untuk mendapatkan hasil yang terbaik. Untuk objek yang kompleks, analisis yang telah dilakukan dengan menggunakan cerek sebagai objek dan berdasarkan keputusan masalah lain yang telah dijumpai seperti lubang pada imej kedalaman permukaan menyebabkan daripada silau dan cahaya mencerminkan pada permukaan memberikan tidak hasil berpuas hati. Kesimpulannya prestasi kos rendah pengimbas 3D adalah cukup untuk menghasilkan berbanding dengan orang lain pengimbas 3D mahal.


(9)

vii

TABLES OF CONTENT

CHAPTER TOPIC PAGE

DECLARATION ii

DEDICATION iii

ACKNOWLEDGEMENT iv

ABSTRACT v

ABSTRAK vi

TABLE OF CONTENT vii

LIST OF FIGURES ix

LIST OF TABLES xii

LIST OF ABBREVIATIONS xiii

CHAPTER 1 INTRODUCTION

1.0 Project Background 1

1.1 Problem Statement 2

1.2 Objective 3

1.3 Scope of the Project 3

CHAPTER 2 LITERATURE REVEW

2.0 Introduction 4

2.1 Reverse Engineering 5 2.2 Type of 3D Scanner 5

2.3 Microsoft Kinect 8

2.4 Point Cloud 11


(10)

CHAPTER 3 METHODOLOGY

3.0 Introduction 13

3.1 Process Flow Chart 13

3.2 Concept Design 16

3.3 Morphological Chart 16

3.4 Detail Design 17

3.5 Manufacturing Process 18

3.6 Programing 19

3.7 Fabrication 20

CHAPTER 4 RESULT AND DISCCUSION

4.0 Design Concept 22

4.0.1 First Design 23 4.0.2 Second Design 24 4.0.3 Conclusion 25

4.1 Gear Design 25

4.1.1 Gear Transmission Analysis Using FEA

27

4.1.2 ABS Material (0.3,.04.,0.5 Inch) 28 4.1.3 PLA Material (0.3, 0.4, 0.5 Inch) 32

4.2 Prototype Setup 36

4.3 Result and Discussion 41

CHAPTER 5 CONCLUSION

5.0 Conclusion 46

5.1 Future Research 47

REFERENCES 50


(11)

ix LIST OF FIGURES

NO TITLE PAGE

2.1 Classification of optical 3D measuring main techniques 6 2.2 example of face scanning system based on multiple

image Photogrammetry

7

2.3 Concept of active 3D scanner with rotating base and translate stage

8

2.4 Microsoft Kinect for Xbox 360 9

2.5 Picture of infrared projector, RGB camera and Infrared camera inside the Microsoft Kinect

9

2.6 IR dots seen by the Kinect IR camera and the left side image show the close upof IR dot pattern

10

2.7 Result of depth image taken by the CMOS Kinect sensor

10

2.8 basic flow chart processes. 11

2.9 Show the procedure to improve the point cloud before form a CAD data

12

3.1 Process Flow chart for development process 15 3.2 Basic concepts of morphological chart. 16 3.3 Example of morphological chart. 17 3.4 Example of 3D drawing and the FEA analysis using 18

3.5 Kossel 3D printer 19

3.6 Product made from Kossel 3D printer 19

3.7 Arduino UNO 20

3.8 Arduino IDE, graphic user interface 21 4.1 Morphological chart of the rotating base 3D scanner 23

4.2 First concept design 24


(12)

4.4 4 Standard spur gear parameter 26 4.5 Spur gear equations in SolidWork 27 4.6 example of spur gear with 40 teeth. 27 4.7 Show the assembly part of gear with. 28

4.8 The value set in ANSYS. 29

4.9 Result of Von Mises Strees for ABS material 0.3 inch widths

30

4.10 Result of Elastic strain in ABS material 0.3 inch widths 30 4.11 Result of Von Mises Strees for ABS material 0.4 inch

widths

31

4.12 Result of Elastic strain in ABS material 0.4 inch widths 31 4.13 Result of Von Mises Strees for ABS material 0.5 inch

widths

32

4.14 Result of Elastic strain in ABS material 0.5 inch widths 32 4.15 The value set in ANSYS for PLA 34 4.16 Result of Von Mises Strees for PLA material 0.3 inch

widths

34

4.17 Result of Elastic strain in PLA material 0.3 inch widths 35 4.18 Result of Von Mises Strees for PLA material 0.4 inch

widths

35

4.19 Result of Elastic strain in PLA material 0.4 inch widths 36 4.20 Result of Von Mises Strees for PLA material 0.5 inch

widths

36

4.21 Result of Elastic strain in PLA material 0.6 inch widths 37 4.22 The spur gear is made using 3D printer. 38 4.23 the schematic drawing of the setup. 39 4.24 At the left side is the Prototype shield and right is

Ardunio Uno

40

4.25 The schemetic diagram for building the turntable cuircit. 40 4.26 The setup of the prototype of low cos 3D scanner. 41 4.27 the UI of Processing software. 41 4.28 Left picture shpw the depth image of the glass, right

image show the RGB colour of the glass.


(13)

xi 4.29 The red colur is the volume box of the Kinect. 43 4.30 The example Kinect capture the object inside the box. 43 4.31 The basic shape of the box use to scan (size 375mm x

120mm

44

4.32 The Orange line shows the measure tool used to measure the size

44

4.33 Graph of the length of the box against the servo motor pulse.

45

4.34 Graph of the height of the box against the servo motor pulse.

46

4.35 Left obejct show the reality object and the left side is the scan object.

47

4.36 The red area is the area which Kinect cannot scan the depth 47 4.37 The white coating spray use for 3D scanner 48


(14)

LIST OF TABLES

NO TITLE PAGE

4.1 Properties table of ABS. 29

4.2 Properties table of PLA 33

4.3 list of the device and part use in the low cost 3D scanner 39 4.4 Result of length vs servo moto pulse. 45 4.5 Result of height vs servo moto pulse 46


(15)

xiii LIST OF ABBREVIATIONS

CMOS Monochrome Complementary Metal

Oxide Semiconductor

IR Infrared

CAD Computer Aided Drawing

IDE integrated development environment

FEA Finite Element Analysis

ABS Acrylonitrile butadiene styrene


(16)

CHAPTER 1

INTRODUCTION

1.0 PROJECT BACKGROUND

3D scanner is the device that record the surface of the object, the other function is analysis the surface object and converts the data into three dimensional digital data. The collected data can be converted into digital form to construct a 3D model. This device mostly uses for new development product, gaming, bio medic and historical person. Even the price of this device is too expensive and most of the vendors offering affordable 3D scanner with better hardware and software. To be a good product in the global market the vendor need to compete in term of efficiency of resolution, speed and cost.

Now days, technology rules the device, without technology inside the device, the device become useless. In 3D scanner development currently product is too expensive until the price of the product can achieve until thousand dollars. Since the introduction of Microsoft Kinect use for playing game or as a low cost 3D sensor, the introduction of this sensor can provide the depth data of the object surface.


(17)

2 Kinect works by inferring body position in two-stage process, which is firstly, Kinect compute a depth map and secondly is inferring body position. The depth map is built by using monochrome complementary metal oxide semiconductor (CMOS) sensor and an Infrared (IR) -Pass filter and it generated by analyzing the distance between dots and an object. This data can be stored and can generate the 3D model in digital form by manipulating using computer programs.

1.1 PROBLEM STATEMENT

The problems are firstly, most of the current product of 3D scanner too expensive, the price for the device almost reaches thousand dollars for the software and the hardware. It will be the problem for the new or small company to develop new product, need to spend a lot of money to buy the high end computer and the high end technology. Moreover, for education purpose university, college or school, no need to spend much money for an expensive 3D scanner, because it uses as the educational purpose is to expose the student to know how the 3D scanner use and how to apply it. It is just enough to expose the student with the lowest cost 3D scanner.

Secondly, is about the high end technology use in modern 3D scanner. Most of the current product provides device with high technology to achieve the best output. But the problem is not most of the users know how to use it and just for who is an expert in scanning can use it. By redesigning and makes the new model which is more user friendly not just for industrial use, but also can use for educational and hobby.

Lastly, scanning process will take time to complete a full body scan, it is because of time needed to combine all picture to become one good picture before converting it into CAD format. This is because by design auto capture 360 degree rotation can reduce the time during scanning and patching.


(18)

1.2 OBJECTIVE

The objectives of this project are:

 To Design a Low cost active 3D scanner.

 To analyze the structure of the low cost 3D scanner using finite element analysis using SolidWork and Ansys.

 To fabricate the prototype of low cost 3D scanner.

1.3 SCOPE OF THE PROJECT

The Scope of this project is to design low cost active 3D scanner using used Microsoft Kinect as the sensor and the camera to capture the object surface and design the active rotating base. Other than that, Open source video rendering will be used to manipulate and generate the 3D model.

Other hand, SolidWork will be used as the CAD drawing and it will use to analyze the structure of the product using finite element analysis, this will test on the strength of the structure and use for the material selection.

Lastly, in this project, open source software such as Arduino IDE software to set the configuration for the Arduino board to control the rotating base which is powered by a servo motor and OpenNI driver where is driver for Kinect where it allow the computer access the Kinect and Processing software will be used as the main software to interact between Kinect and computer.


(19)

4

CHAPTER 2

LITERATURE REVIEW

2.1 INTRODUCTION

In the development of the product most of the technology used to obtain the best result of the product, rapid development of 3D sensing technology most of the technology used in now day development such as reverse engineering. 3D scanner or 3D scanning is one of the parts in reverse engineering, which is has been used to capture the depth image of the object to obtain the point cloud and convert the point cloud into.STL format. Most of the 3D scanner is used to scan complex object, for example, after doing a mockup of a certain product, for example car bumper, to obtain the dimension of the mockup, 3D scanner is used to obtain the dimension base on point cloud and convert it into CAD format. In other word 3D scanner can use a three dimensional measurement. It will help the engineer to obtain the dimension of the mockup and it will reduce the time of the job. To design the low cost 3D scanner Microsft Kinect will be used as the 3D sensing device and with some adjustment and modification needs change the connect as active 3D scanners. With the advance of sensing sensor in Kinect, it is able to capture the depth image to obtain the point cloud of the object.


(20)

2.2 REVERSE ENGINEERING

Reverse engineering is a process of obtaining geometric shape from discrete samples in order to create mathematical models when the CAD model does not exist. Huang et al. presented models and algorithms for 3D feature localization and quantitative comparison They developed fast and robust algorithm for comparison of two free-form surfaces. Kase et al. Presented local and global evaluation methods for shape errors of free-form surfaces These methods were applied to the evaluation of sheet metal formed by using numerical simulation data and coordinate measurement data. Sansoni and Docchio described in a very special and suggestive example of optical 3D acquisition, reverse engineering and rapid prototyping of a historic automobile. They demonstrated the ease of application of the optical system to the gauging and the reverse engineering of large surfaces, as automobile body press parts and full-size clays, with high accuracy and reduced processing time, for design and restyling applications. Huang and Menq proposed a novel approach to reliably reconstruct the geometric shape of an unorganized point cloud sampled from the boundary surface of a physical object. These techniques are still developing, in terms of hardware.

2.3 TYPE OF 3D SCANNER

3D scanner is the device to obtain the object information about the real world object and to collect the data of the object appearance such as color of the object. This device is the most useful for development of new product. Most of the technology will apply in the development process include in industrial design, reverse engineering and rapid prototyping, quality control and some for documentary of historical artifacts. In terms of reverse engineering is the process of extracting the design from an existing product and for the purpose to modify and improve the design for better than existing products (S. Baid, 2011). This technology will reduce the time to develop new projects. Each technology comes with different advantages and costs. Even that each technology will face with the problem, not all the 3D scanner is perfect. There are two types of 3D measuring optical methods which are


(21)

6 active and passive, figure 2.1 shows the classification of optical 3D measuring main techniques

Figure 2.1 Classification of optical 3D measuring main techniques (Pezzati, Lica Fontana, Raffaella 2008)


(22)

Passive method can be categorized as non-contact optical scanner which is can be categorized by the degree of the 3D scanner which is controlling the illumination (D. Lanman, G. Taubin, 2009). The Passive measurement methods only image data acquired by one or multiple cameras. To obtain the 3D data from the image, Photogrammetry, computer vision and image processing technique needed to process the 3D data. For example, in figure 2.2 usage of multiple image Photogrammetry used to obtain the 3D surface coordinate before create the point cloud of the surface.

Figure 2.2 example of face scanning system based on multiple image Photogrammetry, (V. Hull)

Moreover, for active 3D scanner, most of the scanner is an optical type which is non-contact, by active optical scanner it requires additional measures to obtain the point cloud data such as problematic subject. The benefit of active 3D scanner it can overcome the correspondence problem using controlled illumination, compare to non-contact

Passive method, it more sensitive to surface material properties. The example of the active 3D scanner as shown in figure 2.3 where the diagram show the concept of 3D slit scanner, single laser point and the camera had been used to scan laser spot across a surface of the object


(23)

8

Figure 2.3 Concept of active 3D scanner with rotating base and translate stage. (Lanman,Douglas Taubin, Gabriel, 2009)

2.4 MICROSOFT KINECT

Microsoft Kinect (figure 2.4) is a device used for gaming and it was designed to revolutionize the way people play games and for experience entertainment. Some of the game design needs to use human body language where Kinect is needed as the device to convert from the language to digital form. The Kinect sensor lets the computer directly sense the third dimension of the player and environment. Kinect device consist of sensing hardware such as depth sensor, a color camera and a four-microphone array (F. Joensuu, 2013). That provides full-body 3D motion capture, facial recognition and voice recognition capabilities as shown in figure 2.5. In the depth sensor it consists of IR projector combine with the IR camera, which is CMOS sensor.


(24)

Figure 2.4 Microsoft Kinect for Xbox 360

Figure 2.5 Picture of infrared projector, RGB camera and Infrared camera inside the Microsoft Kinect. ( W. Zeng, Z. Zhang, 2012)

The basic principle behind the Kinect related with depth sensor is from the emission of IR pattern and the simultaneous image capture of the image with CMOS camera that is fitted with IR-pass filter (M.R Andersen et al, 2012). The relative geometry between the IR projector and the IR camera has dotted pattern, if we can match a dot observed in an image with a dot in the projector pattern, we able to reconstruct it in 3D using triangulation (W. Zeng, Z. Zhang, 2012). From the projection of IR dot Kinect sensor able to construct a depth image, for an example as show in figure 2.6 and 2.7 where the IR dot seen by the Kinect IR camera and the Kinect sensor depth image will produce the depth image of the project.


(1)

CHAPTER 2

LITERATURE REVIEW

2.1 INTRODUCTION

In the development of the product most of the technology used to obtain the best result of the product, rapid development of 3D sensing technology most of the technology used in now day development such as reverse engineering. 3D scanner or 3D scanning is one of the parts in reverse engineering, which is has been used to capture the depth image of the object to obtain the point cloud and convert the point cloud into.STL format. Most of the 3D scanner is used to scan complex object, for example, after doing a mockup of a certain product, for example car bumper, to obtain the dimension of the mockup, 3D scanner is used to obtain the dimension base on point cloud and convert it into CAD format. In other word 3D scanner can use a three dimensional measurement. It will help the engineer to obtain the dimension of the mockup and it will reduce the time of the job. To design the low cost 3D scanner Microsft Kinect will be used as the 3D sensing device and with some adjustment and modification needs change the connect as active 3D scanners. With the advance of sensing sensor in Kinect, it is able to capture the depth image to obtain the point cloud of the object.


(2)

2.2 REVERSE ENGINEERING

Reverse engineering is a process of obtaining geometric shape from discrete samples in order to create mathematical models when the CAD model does not exist. Huang et al. presented models and algorithms for 3D feature localization and quantitative comparison They developed fast and robust algorithm for comparison of two free-form surfaces. Kase et al. Presented local and global evaluation methods for shape errors of free-form surfaces These methods were applied to the evaluation of sheet metal formed by using numerical simulation data and coordinate measurement data. Sansoni and Docchio described in a very special and suggestive example of optical 3D acquisition, reverse engineering and rapid prototyping of a historic automobile. They demonstrated the ease of application of the optical system to the gauging and the reverse engineering of large surfaces, as automobile body press parts and full-size clays, with high accuracy and reduced processing time, for design and restyling applications. Huang and Menq proposed a novel approach to reliably reconstruct the geometric shape of an unorganized point cloud sampled from the boundary surface of a physical object. These techniques are still developing, in terms of hardware.

2.3 TYPE OF 3D SCANNER

3D scanner is the device to obtain the object information about the real world object and to collect the data of the object appearance such as color of the object. This device is the most useful for development of new product. Most of the technology will apply in the development process include in industrial design, reverse engineering and rapid prototyping, quality control and some for documentary of historical artifacts. In terms of reverse engineering is the process of extracting the design from an existing product and for the purpose to modify and improve the design for better than existing products (S. Baid, 2011). This technology will reduce the time to develop new projects. Each technology comes with different advantages and costs. Even that each technology will face with the problem, not all the 3D scanner is perfect. There are two types of 3D measuring optical methods which are


(3)

active and passive, figure 2.1 shows the classification of optical 3D measuring main techniques

Figure 2.1 Classification of optical 3D measuring main techniques


(4)

Passive method can be categorized as non-contact optical scanner which is can be categorized by the degree of the 3D scanner which is controlling the illumination (D. Lanman, G. Taubin, 2009). The Passive measurement methods only image data acquired by one or multiple cameras. To obtain the 3D data from the image, Photogrammetry, computer vision and image processing technique needed to process the 3D data. For example, in figure 2.2 usage of multiple image Photogrammetry used to obtain the 3D surface coordinate before create the point cloud of the surface.

Figure 2.2 example of face scanning system based on multiple image

Photogrammetry, (V. Hull)

Moreover, for active 3D scanner, most of the scanner is an optical type which is non-contact, by active optical scanner it requires additional measures to obtain the point cloud data such as problematic subject. The benefit of active 3D scanner it can overcome the correspondence problem using controlled illumination, compare to non-contact

Passive method, it more sensitive to surface material properties. The example of the active 3D scanner as shown in figure 2.3 where the diagram show the concept of 3D slit scanner, single laser point and the camera had been used to scan laser spot across a surface of the object


(5)

Figure 2.3 Concept of active 3D scanner with rotating base and translate stage. (Lanman,Douglas Taubin, Gabriel, 2009)

2.4 MICROSOFT KINECT

Microsoft Kinect (figure 2.4) is a device used for gaming and it was designed to revolutionize the way people play games and for experience entertainment. Some of the game design needs to use human body language where Kinect is needed as the device to convert from the language to digital form. The Kinect sensor lets the computer directly sense the third dimension of the player and environment. Kinect device consist of sensing hardware such as depth sensor, a color camera and a four-microphone array (F. Joensuu, 2013). That provides full-body 3D motion capture, facial recognition and voice recognition capabilities as shown in figure 2.5. In the depth sensor it consists of IR projector combine with the IR camera, which is CMOS sensor.


(6)

Figure 2.4 Microsoft Kinect for Xbox 360

Figure 2.5 Picture of infrared projector, RGB camera and Infrared camera

inside the Microsoft Kinect. ( W. Zeng, Z. Zhang, 2012)

The basic principle behind the Kinect related with depth sensor is from the emission of IR pattern and the simultaneous image capture of the image with CMOS camera that is fitted with IR-pass filter (M.R Andersen et al, 2012). The relative geometry between the IR projector and the IR camera has dotted pattern, if we can match a dot observed in an image with a dot in the projector pattern, we able to reconstruct it in 3D using triangulation (W. Zeng, Z. Zhang, 2012). From the projection of IR dot Kinect sensor able to construct a depth image, for an example as show in figure 2.6 and 2.7 where the IR dot seen by the Kinect IR camera and the Kinect sensor depth image will produce the depth image of the project.