Mini CNC Plotter 2017 18 PDF
Mini CNC Plotter 2017 18 PDF
PRESENTED BY
2017-18
VPMP POLYTECHNIC
GANDHINAGAR
VPMP POLYTECHNIC
GANDHINAGAR
CERTIFICATE
This is to certify that work embodied in this report entitled “MINI CNC PLOTTER-ARDUINO
BASED” was carried out by THAKKAR MAN S. (156540319117), SHAH CHAHIL S.
(156540319106), THACKER BRIJESH S. (156540319115), THAKOR VISHAL R. (156540319119)
and PATEL MAYANK D. (15654031079). At V.P.M.P. POLYTECHNIC for partial fulfillment of
DIPLOMA MECHANICAL ENGINEERING to be awarded by GUJARAT TECHNOLOGICAL
UNIVERSITY. This work has been carried out under by supervision and is to my specification.
DATE:
PLACE:
(LME) (H.O.D.)
ACKNOWLEDGMENT
It has been a great privilege to work, right from the conceptualization of the topic of
the report work of this project, under the guidance of my respected guide Mr. S.
B.PATEL , D. P. PATEL, Lecturer in Mecanical Engineering Department.
Mr. D B PATEL, lecturer in EC Department from this college also guide us in this
project
We fill very much elevated in preparing the project report on MINI CNC PLOTTER
- ARDUINO. Despite our best efforts it is possible that some errors and mistakes may
have gone unnoticed. We shall be great to the faculty who will kindly bring these
mistakes to our notice. Suggestions from the faculties are most welcomed.
We would also like to thank the Head of Department MR. S. B. THAKKER & staff
Members of Mechanical Engineering Department, for their support during the work
schedule.
Finally & most importantly, we would like to thank our friends and families for their
continuous support throughout all our endeavors.
THAKKAR MAN S. (156540319117)
SHAH CHAHIL S. (156540319106)
THACKER BRIJESH S. (156540319115)
THAKOR VISHAL R. (156540319119)
PATEL MAYANK D. (156540319079)
[III]
MINI CNC PLOTTER 2018
Table of Contents
CERTIFICATE .................................................................................................................................. 2
ACKNOWLEDGMENT................................................................................................................. III
Table of Figure ................................................................................................................................VI
ABSTRACT .................................................................................................................................. VII
CHAPTER 1: INTRODUCTION ..................................................................................................... 1
1.1 Introduction about Arduino Uno ...................................................................................... 2
1.4 Introduction about Mini Servo Motor ..................................................................................... 4
1.5 Introduction about Stepper Motors ......................................................................................... 4
1.6 Introduction about Preparatory Function ................................................................................ 5
CHAPTER 2: Project planning. ........................................................................................................ 6
Step 1: Disassembly DVD/CD Drives .......................................................................................... 6
Step 2: X and Y axis ...................................................................................................................... 6
Step 3: The Z axis ......................................................................................................................... 7
Step 4: Paper base ......................................................................................................................... 8
Step 5: The Circuit ........................................................................................................................ 9
Step 6: Testing X and Y axis movement ....................................................................................... 9
Step 7: Uploading the CNC code .................................................................................................. 9
Step 8: The GCTRL program ...................................................................................................... 10
Step 9: Make your own G code file ............................................................................................ 10
CHAPTER 3 METHODOLOGY ................................................................................................... 11
3.1 DESIGN OF CNC MACHINE ............................................................................................. 11
3.2 PROBLEM DEFINITION .................................................................................................... 11
3.3 WORKING ........................................................................................................................... 12
3.4 Main parts of CNC plotter..................................................................................................... 12
3.5 BLOCK DIAGRAM OF PROCESS ..................................................................................... 12
CHAPTER 4 : Inkscape 0.48.5 ....................................................................................................... 14
4.1 Creating G-Code File Using Inkscape .................................................................................. 14
4.2 Processing ............................................................................................................................. 15
CHAPTER 5: Advantages, Disadvantages & Application .............................................................. 16
5.1 CNC Machine Advantages .................................................................................................... 16
5.2 CNC Machine Disadvantages ............................................................................................... 16
[IV]
MINI CNC PLOTTER 2018
[V]
MINI CNC PLOTTER 2018
Table of Figure
Figure 1: assembly of project ............................................................................................................ 1
Figure 2: Circuit ................................................................................................................................ 2
Figure 3: Arduino UNO .................................................................................................................... 3
Figure 4: L293D motor drive ............................................................................................................ 3
Figure 5 Servo Motor ........................................................................................................................ 4
Figure 6 stepper motor ...................................................................................................................... 5
Figure 7 disassembly ......................................................................................................................... 6
Figure 8-Y axis.................................................................................................................................. 7
Figure 9-X axis ................................................................................................................................. 7
Figure 11-paper base ......................................................................................................................... 8
Figure 10-Z axis ................................................................................................................................ 8
Figure 12-circuit ................................................................................................................................ 9
Figure 13:DESIGN OF CNC CACHINE ....................................................................................... 11
Figure 14:main parts of CNC plotter .............................................................................................. 12
Figure 15:BLOCK DIAGRAM....................................................................................................... 13
Figure 16:inkscape .......................................................................................................................... 14
Figure 17: drawing of car ................................................................................................................ 14
Figure 18:outline of car ................................................................................................................... 15
Figure 19: processing ...................................................................................................................... 15
[VI]
MINI CNC PLOTTER 2018
VPMP POLYTECHNIC
GANDHINAGAR
ABSTRACT
In this project I will show you how to easily build your own low-cost Arduino
Mini CNC Plotter For X and Y axis we will use stepper motors and rails from two
DVD / CD ROMs! Printing area will be max 4x4cm.Because it works with serial
communication you can also use a Bluetooth module (like HC-06) to print your stuff
wirelessly through your computer Bluetooth connection! I have used the code from
this site, so I need to thank the Maker blog for sharing this to us.
With the advancement of technology, demand for Computer Numerical Control
(CNC) plotter machines in Educational Institutions and Laboratories is rapidly rising.
Low cost manufacture of Printed Circuit Board (PCB) has become a basic need in
electronics laboratories, for mechanical engineering students and for electronics
hobbyists. This paper will present an affordable model of a CNC plotter machine
which is able to draw a circuit layout on PCB or any other solid surface using simple
algorithm and available components. At firs the user needs to convert any image file
or text file into G code using Inks pace software and then feed it to the machine using
Processing software. Arduino Uno with an ATmega328P microcontroller is used as
the control device for this project. The microcontroller converts G-code into a set of
machine language instruction to be sent to the motor driver of the CNC plotter
Key words
Computer Numerical Control (CNC), Printed Circuit Board (PCB), G-code, Microcontroller Unit
[VII]
MINI CNC PLOTTER 2018
CHAPTER 1: INTRODUCTION
Cost of the project and increase Reliability and Flexibility. In we have replace
pen with mechanical tools drilling, grinding, machining etc. This will be used for soft
material cutting or machining, laser cutting machine tool is also worked on this setup.
We have reduced the cost, in the setup of mini CNC plotter machine.
Mini CNC plotter machine is described as it is based on Arduino controller and
CNC shield. CNC is computer numerical control machine. G codes are preparatory
Function. G codes are pre-defining Function Associated with the movement on
machine axes. In CNC Plotter Machine only G codes are used. G codes are giving the
Direction to move the pen in X, Y, Z directions. Pen can be changed by tools of
drilling, laser cutting tool, milling it can be worked, if it is made in large size. The aim
of over is to make a mini CNC plotter machine which is capable to draw difficult
design in paper or surface of metal, To cut it with a great accuracy. We have used 3
stepper motors with lead screw in Cartesian coordinate X, Y, Z directions. Stepper
motor is convert digital pulse into lead screw rotations. Stepper drivers are used to
give command to the system. The main aim is to fabricate a MINI CNC plotter
Machine to draw an object with using G codes. We also work on to reduced.
[1]
MINI CNC PLOTTER 2018
Figure 2: Circuit
Arduino will be define as, it is received the command or data from the computer and
with the help of USB cable. It is mounted on CNC shield, it will be transfer data from
Arduino to CNC shield with using stepper driver. Arduino UNO is a microcontroller
board, it contains everything needed to support the microcontroller, simply connect it
to a computer with a USB cable and a power source. It controls the position of stepper
motor with help of a program [2]. It is open source platform based on easy to use
hardware and software. T have digital and analog input/output pins which can
interface into various expansion board and other circuits and microcontroller with
complementary components that helps in programming and incorporation into other
circuits[3]. Current supplied 5 volts with USB cable.
[2]
MINI CNC PLOTTER 2018
L293D is a typical motor driver or motor driver LC which allow DC motor to drive on
either direction L293D is a 16-pin LC which can control a set of two DC motor
simultareous inn any direction .it means that you can control two DC motor with a
single L293D
[3]
MINI CNC PLOTTER 2018
A servo motor is an entirely different story the function of the servo is to receive a
control signal that represents a desired output position of the servo shift and apply
power to its Dc motor until its shaft turns to that position
Stepper can be converted digital pulse in to a movement of pen with respect to axis X,
Y, Z direction. A stepper motor is a brushless motor that divides a full rotation into a
number of equal steps, the stepper motor is known by its property to convert a number
of impulses into a defined increment in the shaft position. Each pulses move the shaft
through a fixed angle. We have used 3 stepper motors with lead screw. Motor output
will be in the form of rotation of lead screw
[4]
MINI CNC PLOTTER 2018
This is presented by “G”. G codes are pre-defining Function associated with the
Movement of Machine Axis [2]. It has Two Digits, Ex- G00, G81, and G90. It is
possible to include more than one G address in one block. Provided these Functions
are not mutually Exclusive [3]. Ex- G02 and G03 are together in one block are not
Permissible. G function are define the path to be followed a complete design. ExG00-
positioning.
G01- Linear interpolation
G02- Clockwise Circular Interpolation
G03- Counter clockwise Circular Interpolation
G04- Dwell
Problem definition
The available Arduino controlled CNC machines are having only 2 axis movement.
The structure is weak and can machine foam only
[5]
MINI CNC PLOTTER 2018
Figure 7 disassembly
Image Notes 1.
1. 1st Stepper motor with rails
2. 2nd stepper motor with rails
3. This metal will be our CNC "base"
4. We will cut this plastic to attach on it later one of the stepper-rails
[6]
MINI CNC PLOTTER 2018
[7]
MINI CNC PLOTTER 2018
[8]
MINI CNC PLOTTER 2018
Figure 12-circuit
[9]
MINI CNC PLOTTER 2018
Open the Inkscape, go to File menu and click "Document Properties". See the 1st image above and
make the changes, make sure to change first to "cm". Now close this window. We will use the area
within 4 to 8 cm. See the 2nd image above.
How to print texts Put text, change font to Times New Roman and size to 22. Now click on cursor
icon and center the text like the 3rd image above. Select Path from menu and "Object to Path".
How to print images This is more difficult than texts. Images must have a transparent background.
Drag and drop the arduino logo image (download it from files) in Inkscape. Click ok to the next
window. Now you have to re-size the image to fit our printing area, see the 4th image above. Click
Path from menu and "Trace Bitmap". Make changes as the 5th image above. Click ok and close
the window. Now, move the gray scale image, and delete the color one behind it. Move the grey
image to the correct place again and click from Path menu "Object to path". The 6th image above
show how to delete image outline.
Export as g code
Final, go to file menu, click save as and select g code. Click ok on next window. That's it! Ready
to go! Use the gctrl.pde app to print the g code file on your new Arduino CNC Plotter!
[10]
MINI CNC PLOTTER 2018
CHAPTER 3 METHODOLOGY
We have supply the current in Arduino with USB DATA cable to transfer Data from Computer to
Arduino Board [1], Here we have used 3 Stepper Drivers to supply the G codes in Sequence to the
stepper motors. Arduino will be mounted on CNC shield. CNC shield will be distributing the
Current in the command of Arduino. CNC shield will be converting the command of G codes in
digital pulse by Stepper motor. In X direction Stepper motor will be move left and Right ,Y
direction stepper motor will be move in front and back direction, Z direction Stepper motor will be
move in Up and down[2]. We have made much difficult design via using this machine. The
accuracy of this machines result is very high. So we have used in industry to reduce the cost of
design printing and maintain accuracy level. Drafting and Scaling of CNC Plotter machine is very
precious.
[11]
MINI CNC PLOTTER 2018
3.3 WORKING
We have supply the current in Arduino with USB DATA cable to transfer Data from Computer to
Arduino Board [1], Here we have used 3 Stepper Drivers to supply the G codes in Sequence to the
stepper motors. Arduino will be mounted on CNC shield. CNC shield will be distributing the
Current in the command of Arduino. CNC shield will be converting the command of G codes in
digital pulse by Stepper motor. In X direction Stepper motor will be move left and Right ,Y
direction stepper motor will be move in front and back direction, Z direction Stepper motor will be
move in Up and down[2]. We have make many difficult design via using this machine. The
accuracy of these machines results is very high. So we have used in industry to reduce the cost of
design printing and maintain accuracy level. Drafting and Scaling of CNC Plotter machine is very
precious.
[12]
MINI CNC PLOTTER 2018
[13]
MINI CNC PLOTTER 2018
Figure 16:inkscape
[14]
MINI CNC PLOTTER 2018
4.2 Processing
Processing is open source programming language software which is used for
electronic drawings. GTCRL processing program is used to send G-code file from
user interface to CNC plotter. The Fig. 6 shows the user interface of processing 2.2.1
software after running GTCRL program. The port of Arduino Uno is selected by
pressing „P‟ button on keyboard hence G button is used to upload our desired G-code file.
Immediately CNC machine will start sketching selected G-code file. Sketching can be stopped by
pressing X button.
[15]
MINI CNC PLOTTER 2018
1. CNC machines can be used continuously 24×7 throughout the year and only need
to be switched off for occasional maintenance.
2. CNC machines are programmed with a design which can then be manufactured
hundreds or even thousands of times. Each manufactured product will be exactly the
same.
3. Less skilled/trained people can operate CNC machines unlike manual lathes /
milling machines etc. which need skilled engineers.
4. CNC machines can be updated by improving the software used to drive the
machines
5. Training for correct use of CNC machines is available through the use of ‘virtual
software’. This software is like a computer game that allows the operator to practice
using the CNC machine on the screen of a computer.
6. Modern design software allows the designer to simulate the manufacture of his/her
idea. There is no need to make a prototype or a model. This saves time and money.
7. One person can supervise many CNC machines as once they are programmed they
can usually be left to work by themselves. Only the cutting tools need replacement
occasionally.
[16]
MINI CNC PLOTTER 2018
5.3 Application
[17]
MINI CNC PLOTTER 2018
6. Fibber 1 360
8. Bolt 24 80
9. scratch paper 1 12
11. Rounder 2 35
14. Marker 1 10
15. Pen 2 15
Total 52 2388
[18]
MINI CNC PLOTTER 2018
CONCLUSION
In this paper we have presented the concept of a low cost three-axis mini CNC plotter. The
existing CNC machines are of high cost, difficult to maintain and requires highly skilled operators.
Our CNC plotter overcomes these problems. It is of low cost and easy to control and
there is no need of highly skilled operators. It can be used for long hours at a stretch
which is not possible in existing ones. It is hoped to extend this work for future
development.
[19]
MINI CNC PLOTTER 2018
FUTURE SCOPE
The pen of the machine can be replaced by a laser to make it work like a laser
engraving or cutting machine. Engraving machine can be used on wood. The pen can
also be replaced with a powerful drill so that it can be used for both milling and
drilling purposes. The servo can be replaced with a stepper motor and the pen with a
3-D pen to make it a 3-D printer which can print objects with dimensions. By
extrapolation of the axes, the working area of the machine can be extended keeping
the algorithm unaltered
[20]
MINI CNC PLOTTER 2018
REFERENCES
[1] V.K. Pabolu and K.N.H. Shrinivas, "Design and implementation of a three
-dimensional CNC machine", Int. J. Computer Science and Engineering, vol. 2,pp.
2567-2570 2010
.[2] I. Nae and T. Andrei, "Designing and building a CNC router using stepper
motors", Serial Technical, vo. LXII, pp. 55-62, 2010
.[3] I. Pahole, L. Rataj, M. Ficko, S. Klancnik, S.Brezovnik, M.Brezocnik, and J.
Balic, "Construction and evaluation of low cost table CNC milling machine",
Scientific Bulletin, Series C: Mehcanics, Tribology, MachineManufacturing
Technology, vol. XXIII, pp. 1-7, 2009.
YOU TUBE
https://youtu.be/qavxmmslwfw
DOWNLOAD ALL THE FILE FROM THIS LINK
https://drive .google.com/open?id=ob3qwro2bgnw8ykxtvgvfnfbfmgc
[21]