Professional Documents
Culture Documents
By
2016-GCUF-05690
Nida Azam
2016-GCUF-04756
IN
COMPUTER SCIENCE
I
DECLARATION
The work reported in this thesis was carried out by me under the supervision of
Mr. Rao Sohail Iqbal Asif Department of Computer Science GC University, Faisalabad
Pakistan.
I hereby declare that the title of documentation “CNC MACHINE FOR DRAWING ON
PAPER” and the content of project are the product of my own research and no part has been
copied from any publish source (except the references, standard mathematical or genetic models
/equations /formula/protocols etc.). I further declare that this work has not been submitted for
award of any other degree /diploma. The University may take action if the information provided is
found inaccurate at any stage.
II
CERTIFICATE BY THE PROJECT SUPERVISOR
We certify that the contents and form of thesis submitted by Musab bin
Abid, Registration No. 2016-GCUF-05690 and Nida Azam, Registration
No. 2016-GCUF-04756 has been found satisfactory and in accordance
with the prescribed format. We recommend it to be processed for the
evaluation by the External Examiner for the award of degree.
Internal Examiner
Name:
Signature:
External Examiner
Name:
Signature:
Chairperson
iii
III
ABSTRACT
1.3 Objectives 3
1.5 Advantages 4
1.6 Limitations 5
1.7 Applications 5
2 Market Survey 6
3.1 Arduino 10
3.4 CD-ROM 14
V
4 Design 15
6 Assembly drawing 25
7 Bill of Material 27
8 Cost Estimation 29
9 Sequence of Operations 34
10 Assembly 36
10.4.1 MakerCam.com 40
11.2 Observations 47
12 Result 48
12.1 Result 49
13.1 Conclusion 51
1 Working principle 4
2 Arduino Uno 10
3 CNC shield 12
5 CD-ROM carriage 14
7 Z-axis 16
9 Circuit diagram 18
10 Final setup 19
13 Cd-drive Y axis 3d 23
14 Cd-drive Y axis 2d 24
15 Detail Assembly 26
20 Grbl software 42
21 SMPS testing 44
22 MakerCam testing 45
23 Testing Grbl 46
24 CD-drive testing 46
25 Name result 49
26 Bismillah result 49
27 Paris Market 53
28 Shoaib Electronics 53
29 Madina Electronics 53
List of Tables
4 CD-ROM specifications 14
5 Project setup 14
6 Bill of materials 28
9 4-pin connectors 39
10 Observations table 47
Acknowledgement
2016-GCUF-05690
NIDA AZAM
2016-GCUF-04756
Chapter 1
Introduction
1
Introduction
The parts that had been short-circuited by giving false voltage are as follows:
1.3 : Objectives
1.4 : Working Principle
1.5 : Advantages
1.6 : Limitations
1.7 : Applications
Chapter 2
Market Survey
Market Survey
2.1: For Product
"CD-ROM CNC PLOTTER" is nothing but the principle project based on 3D printers
and mini CNC cutting machines as well. 3D printers or mini CNCs are available at
various prices in market.
There are number of CNC 3D printers/ mini CNC machines which cost above 40,000
Hence our "CD-ROM CNC PLOTTER" which is the principle project cost just
10000 - 12,000 approximately.
2.2: For various parts used
Different parts used in the project is selected depending upon its requirement and
its market pricing by visiting different places in Grant Road and online search as
well.
Serial In (RX)
Reset Button
In circuit Serial
Programmer
AT mega 328
Microcontrollers
Micro-controller ATmega328p
Operating voltage 5V
EEPROM 1 kb
Each axis has 3 jumpers that can be set to configure the micro stepping for the axis.
A stepper motor is used to achieve precise positioning via digital control. The motor
operates by accurately synchronizing with the pulse signal output from the controller
to the driver. Stepper motors, with their ability to produce high torque at a low speed
while minimizing vibration, arc ideal for applications requiring quick positioning
over a short distance.
Stepper motors enable accurate positioning with ease. They are used in various types
of equipment for accurate rotation angle and speed control using pulse signals.
Stepper motors generate high torque with a compact body and are ideal for quick
acceleration and response. Stepper motors also hold their position at stop, due to their
mechanical design. Stepper motor solutions consist of a driver
A4988 stepper drive Used in Pololu stepper driver boards and the G3D driver.
Identical and pin compatible to A4983, but also pull-up on MI and motor short circuit
protection. Full-, 1/2-, 1/4-, 1/8-, and 1/16-step modes.
3.4 : CD-ROM carriage:
CD-ROM consist of a stepper motor having lead screw which guides the carriage forward or
backward.
Parameters Specifications
Total size 15 x 9 cm
It consists of all parts i.e. CD-ROMs, wooden base, shield, SMPS, Electrical circuit that is
Arduino CNC stepper drive, etc.
Parameters Specification
Size 30 x 30 cm
Height 30 cm
Wood thickness 20 mm
Chapter 4
Design
Design
4.1 : X-Y axis:
CD-ROM carriage case is used for operating 3 axis i.e. X-Y-Z axis respectively. In
this project two carriages are used for X-Y axis just for giving the motions to the
plotting table, whereas the 3' carriage is used for plotter depth motions i.e. for Z axis.
Length:15 cm
Width:9 cm
Fig. 7: Z-axis
4.3 : Base setup:
1. Total height:10 cm
2. Width: 10 cm
3. Total number of wood planks: 2 (one for Horizontal y axis and one for vertical holding of Z-
axis)
4. Thickness of each wooden plank: 2 cm
4.4 : Circuit Diagram
Cost estimation is defined as the process of forecasting expenses that are incurred to
manufacture a product. These expenses take into account all expenditure involved
in designing and manufacturing with all the related service facilities such as
material handling, heat treatment and surface coating, as well as portion of general
administrative and selling costs.
Rs 11294
Total 55
8.2.2 Indirect cost:
= 11,294 + 1400
The first thing to do, that is often overlooked, is to remove the front panel on the drive
tray. To do this, force eject the drive tray by sticking a paperclip into the eject hole.
Once the tray is pulled out, the front panel should snap off by pulling the bottom of it
forward and then pushing it up. When that's done, then unscrew the bottom plate of
the drive and remove the metal drive casing as well as the plastic front panel.
The reason we want this specific part of the optical drive is because it offers a motor, track,
and housing that can mechanically provide a smooth backward and forward movement,
which is
deal for a CNC axis. While not used in this project, brush-fewer motors make great
motors for quadcopters.
It also required extend the stepper motor wires. Most stepper motors have a ribbon
cable that connects to the main board. Cut them off and solder four new wires to the
pin terminals. Color code is preferred to identify the path of each wire.
The drive cases are needed to be mount on the horizontal and vertical plane for
getting the axis motions. For this two of drive case carriage on the vertical plane foe
getting the motion for Y-Z axis in which Z-axis is for cutting or plotting depth. And
finally, one drive case on horizontal plane for getting the X-axis.
And all three drive cases are mounted on the wooden planks i.e. two drive cams on
vertical plank and one drive case on horizontal plank, respectively. And here we have
completed our hardware setup.
10.3 : Connecting the electronics:
The Arduino Uno is the device that will be controlling everything. It is essentially the
"brains" of the device. But by itself, it has issues controlling the stepper motors directly.
To resolve all Arduino/Stepper motor issues, "Stepper Motor Drivers" are required for
each motor. Then the stepper motors relate to stepper drivers by strip wires and jumper
wires connected via bread board for connection as well as connecting stepper drivers with
Arduino Uno with by using CNC shield.
Now it comes for power supply. Here power is supplied by SMPS (Switch Mode Power
Supply) in which 4-pin connector is used for giving power supply. For this yellow wire
(+12V) is short with the black wire (ground wire) to start the SMPS and to get the power
supply.
10.4.1 : MakerCam:
The Grbl Controller software requires G-Code converted images. If you would like to
create your own images, you will need to convert your image to SVG first. Then you
can go to the website makercam.com and upload it. Alternatively, the MakerCam
website also allows you to insert basic shapes by going to "Insert" and then selecting
your desired shape.
1. Using the Arrow tool (from top left toolbar), select your entire image.
2. Move it to the bottom left comer of the grid.
3. You can pan around the grid by selecting the Hand tool from the toolbar. Use it
to drag the image back to the center of the screen.
4. From the upper right corner of the page, change the measurements to cm.
5. Using the scale option from "Edit > Scaled Selected", scale the object down and
move it so that it fits within the single square that is in the comer of the grid.
6. With the image still selected, go to "Cam > Follow Path Operations". Change
the target depth to -1, the safety height to 1 and the step down to 0.1 and then
click OK.
7. Then go to "Cam > Calculate Selected" to calculate the path.
8. Lastly, go to "Cam > Export G-code" to save the G-Code of your image.
10.4.2 : Grbl software:
CNC machine runs on a programming language called as "G-codes". The MakerCam itself
converts respective shape into G-codes but Arduino has a difficult time in interpreting G-
codes. Thus G-code interpreter program is essential called as Grbl.
1. Download the Grbl Hex file for your specific version of Arduino (We used version 0.8c
for my Atmega328 Arduino Uno)
2. Download the X-Loader software.
3. Connect your Arduino to your PC.
4. Using the X-loader software, select the Grbl Hex file you downloaded, select your
Arduino from the dropdown menu, and select the COM port that the Arduino is connected
to.
5. Click "Upload" to upload the Grbl software to your Arduino.
Chapter 11
Testing and Observation
Testing and Observations
The permissible voltage for Arduino Uno is 12V, hence there must be constant
output as 12 V otherwise the whole circuit will be burnt down.
For doing this first of all short the yellow wire (+12V) with the black wire (ground
wire) to start the smps and to get the constant 12V power supply as well.
11.1.2: Testing MakerCam.com:
For using MakerCam internet should be present as it is an online open source software.
First of all, a geometrical shape has to be select e.g. Star shape has selected.
Select whole shape and select scale and put 10. Now drag the image to the bottom left
origin of axis and select Follow Path Operations. Finally select calculate the path for giving
depths and export the image in G-codes.
11.1.3 : Testing of Grbl software:
Testing of Grbl software consists of selecting the suitable scale for motion range
based on available motion range of cd-drive. And it involves in checking of each axis
individually one by one for finding any fault in it.
11.2: Observations:
Following is the observation table for shapes like square and star:
Time
1. Square 3 2 5
3. Name 3 4 7
4. Bismillah 5 5 10
In above table Star shape is more time consuming as compared to square as it has more
dimensions than that of square.
Chapter 12
Result
12.1: Result:
By the integrating hardware and software here is the combined result of this project i.e.
plotting name and shapes.
Following results are the shapes plotted by "CD-ROM CNC MACHINE":
13.1 : Conclusion:
In modern CNC systems, end-to-end component design are highly automated using
computer aided design (CAD) and computer-aided manufacturing (CAM)
programs. The programs produce a computer file that is interpreted to extract the
commands needed to operate a particular machine by use of a post processor, and then
loaded into the CNC machines for production. Since any particular component might
require the use of a number of different tools - drills. saws, etc.
With the increasing demand for small scale high precision parts in various industries,
the market for small scale machine tools has grown substantially. Using small
machine tools to fabricate small scale parts can provide both flexibility and
efficiency in manufacturing approaches and reduce capital cost, which is beneficial
for small business owners. In this project, a small scale three axis "CNC
PLOTTER" is designed and analyzed under very limited budget.
1. Shoaib Electronics:
2. MADINA Technology: