Group Members:
MUHAMMAD ZAEEM ABBAS
(090404)
SADDAM JAVED
(090407)
UBADAH MEHTAB
(090450)
(090456)
AMMAR IKRAM
(090474)
BE MECHATRONICS (2009-2013)
Project Supervisor
Liaquat Ali Khan
Assistant Professor
ii
Submitted By:
MUHAMMAD ZAEEM ABBAS
(090404)
SADDAM JAVED
(090407)
UBADAH MEHTAB
(090450)
(090456)
AMMAR IKRAM
(090474)
Project Supervisor
____________________________
Assistant Professor Liaquat Ali Khan
iii
ACKNOWLEDGEMENT
We express our humblest gratitude to Allah Almighty who has given us the
direction to accomplish our goals. The love and support provided by our parents
and family has been a source of strength and comfort through our work. We are
thankful to Assistant Professor Liaquat Ali Khan for providing us with valuable
material and also guiding us on this project. He has been indeed a source of
inspiration, support and encouragement for us.
iv
ABSTRACT
The aim of our project is to design and fabricate a 3 axis CNC machine for
engraving, drilling and particularly routing PCB (Printed Circuit Boards).
Keeping in mind the requirements of a modern CNC router micro steeping and
frictionless linear guide mechanism is integrated into the machine to ensure
optimum engraving results without compromising on the speed of operation.
List of figures
vii
List of Tables
vii
Nomenclature
BLDC
CAD
CAM
DC
Direct Current
mm
millimeter (10-3)
NC
Numerical Control
PCB
PM
Permanent Magnet
PMDC
rpm
VR
Variable Reluctance
Micron (10-6)
viii
Table of Contents:
Chapter 1: Introduction
1.1 Background
1.2 Objectives
1.4 Improvements
1.5 Methodology
Chapter 2: Description
10
11
11
12
13
15
2.5.6 Actuators
16
2.5.6.1 DC Motor
16
18
22
ix
23
2.8 Coordinates
24
24
25
2.9 Interfacing
26
26
26
29
29
29
31
32
35
Chapter 4: Design
36
36
37
40
41
42
43
5.1 Conclusions
43
5.2 Recommendations
43
Appendix A
Appendix B
Bibliography
xi
Chapter # 1: Introduction
1.1 Background:
Engraving is the process in which a design is inscribed on to a hard, usually flat
surface, by cutting grooves into that surface. Historically, it was an important
method of producing images on paper.
In manufacturing of PCB, etching is a very important old process and it also takes
very long time. This machine is a substitution to the old manual process. In the
era of rapid technological development PCBs are very important components as
they are attached to every electronic device as well as mechanical too, to make
them work efficiently.
An example image of a PCB engraving and drilling machine is shown below:
INTRODUCTION
Etching is a standard process for making PCBs but it has several drawbacks:
High production cost
Lengthy process
Accuracy and effectiveness problems
Human errors
Corrosive action of FeCl3 (etching chemical liquid)
On the other hand this automatic engraving machine is a substitute to the manual
process and one can reduce production cost in terms of labor cost and time cost.
1.2 Objectives
Our main goal is the improvement of a pre-existing CNC machine made by a
previous batch (2006-2010) of Department of Mechatronics Engineering.
a non-corrosion resistant material. PCBs are poorly designed with lots of jumper
wires used.
In a nutshell the problems found were:
This CNC machine is capable of engraving on wood but with a very low
accuracy due to flaws in mechanical design.
Some pictures of the pre-existing CNC machine are shown on next page
emphasizing
on
the
problems
discussed
above:
INTRODUCTION
Improving the accuracy and precision by improving the pitch of lead screws
Generating CAM file from the design software and interpretation into coordinates
INTRODUCTION
To improve the accuracy of the machine by employing low pitch ball screw
mechanism.
To replace old actuators with more application specific ones for high speed
engraving.
1.5 Methodology:
Research and consultation with lectures and course work.
Brainstorming of ideas for electrical, mechanical and programming.
Design of mechanisms.
Implementation of efficient power supply.
Design of efficient CNC Control Unit
Fabrication of mechanical components like lead screws etc.
Chapter # 2: Description
component
design
is
highly
automated
using computer-aided
Many different types of CNC machines are used in industry such as:
Machining Centers
Turning Centers
Mills
Lathes
Surface grinders
DESCRIPTION
Drilling Machines
High Repeatability and Precision e.g. PCB routing and Aircraft parts etc.
DESCRIPTION
10
2.
The first type i.e. stationary gantry with mobile bed is not preferred as far as
industrial applications are concerned. This type of design works well for small
applications i.e. for smaller workspaces but with the increase in size of the
horizontal axis the efficiency decreases. The main advantage of this type of
design is that the weight of the gantry does not affect the performance of the
machine.
The second type is mostly preferred for industrial applications since it is not
limited to smaller workspaces but it requires an optimal gantry design. The
design and material selection of the gantry plays a crucial role in the efficiency
of machine. The gantry must be light so that actuators and the drive circuits
could perform well and within the torque limits.
Our design is based on the second type. By doing proper analysis of the forces,
bending moment, torques and material selection we can reduce the stress and
damage to the components like bearing, lead screws motors and other
components that are subjected to forces. This analysis will enable us to assess
the durability and longevity of the machine.
11
DESCRIPTION
These rolling elements are actually ball or roller bearings that are positioned
between rail and block. These rolling elements are advantageous because it
reduces coefficient of friction by converting sliding friction into rolling
thereby providing high positional accuracy, long lifetime, high speed motion,
equal loading in all directions, easy installation and easy lubrication.
12
13
DESCRIPTION
Advantages:
Extends the life span of the system on which it is used due to lack of
sliding friction between nut and screw.
14
Disadvantages:
Due to very less internal friction ball screws can be back-driven due to
low internal friction especially in hand fed systems, but in our system
that is not the case.
Lead: L = 5mm
Pitch: P = 5mm
15
DESCRIPTION
2.5.6 Actuators:
Two main types of actuators used are the Brushed DC motors and stepper
motors. The cutting tool mounted on the spindle is driven by a DC motor.
While the movement along the three axes is controlled by stepper motors.
2.5.6.1
DC Motor:
Characteristics
Permanent
Shunt
Series
Compound
Magnet
Cost
Low
Moderate
Moderate
High
Loss of
Worst
None
None
None
Torque vs.
Good at low
Consistent
Great at
Best at low
Speed
speed but
at low speed
low speed
speed
Magnetism
less at high
speed
Safety (Motor
No chance
Runaway)
Speed Control
Excellent
High
Hig
Chance
h Chance
Excellent
Poor
Low chance
Great
16
17
DESCRIPTION
2.
3.
4.
Unipolar
2.
Bipolar
18
A stepper motor drivers can be used to energize the transistors in correct order,
and this ease of operation makes unipolar stepper motors ideal to use. It is the
most inexpensive way to get precise angular movements. A six lead unipolar
stepper motor can also be driven using a bipolar driver circuit. In this
configuration, one of the windings per phase remains useless as current never
flows through it.
19
DESCRIPTION
2.
Half Step Drive: Each step of a full step drive is divided into two steps.
This means that a 100-step motor having a resolution of 1.8, will now
have a resolution of 200 steps with a resolution of 0.9.
3.
Micro Step Drive: Micro stepping divides motor's steps up to 256 times.
It improves smoothness in low speed and minimizes resonance effects in
low speed but in micro stepping around 30% less torque is produced than
two phase full stepping. The primary goal of micro stepping is to make
the motor to run as smooth as possible and we have the same
requirements for our 3 axes stepper motors.
2.
Pull-in Torque: Maximum Torque at which a motor can start, stop and
reverse without losing steps.
3.
4.
Detent Torque: The maximum torque that can be applied to the shaft of
non-energized motor.
5.
6.
20
21
DESCRIPTION
Allows import of DXF, BMP, JPG, and HPGL files through LazyCam
Mach3 is the most widely used software. Other CNC related software are
KCam, EMC2, TurboCNC, Flashcut, MasterCAM, MeshCAM, BobCADCAM etc.
22
2.8 Coordinates:
Coordinates are series of numerical positions according to which the required
pattern or contour from the isolation milling file (*.plt) or DXF file is
engraved. While working with CNCs we come across two types of coordinate
systems:
23
DESCRIPTION
The main advantage of using this coordinate system is the accuracy because
every time when the tool moves to its reference the position errors that are
generated overtime will be nullified. The main disadvantage is that large
amount of time will be consumed in the engraving process.
24
2.9 Interfacing:
There are two methods of interfacing or data communication:
science, serial
communication is
the
and
most computer
networks,
makes
where
parallel
the
cost
communication
25
DESCRIPTION
Data pins:
The data pins are used to send data in the form of bytes to the machine in such
a manner that each pin is designated one bit of the data. Pins 2 up to 9 are Data
pins.
Status Pins:
These pins sense signals from an external machine. Mostly these pins sense
the outcome of and external switch or read pulses of encoders. In above figure
status pins are 10 up to 15.
Control pins:
Control pins are used to provide control signals for. In above figure 1, 14, 16
and 17 are control pins.
Ground Pins:
In figure ground pins are from 18 to 25. These provide proper ground to the
machine. Without proper grounding, the machine may not work properly or
even get damaged.
The choice of parallel links over serial links is due to these factors:
Speed: The speed of a parallel data link equals to the number of bits sent
multiplied by the bit rate.
Cable length: Interference between the lines worsens with the length of
cable. This places an upper limit on the length of a parallel connection
cable. This limit is usually shorter than that of a serial connection.
26
27
MATHEMATICAL MODELING
AND CALCULATIONS
=
+ = net ------------------------------------------------------ (1)
V Input = + ( )
= ( + )
=
(+)
------------------------------------------------------------ (2)
28
+ = m sin()----------------------------------------------- (4)
(+)
Taking Laplace
4.5
= 2 (2 ) = 2
M = 0.32 kg
R = 0.0179 m
= 0.318 (0.0179)2 (6.28)2 = 4.01 103
Fc = 9.81 N
b = 1.56 N/s
29
MATHEMATICAL MODELING
AND CALCULATIONS
So,
() = 0.17 0.209 (0.64) + 0.034 (0.389)
RPM = 628.3
Input Voltage = 12 V
Current = 0.8 A
Input Power = IV = 12 0.8
PInput = 9.6 W
Efficiency = 80%
POutput = 80 (
96
100
) W = 7.68 W
P required = required
required Required Torque for routing PCB (Copper + Bakelite
or Fiber)
required = 0.012 Nm
= 628.3
30
P required = 7.54 W
P required < P Output
Motor can be used.
RPM = 6000
= 628.3
tm = K Im ---------------------------------------------------------------- (1)
E = k m ---------------------------------------------------------------- (2)
K=
12
628.3
= 0.019 V/s
G=1
Ro = G Ed / Im = 15 Ohms
31
MATHEMATICAL MODELING
AND CALCULATIONS
+K
Ed / Ro ------------- (7)
J = 9.54 x 10-5 Nm
FC = 0.02 (2000 RPM)
B= FC/ = 0.02/628.3 = L max / Imax = 0.012 / 0.8 = 0.015
, = Static Gain = 17
, = Disturbance Sensitivity = -6.6 x 104
, = Time Constant = 1.28 seconds
32
9.54 105
3.18 105
= 3 seconds
Complimentary solution is
mc =
200
(1.28 +1)
mc = 200
m (t) = A e-0.78t +200
Initial conditions at m = 0 and t=0
m = 0
0 = A +200
A = -200
So,
m (t) = 200 (1 e-0.78t)
33
MATHEMATICAL MODELING
AND CALCULATIONS
2
360
) = 0.0254
34
Chapter # 4: Design
4.2
Mechanical Drawings:
37
DESIGN
38
39
DESIGN
40
41
DESIGN
42
5.1 Conclusion:
Working in this project helped us to explore the vast field of industrial
automation and particularly CNC machines. We started with a machine
capable only of point to point motion with many drawbacks in mechanical
design as well as in electronic design. We searched for, observed and
compared the professional CNC machines with the one we currently had.
Along with this we consulted many books on CNC machines.
After making the required improvements the machine is in a position to mill
complex contours on PCB, soft wood and soft metals with considerable
accuracy and speed. Achieving this primary goal is the result of improvements
in both electrical and mechanical design. Exploring new software with better
capabilities also helped us in achieving this goal. The workspace and job
clamping system is also improved.
5.2 Recommendations:
Appendix A
List of G-codes:
Appendix B
List of M-codes:
M02 End of Program
M03 Spindle on Clockwise, Laser, Flame, Power ON
M04 Spindle on Counter Clockwise
M05 Spindle Stop, Laser, Flame, Power OFF
M06 Tool Change
M08 Coolant On
M09 Coolant Off
M10 Reserved for tool height offset
M13 Spindle On, Coolant On
M30 End of Program when macros are used
M91 Readout Display Incremental
M92 Readout Display Absolute
M97 Go to or jump to line number
M98 Jump to macro or subroutine
M99 Return from macro or subroutine
M100 Machine Zero Reset
M199 Mid program start
Bibliography
1.
2.
Kelly James Floyd, Patrick Hood-Daniel, Build Your Own CNC Machine, 1st
Edition, Springer-Verlag, New York, 2009.
3.
Geoff Williams, CNC Robotics: Build Your Own Shop Bot, 1st Edition,
McGraw Hill, New York, 2003.
4.
5.
6.
7.
Pabla B.S., Adithan M., CNC Machines, 1st Edition, New Age International,
New Delhi, 1994.
8.
9.