SlideShare a Scribd company logo
1 of 17
EE332 CONTROL SYSTEMS LAB – CNC MACHINE
SPRING 2013

SEMESTER PROJECT
“COMPUTER NUMERICAL CONTROLLED MACHINE”

SUBMITTED BY :
MUHAMMAD ZAIGHUM FAROOQ

SUBMITTED TO: ENGG. MEMOON SAJID
COURSE: EE341L - CONTROL SYSTEMS LAB

Page 1
EE332 CONTROL SYSTEMS LAB – CNC MACHINE
SPRING 2013

ABSTRACT
A computer numerical control (CNC) machine is a collection of automated tools controlled by abstractly
programmed commands on a storage medium, as opposed to manual control via hand wheels or levers.
The machine is operated by stepper motors that move the controls to follow points/co-ordinates fed
into the system by a computer. In our work, we have used µ-controller AT89C51 as the storage medium,
serially receiving co-ordinates from a pc, processing that data and controlling servo motor accordingly to
reach the destination point.

Page 2
EE332 CONTROL SYSTEMS LAB – CNC MACHINE
SPRING 2013

Table of Contents
ABSTRACT...................................................................................................................................................... 2
INTRODUCTION ............................................................................................................................................. 4
LIST OF HARDWARE USED ......................................................................................................................... 5
LIST OF SOFTWARES .................................................................................................................................. 5
STEPPER MOTOR SPECIFICATION ............................................................................................................. 5
MATLAB CODE FOR SENDING SERIAL DATA ................................................................................................. 5
CIRCUIT DIAGRAMS....................................................................................................................................... 6
H-BRIDGE CIRCUIT......................................................................................................................................... 7
FLOW CHART OF OPERATION ....................................................................................................................... 9
CODING TO IMPLEMENT THE ALGORITHM ................................................................................................ 10
UNIT OF INPUT ........................................................................................................................................ 14
MOTOR STEP SIZE ................................................................................................................................... 14
EFFICIENCY .............................................................................................................................................. 14
IMPROVEMENTS ......................................................................................................................................... 14
INPUT MATRIX

&

CUTTING DIRECTIONS ..................................................................................... 15

ACKNOWLEDGEMENTS ............................................................................................................................... 16
BIBLIOGRAPHY ............................................................................................................................................ 17

Page 3
EE332 CONTROL SYSTEMS LAB – CNC MACHINE
SPRING 2013

INTRODUCTION
Computer numerical machines are very commonly used the days . They have
high tendency to replace the manual cutting machines as they are extremely user friendly . They give
user enough free time to be able to control more than 5 machines very easily . This ease combined with
a much greater degree of precision and accuracy sets their scope .
Our main aim of the project was to cut any shape by controlling the machine numerically but as it
was our semester project so we succeeded in cutting all the shapes that have straight edges . This
project does not cut any round shape. A motor with rotating round cutter was turned on during the
cutting process then commands are given for specific coordinates by matlab . Machine reaches that
coordinates by cutting the object in a line with any slope depending on the coordinates at present .
After that again coordinates are given to the controller through matlab and machine repeats its process
. It carries on this way and cuts a closed shape with great degree of accuracy and precision .

Page 4
EE332 CONTROL SYSTEMS LAB – CNC MACHINE
SPRING 2013

LIST OF HARDWARE USED
Following table shows the hardware used :
CONTENT
1. µ-controller trainer with serial cable
2. H-bridge circuit1
3. 12V&5V power supply

SPECIFICATION

QUANTITY
1
2
1,1

LIST OF SOFTWARES
Following table shows the softwares used :
SOFTWARE
1. MATLAB
2. MCU 8051 IDE

PURPOSE
For entering co-ordinates and serially
communicate them
For programming the µ-controller

STEPPER MOTOR SPECIFICATION
Sequence of bits to rotate stepper motor through each consecutive step:
D1 D2 D3 D4
1
0
0
1
1
1
0
0
0
1
1
0
0
0
1
1
Moving from top to bottom will move the motor in clockwise steps. While taking the opposite sequence
will move the motor in anti-clockwise direction.

MATLAB CODE FOR SENDING SERIAL DATA
ss=serial('COM3');
ss.baudrate=9600;
fopen(ss);
ss.Terminator = 'CR';
tx =1;
fprintf(ss,'%s',tx1);
pause(1);

Page 5
EE332 CONTROL SYSTEMS LAB – CNC MACHINE
SPRING 2013

CIRCUIT DIAGRAMS

Page 6
EE332 CONTROL SYSTEMS LAB – CNC MACHINE
SPRING 2013

H-BRIDGE CIRCUIT
To operate the stepper motor, we need a motor driving circuit that gives enough current to move the
stepper motor in loaded conditions as present on the real CNC machine.

We used the above H-bridge ic named L298 .
You can also use any other H bridge circuit, commonly of transistors “Tip 122”.

Page 7
EE332 CONTROL SYSTEMS LAB – CNC MACHINE
SPRING 2013

STEPPER MOTOR CONTROL CIRCUITRY
(REPEATED TWICE)
The circuit shown below in the diadram is the main controlling circuitry for controlling the stepper
motors.

Page 8
EE332 CONTROL SYSTEMS LAB – CNC MACHINE
SPRING 2013

FLOW CHART OF OPERATION
Data Input

Data sending by
serial communication

MATLAB

Data received to µcontroller serial
communication

Interpreting data

Giving instruction
to motors

Control Unit

R

U

D

L

Page 9

L

U

R

D
EE332 CONTROL SYSTEMS LAB – CNC MACHINE
SPRING 2013
Computer interfaced with µ-controller using MATLAB.
1. Registers R₆ and R₇ to store the co-ordinate lengths entered through pc. Magnitude of R₆ and R₇
decides the no. of steps the stepper motor will move.
2. Register R₅ to hold the bit to give the direction in which the stepper motors will rotate. There
are four cases which decide the motion of stepper motor as shown in the direction.
3. For 1 unit entered stepper motor will rotate 0.5cm.
4. Each step of stepper motor covers 20µm of length. A loop of 125 cycles, whereby each cycle
consists of 2 steps is used to cover 0.5cm of length.

CODING TO IMPLEMENT THE ALGORITHM
org 00H
mov tmod,#20H
mov th1,#-3
mov scon,#50H
setb tr1
main:nop
her3: jnb ri,her3
lcall delay
mov a,sbuf
lcall delay
dec a
mov r7,a
mov p0,a
clr ri
lcall delay
here4: jnb ri,here4
lcall delay
mov a,sbuf
lcall delay
dec a
mov r6,a
mov p0,a
clr ri
lcall delay
here5: jnb ri,here5
lcall delay
mov a,sbuf
lcall delay
mov r5,a
mov p0,a
clr ri

Page
10
EE332 CONTROL SYSTEMS LAB – CNC MACHINE
SPRING 2013
lcall delay
tri:
mov a,r5
cjne a,#0,over
sjmp $
mov a,r5
over:cjne a,#1,over1
mov r4,#125
back6:mov a,r7
mov r1,a
mov a,r6
mov r0,a
back5:djnz r4,here2
sjmp main
mov a,r5
over1:cjne a,#2,over2
mov r4,#125
back67:mov a,r7
mov r1,a
mov a,r6
mov r0,a
back57:djnz r4,here27
sjmp main
mov a,r5
over2:cjne a,#3,over3
mov r4,#125
back68:mov a,r7
mov r1,a
mov a,r6
mov r0,a
back58:djnz r4,here28
sjmp main
mov a,r5
over3:cjne a,#4,over4
mov r4,#125
back69:mov a,r7
mov r1,a
mov a,r6
mov r0,a
back59:djnz r4,here29
over4:sjmp main

Page
11
EE332 CONTROL SYSTEMS LAB – CNC MACHINE
SPRING 2013

here2:mov a,r1
jz too
loo:acall down
acall delay
djnz r1,loo
too:mov a,r0
jz back6
acall left
acall delay
djnz r0,too
sjmp back6
here27:mov a,r1
jz tooo
looo:acall up
acall delay
djnz r1,looo
tooo:mov a,r0
jz back67
acall right
acall delay
djnz r0,tooo
sjmp back67
here28:mov a,r1
jz toooo
loooo:acall up
acall delay
djnz r1,loooo
toooo:mov a,r0
jz back68
acall left
acall delay
djnz r0,toooo
sjmp back68
here29:mov a,r1
jz to
lo:acall down
acall delay
djnz r1,lo
to:mov a,r0
jz back69
acall right
acall delaysjmp back69

Page
12
EE332 CONTROL SYSTEMS LAB – CNC MACHINE
SPRING 2013

down:
mov a,30h
jz soo
mov p1,#99H
lcall delay
mov p1,#0ccH
lcall delay
mov 30h,#0
sjmp haha
soo:mov p1,#66H
lcall delay
mov p1,#33H
lcall delay
mov 30h,#1
haha:
ret
up:
mov a,31h
jz soo1
mov p1,#33H
lcall delay
mov p1,#66H
lcall delay
mov 31h,#0
sjmp haha
soo1:mov p1,#0ccH
lcall delay
mov p1,#99H
lcall delay
mov 31h,#1
haha1:
ret
left:
mov a,32h
jz soo2
mov p2,#99H
lcall delay
mov p2,#0ccH
lcall delay
mov 32h,#0
sjmp haha
soo2:mov p2,#66H
lcall delay
mov p2,#33H

Page
13
EE332 CONTROL SYSTEMS LAB – CNC MACHINE
SPRING 2013
lcall delay
mov 32h,#1
haha2:
ret
right:
mov a,33h
jz soo3
mov p2,#33H
lcall delay
mov p2,#66H
lcall delay
mov 33h,#0
sjmp haha
soo3:mov p2,#0ccH
lcall delay
mov p2,#99H
lcall delay
mov 33h,#1
haha3:
ret
delay: mov r2,#40
h1:mov r3,#255
h2:djnz r3,H2
djnz r2,h1
ret
end

UNIT OF INPUT
Unit of input is 0.5 cm in the above program and can be changed by changing the number 125 in the
program. For example, if you change the number from 125 to 63 then unit of input will be 0.25cm.

MOTOR STEP SIZE
Motor step size is 500 steps/cm.

EFFICIENCY
In the above program it depends on the inputs.

IMPROVEMENTS
1: Efficiency of the above program can be improved by making more precise sub-control units.
2: Efficiency of the above program can be increased by two folds if we change the motor rotating units.

Page
14
EE332 CONTROL SYSTEMS LAB – CNC MACHINE
SPRING 2013
In the above program every time the motor rotate is called motor takes two steps , by changing it to
take one step efficiency will double as well as program length will decrease . Its very easy. Just take a
rom location save the 66H in it retrieve it in motor rotate routine , rotate left or right according to
routine and then save it back in the same location .
3: Currently we input from matlab the directions and lengths of coordinates, we should improve it to
entering the +,- coordinates and let the computer calculate lengths and direction .
4: Data should be received as ascii characters.
5: It should also be improved to cut the curves of different types .
6: It should also be programed to three directional cutting .

INPUT MATRIX
1

7
7

3

5

3

1

5

3

3

5

3

4

7

1

4

7

1

CUTTING DIRECTIONS

4

1

&

3

Third number in input matrix represents the direction. First two numbers are lengths.
Many others possible, they also depend on connections of motors.
Moreover above lines arrows are not according to scale.

Page
15
EE332 CONTROL SYSTEMS LAB – CNC MACHINE
SPRING 2013

ACKNOWLEDGEMENTS
For this project, we owe our gratitude to Mr. Memoon Sajid who assigned us this project and was a
source of constant help throughout both morally and practically. We would also like to thank our
teacher Mr. Kashif Riaz who with his marvelous teaching skills made assembly language almost innate
for us. We would also like to thank Mr. Nayyar Abbas who diligently taught us the use and programming
of µ-controller. Last but not the least we would like to thank our honorable Dean (FEE) Dr. Nisar who
had been very supportive in the requisition of hardware without which this project would never have
seen the light of day.

Page
16
EE332 CONTROL SYSTEMS LAB – CNC MACHINE
SPRING 2013

BIBLIOGRAPHY
Pocketmagic.net (2009) A simple H-Bridge design « PocketMagic. [online] Available at:
http://www.pocketmagic.net/2009/03/a-simple-h-bridge-design/#.UYwLYUrMLuZ [Accessed: 9 May
2013].

Page
17

More Related Content

What's hot

J4123 CNC TURNING NOTE
J4123 CNC TURNING NOTEJ4123 CNC TURNING NOTE
J4123 CNC TURNING NOTEmsharizan
 
Chapter 4 cnc part programming
Chapter 4 cnc part programmingChapter 4 cnc part programming
Chapter 4 cnc part programmingRAHUL THAKER
 
Bhel haridwar summer training ppt
Bhel haridwar summer training pptBhel haridwar summer training ppt
Bhel haridwar summer training pptnilesh choubey
 
Universal CNC Milling Machine
Universal CNC Milling MachineUniversal CNC Milling Machine
Universal CNC Milling MachineRTK Industries
 
Cnc technology yani punye
Cnc technology yani punyeCnc technology yani punye
Cnc technology yani punyemohdyanie
 
Computer Numeric control(C.N.C) Machine
Computer Numeric control(C.N.C) MachineComputer Numeric control(C.N.C) Machine
Computer Numeric control(C.N.C) MachineAISHWARYA DUBEY
 
Computer Numerical Control (CNC) & Manufacturing Automation
Computer Numerical Control (CNC) & Manufacturing AutomationComputer Numerical Control (CNC) & Manufacturing Automation
Computer Numerical Control (CNC) & Manufacturing AutomationSTAY CURIOUS
 
Cnc training (sahil gupta 9068557926)
Cnc training (sahil gupta   9068557926)Cnc training (sahil gupta   9068557926)
Cnc training (sahil gupta 9068557926)Sahil Gupta
 
nc and cnc dp
nc and cnc dpnc and cnc dp
nc and cnc dpDpulast
 
BHEL PPT for AEI branch
BHEL PPT for AEI branch BHEL PPT for AEI branch
BHEL PPT for AEI branch piyushaagrawal
 

What's hot (20)

J4123 CNC TURNING NOTE
J4123 CNC TURNING NOTEJ4123 CNC TURNING NOTE
J4123 CNC TURNING NOTE
 
introduction to cnc technology
introduction to cnc technologyintroduction to cnc technology
introduction to cnc technology
 
Nc Technology
Nc TechnologyNc Technology
Nc Technology
 
Funuc progaming
Funuc progamingFunuc progaming
Funuc progaming
 
Cnc programming
Cnc programmingCnc programming
Cnc programming
 
Chapter 4 cnc part programming
Chapter 4 cnc part programmingChapter 4 cnc part programming
Chapter 4 cnc part programming
 
Bhel haridwar summer training ppt
Bhel haridwar summer training pptBhel haridwar summer training ppt
Bhel haridwar summer training ppt
 
Universal CNC Milling Machine
Universal CNC Milling MachineUniversal CNC Milling Machine
Universal CNC Milling Machine
 
Nc Machine
Nc MachineNc Machine
Nc Machine
 
Cnc technology yani punye
Cnc technology yani punyeCnc technology yani punye
Cnc technology yani punye
 
Computer Numeric control(C.N.C) Machine
Computer Numeric control(C.N.C) MachineComputer Numeric control(C.N.C) Machine
Computer Numeric control(C.N.C) Machine
 
Nc programming
Nc programmingNc programming
Nc programming
 
Cnc notes (1)
Cnc notes (1)Cnc notes (1)
Cnc notes (1)
 
CNC Seminar
CNC SeminarCNC Seminar
CNC Seminar
 
Computer Numerical Control (CNC) & Manufacturing Automation
Computer Numerical Control (CNC) & Manufacturing AutomationComputer Numerical Control (CNC) & Manufacturing Automation
Computer Numerical Control (CNC) & Manufacturing Automation
 
Cnc programming basics.doc
Cnc programming basics.docCnc programming basics.doc
Cnc programming basics.doc
 
Cnc training (sahil gupta 9068557926)
Cnc training (sahil gupta   9068557926)Cnc training (sahil gupta   9068557926)
Cnc training (sahil gupta 9068557926)
 
cnc machining
cnc machiningcnc machining
cnc machining
 
nc and cnc dp
nc and cnc dpnc and cnc dp
nc and cnc dp
 
BHEL PPT for AEI branch
BHEL PPT for AEI branch BHEL PPT for AEI branch
BHEL PPT for AEI branch
 

Viewers also liked

CNC PROGRAMMING FOR BEGAINER Part 1
CNC PROGRAMMING FOR BEGAINER Part 1CNC PROGRAMMING FOR BEGAINER Part 1
CNC PROGRAMMING FOR BEGAINER Part 1Parveen Kumar
 
Cnc part programming 4 unit
Cnc part programming 4 unitCnc part programming 4 unit
Cnc part programming 4 unitpalanivendhan
 
CNC Machines
CNC MachinesCNC Machines
CNC Machinespratik207
 
Lecture 17 position systems of nc [compatibility mode]
Lecture 17 position systems of nc [compatibility mode]Lecture 17 position systems of nc [compatibility mode]
Lecture 17 position systems of nc [compatibility mode]Dr.Muftooh Ur Rehman Siddiqi
 
computer numerical control
computer numerical control computer numerical control
computer numerical control Akashbansode2612
 
CNC machining
CNC machiningCNC machining
CNC machiningnitigga92
 
B. tech. -_mechanical_engg_-_r13_-_syllabus
B. tech. -_mechanical_engg_-_r13_-_syllabusB. tech. -_mechanical_engg_-_r13_-_syllabus
B. tech. -_mechanical_engg_-_r13_-_syllabusMURALI ERASA
 
A literature review on optimization of cutting parameters for surface roughne...
A literature review on optimization of cutting parameters for surface roughne...A literature review on optimization of cutting parameters for surface roughne...
A literature review on optimization of cutting parameters for surface roughne...IJERD Editor
 
EXPERIMENTAL STUDY OF TURNING OPERATION AND OPTIMIZATION OF MRR AND SURFACE R...
EXPERIMENTAL STUDY OF TURNING OPERATION AND OPTIMIZATION OF MRR AND SURFACE R...EXPERIMENTAL STUDY OF TURNING OPERATION AND OPTIMIZATION OF MRR AND SURFACE R...
EXPERIMENTAL STUDY OF TURNING OPERATION AND OPTIMIZATION OF MRR AND SURFACE R...AM Publications
 
Taguchi method-process imp
Taguchi method-process impTaguchi method-process imp
Taguchi method-process impTushar Rawat
 
Optimization of input parameters of cnc turning operation for the given comp
Optimization of input parameters of cnc turning operation for the given compOptimization of input parameters of cnc turning operation for the given comp
Optimization of input parameters of cnc turning operation for the given compIAEME Publication
 
Optimization of edm process parameters using taguchi method a review
Optimization of edm process parameters using taguchi method  a reviewOptimization of edm process parameters using taguchi method  a review
Optimization of edm process parameters using taguchi method a revieweSAT Journals
 
Seminar Report On Taguchi Methods2
Seminar Report On Taguchi Methods2Seminar Report On Taguchi Methods2
Seminar Report On Taguchi Methods2pulkit bajaj
 
NC part programing & Robotics
NC part programing & RoboticsNC part programing & Robotics
NC part programing & RoboticsDenny John
 
MULTIOBJECTIVE OPTIMIZATION OF MACHINING PARAMETERSFOR C-65 MATERIAL USING TA...
MULTIOBJECTIVE OPTIMIZATION OF MACHINING PARAMETERSFOR C-65 MATERIAL USING TA...MULTIOBJECTIVE OPTIMIZATION OF MACHINING PARAMETERSFOR C-65 MATERIAL USING TA...
MULTIOBJECTIVE OPTIMIZATION OF MACHINING PARAMETERSFOR C-65 MATERIAL USING TA...AVINASH JURIANI
 
Kirabo cyber cafe business plan
Kirabo cyber cafe business planKirabo cyber cafe business plan
Kirabo cyber cafe business planKisakye Stephen
 

Viewers also liked (20)

CNC PROGRAMMING FOR BEGAINER Part 1
CNC PROGRAMMING FOR BEGAINER Part 1CNC PROGRAMMING FOR BEGAINER Part 1
CNC PROGRAMMING FOR BEGAINER Part 1
 
Cnc part programming 4 unit
Cnc part programming 4 unitCnc part programming 4 unit
Cnc part programming 4 unit
 
Cnc detail
Cnc detailCnc detail
Cnc detail
 
NC, CNC & DNC Machine
NC, CNC & DNC Machine NC, CNC & DNC Machine
NC, CNC & DNC Machine
 
CNC Machines
CNC MachinesCNC Machines
CNC Machines
 
Lecture 17 position systems of nc [compatibility mode]
Lecture 17 position systems of nc [compatibility mode]Lecture 17 position systems of nc [compatibility mode]
Lecture 17 position systems of nc [compatibility mode]
 
computer numerical control
computer numerical control computer numerical control
computer numerical control
 
CNC machining
CNC machiningCNC machining
CNC machining
 
B. tech. -_mechanical_engg_-_r13_-_syllabus
B. tech. -_mechanical_engg_-_r13_-_syllabusB. tech. -_mechanical_engg_-_r13_-_syllabus
B. tech. -_mechanical_engg_-_r13_-_syllabus
 
A literature review on optimization of cutting parameters for surface roughne...
A literature review on optimization of cutting parameters for surface roughne...A literature review on optimization of cutting parameters for surface roughne...
A literature review on optimization of cutting parameters for surface roughne...
 
EXPERIMENTAL STUDY OF TURNING OPERATION AND OPTIMIZATION OF MRR AND SURFACE R...
EXPERIMENTAL STUDY OF TURNING OPERATION AND OPTIMIZATION OF MRR AND SURFACE R...EXPERIMENTAL STUDY OF TURNING OPERATION AND OPTIMIZATION OF MRR AND SURFACE R...
EXPERIMENTAL STUDY OF TURNING OPERATION AND OPTIMIZATION OF MRR AND SURFACE R...
 
Taguchi method-process imp
Taguchi method-process impTaguchi method-process imp
Taguchi method-process imp
 
Optimization of input parameters of cnc turning operation for the given comp
Optimization of input parameters of cnc turning operation for the given compOptimization of input parameters of cnc turning operation for the given comp
Optimization of input parameters of cnc turning operation for the given comp
 
Cvt
CvtCvt
Cvt
 
Optimization of edm process parameters using taguchi method a review
Optimization of edm process parameters using taguchi method  a reviewOptimization of edm process parameters using taguchi method  a review
Optimization of edm process parameters using taguchi method a review
 
Seminar Report On Taguchi Methods2
Seminar Report On Taguchi Methods2Seminar Report On Taguchi Methods2
Seminar Report On Taguchi Methods2
 
NC part programing & Robotics
NC part programing & RoboticsNC part programing & Robotics
NC part programing & Robotics
 
MULTIOBJECTIVE OPTIMIZATION OF MACHINING PARAMETERSFOR C-65 MATERIAL USING TA...
MULTIOBJECTIVE OPTIMIZATION OF MACHINING PARAMETERSFOR C-65 MATERIAL USING TA...MULTIOBJECTIVE OPTIMIZATION OF MACHINING PARAMETERSFOR C-65 MATERIAL USING TA...
MULTIOBJECTIVE OPTIMIZATION OF MACHINING PARAMETERSFOR C-65 MATERIAL USING TA...
 
Kirabo cyber cafe business plan
Kirabo cyber cafe business planKirabo cyber cafe business plan
Kirabo cyber cafe business plan
 
CNC Programming
CNC Programming CNC Programming
CNC Programming
 

Similar to Computer numerical controlled machine project

Temp based fan speed control
Temp based fan speed controlTemp based fan speed control
Temp based fan speed controlSai Malleswar
 
Robotic Catching Arm using Microcontroller
Robotic Catching Arm using MicrocontrollerRobotic Catching Arm using Microcontroller
Robotic Catching Arm using MicrocontrollerIRJET Journal
 
IRJET- Automatic Mini CNC Machine for PCB Drawing using Arduino
IRJET- Automatic Mini CNC Machine for PCB Drawing using ArduinoIRJET- Automatic Mini CNC Machine for PCB Drawing using Arduino
IRJET- Automatic Mini CNC Machine for PCB Drawing using ArduinoIRJET Journal
 
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLERFOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLERJournal For Research
 
D0255033039
D0255033039D0255033039
D0255033039theijes
 
Designing and Controlling of Motor by Interfacing RS232 with Microcontroller
Designing and Controlling of Motor by Interfacing RS232 with MicrocontrollerDesigning and Controlling of Motor by Interfacing RS232 with Microcontroller
Designing and Controlling of Motor by Interfacing RS232 with MicrocontrollerIRJET Journal
 
Report no.6..(bipolar motor n DC motor)
Report no.6..(bipolar motor n DC motor)Report no.6..(bipolar motor n DC motor)
Report no.6..(bipolar motor n DC motor)Ronza Sameer
 
Computer Numerical Control_2018.pdf
Computer Numerical Control_2018.pdfComputer Numerical Control_2018.pdf
Computer Numerical Control_2018.pdfadminpeo
 
Tachometer using AT89S52 microcontroller with motor control
Tachometer using AT89S52 microcontroller with motor controlTachometer using AT89S52 microcontroller with motor control
Tachometer using AT89S52 microcontroller with motor controlSushil Mishra
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
Amp bluac5 specsheet
Amp bluac5 specsheetAmp bluac5 specsheet
Amp bluac5 specsheetElectromate
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)ijceronline
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
2D Plotter Presentation
2D Plotter Presentation2D Plotter Presentation
2D Plotter PresentationMahmoud Kandil
 

Similar to Computer numerical controlled machine project (20)

Pmc basic final
Pmc basic finalPmc basic final
Pmc basic final
 
Temp based fan speed control
Temp based fan speed controlTemp based fan speed control
Temp based fan speed control
 
Robotic Catching Arm using Microcontroller
Robotic Catching Arm using MicrocontrollerRobotic Catching Arm using Microcontroller
Robotic Catching Arm using Microcontroller
 
IRJET- Automatic Mini CNC Machine for PCB Drawing using Arduino
IRJET- Automatic Mini CNC Machine for PCB Drawing using ArduinoIRJET- Automatic Mini CNC Machine for PCB Drawing using Arduino
IRJET- Automatic Mini CNC Machine for PCB Drawing using Arduino
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLERFOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
 
Presentation200 (1).ppt
Presentation200 (1).pptPresentation200 (1).ppt
Presentation200 (1).ppt
 
D0255033039
D0255033039D0255033039
D0255033039
 
Designing and Controlling of Motor by Interfacing RS232 with Microcontroller
Designing and Controlling of Motor by Interfacing RS232 with MicrocontrollerDesigning and Controlling of Motor by Interfacing RS232 with Microcontroller
Designing and Controlling of Motor by Interfacing RS232 with Microcontroller
 
Electrician Training for USAF
Electrician Training for USAFElectrician Training for USAF
Electrician Training for USAF
 
Report no.6..(bipolar motor n DC motor)
Report no.6..(bipolar motor n DC motor)Report no.6..(bipolar motor n DC motor)
Report no.6..(bipolar motor n DC motor)
 
REPORT
REPORTREPORT
REPORT
 
Computer Numerical Control_2018.pdf
Computer Numerical Control_2018.pdfComputer Numerical Control_2018.pdf
Computer Numerical Control_2018.pdf
 
Tachometer using AT89S52 microcontroller with motor control
Tachometer using AT89S52 microcontroller with motor controlTachometer using AT89S52 microcontroller with motor control
Tachometer using AT89S52 microcontroller with motor control
 
9_CNC (1).ppt
9_CNC (1).ppt9_CNC (1).ppt
9_CNC (1).ppt
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
Amp bluac5 specsheet
Amp bluac5 specsheetAmp bluac5 specsheet
Amp bluac5 specsheet
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)
 
2D Plotter Presentation
2D Plotter Presentation2D Plotter Presentation
2D Plotter Presentation
 

Recently uploaded

(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607dollysharma2066
 
Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Seta Wicaksana
 
Organizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessOrganizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessSeta Wicaksana
 
MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?Olivia Kresic
 
Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Peter Ward
 
PSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationPSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationAnamaria Contreras
 
Appkodes Tinder Clone Script with Customisable Solutions.pptx
Appkodes Tinder Clone Script with Customisable Solutions.pptxAppkodes Tinder Clone Script with Customisable Solutions.pptx
Appkodes Tinder Clone Script with Customisable Solutions.pptxappkodes
 
International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...ssuserf63bd7
 
Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Americas Got Grants
 
Cyber Security Training in Office Environment
Cyber Security Training in Office EnvironmentCyber Security Training in Office Environment
Cyber Security Training in Office Environmentelijahj01012
 
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCRashishs7044
 
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCRashishs7044
 
Pitch deck sample detail for New Business Proposal
Pitch deck sample detail for New Business ProposalPitch deck sample detail for New Business Proposal
Pitch deck sample detail for New Business ProposalEvelina300651
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckHajeJanKamps
 
Entrepreneurship lessons in Philippines
Entrepreneurship lessons in  PhilippinesEntrepreneurship lessons in  Philippines
Entrepreneurship lessons in PhilippinesDavidSamuel525586
 
8447779800, Low rate Call girls in Dwarka mor Delhi NCR
8447779800, Low rate Call girls in Dwarka mor Delhi NCR8447779800, Low rate Call girls in Dwarka mor Delhi NCR
8447779800, Low rate Call girls in Dwarka mor Delhi NCRashishs7044
 
8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCRashishs7044
 
business environment micro environment macro environment.pptx
business environment micro environment macro environment.pptxbusiness environment micro environment macro environment.pptx
business environment micro environment macro environment.pptxShruti Mittal
 

Recently uploaded (20)

(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
 
Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...
 
Organizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessOrganizational Structure Running A Successful Business
Organizational Structure Running A Successful Business
 
MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?
 
Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...
 
PSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationPSCC - Capability Statement Presentation
PSCC - Capability Statement Presentation
 
Appkodes Tinder Clone Script with Customisable Solutions.pptx
Appkodes Tinder Clone Script with Customisable Solutions.pptxAppkodes Tinder Clone Script with Customisable Solutions.pptx
Appkodes Tinder Clone Script with Customisable Solutions.pptx
 
International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...
 
Corporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information TechnologyCorporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information Technology
 
Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...
 
Cyber Security Training in Office Environment
Cyber Security Training in Office EnvironmentCyber Security Training in Office Environment
Cyber Security Training in Office Environment
 
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
 
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
 
Call Us ➥9319373153▻Call Girls In North Goa
Call Us ➥9319373153▻Call Girls In North GoaCall Us ➥9319373153▻Call Girls In North Goa
Call Us ➥9319373153▻Call Girls In North Goa
 
Pitch deck sample detail for New Business Proposal
Pitch deck sample detail for New Business ProposalPitch deck sample detail for New Business Proposal
Pitch deck sample detail for New Business Proposal
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
 
Entrepreneurship lessons in Philippines
Entrepreneurship lessons in  PhilippinesEntrepreneurship lessons in  Philippines
Entrepreneurship lessons in Philippines
 
8447779800, Low rate Call girls in Dwarka mor Delhi NCR
8447779800, Low rate Call girls in Dwarka mor Delhi NCR8447779800, Low rate Call girls in Dwarka mor Delhi NCR
8447779800, Low rate Call girls in Dwarka mor Delhi NCR
 
8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR
 
business environment micro environment macro environment.pptx
business environment micro environment macro environment.pptxbusiness environment micro environment macro environment.pptx
business environment micro environment macro environment.pptx
 

Computer numerical controlled machine project

  • 1. EE332 CONTROL SYSTEMS LAB – CNC MACHINE SPRING 2013 SEMESTER PROJECT “COMPUTER NUMERICAL CONTROLLED MACHINE” SUBMITTED BY : MUHAMMAD ZAIGHUM FAROOQ SUBMITTED TO: ENGG. MEMOON SAJID COURSE: EE341L - CONTROL SYSTEMS LAB Page 1
  • 2. EE332 CONTROL SYSTEMS LAB – CNC MACHINE SPRING 2013 ABSTRACT A computer numerical control (CNC) machine is a collection of automated tools controlled by abstractly programmed commands on a storage medium, as opposed to manual control via hand wheels or levers. The machine is operated by stepper motors that move the controls to follow points/co-ordinates fed into the system by a computer. In our work, we have used µ-controller AT89C51 as the storage medium, serially receiving co-ordinates from a pc, processing that data and controlling servo motor accordingly to reach the destination point. Page 2
  • 3. EE332 CONTROL SYSTEMS LAB – CNC MACHINE SPRING 2013 Table of Contents ABSTRACT...................................................................................................................................................... 2 INTRODUCTION ............................................................................................................................................. 4 LIST OF HARDWARE USED ......................................................................................................................... 5 LIST OF SOFTWARES .................................................................................................................................. 5 STEPPER MOTOR SPECIFICATION ............................................................................................................. 5 MATLAB CODE FOR SENDING SERIAL DATA ................................................................................................. 5 CIRCUIT DIAGRAMS....................................................................................................................................... 6 H-BRIDGE CIRCUIT......................................................................................................................................... 7 FLOW CHART OF OPERATION ....................................................................................................................... 9 CODING TO IMPLEMENT THE ALGORITHM ................................................................................................ 10 UNIT OF INPUT ........................................................................................................................................ 14 MOTOR STEP SIZE ................................................................................................................................... 14 EFFICIENCY .............................................................................................................................................. 14 IMPROVEMENTS ......................................................................................................................................... 14 INPUT MATRIX & CUTTING DIRECTIONS ..................................................................................... 15 ACKNOWLEDGEMENTS ............................................................................................................................... 16 BIBLIOGRAPHY ............................................................................................................................................ 17 Page 3
  • 4. EE332 CONTROL SYSTEMS LAB – CNC MACHINE SPRING 2013 INTRODUCTION Computer numerical machines are very commonly used the days . They have high tendency to replace the manual cutting machines as they are extremely user friendly . They give user enough free time to be able to control more than 5 machines very easily . This ease combined with a much greater degree of precision and accuracy sets their scope . Our main aim of the project was to cut any shape by controlling the machine numerically but as it was our semester project so we succeeded in cutting all the shapes that have straight edges . This project does not cut any round shape. A motor with rotating round cutter was turned on during the cutting process then commands are given for specific coordinates by matlab . Machine reaches that coordinates by cutting the object in a line with any slope depending on the coordinates at present . After that again coordinates are given to the controller through matlab and machine repeats its process . It carries on this way and cuts a closed shape with great degree of accuracy and precision . Page 4
  • 5. EE332 CONTROL SYSTEMS LAB – CNC MACHINE SPRING 2013 LIST OF HARDWARE USED Following table shows the hardware used : CONTENT 1. µ-controller trainer with serial cable 2. H-bridge circuit1 3. 12V&5V power supply SPECIFICATION QUANTITY 1 2 1,1 LIST OF SOFTWARES Following table shows the softwares used : SOFTWARE 1. MATLAB 2. MCU 8051 IDE PURPOSE For entering co-ordinates and serially communicate them For programming the µ-controller STEPPER MOTOR SPECIFICATION Sequence of bits to rotate stepper motor through each consecutive step: D1 D2 D3 D4 1 0 0 1 1 1 0 0 0 1 1 0 0 0 1 1 Moving from top to bottom will move the motor in clockwise steps. While taking the opposite sequence will move the motor in anti-clockwise direction. MATLAB CODE FOR SENDING SERIAL DATA ss=serial('COM3'); ss.baudrate=9600; fopen(ss); ss.Terminator = 'CR'; tx =1; fprintf(ss,'%s',tx1); pause(1); Page 5
  • 6. EE332 CONTROL SYSTEMS LAB – CNC MACHINE SPRING 2013 CIRCUIT DIAGRAMS Page 6
  • 7. EE332 CONTROL SYSTEMS LAB – CNC MACHINE SPRING 2013 H-BRIDGE CIRCUIT To operate the stepper motor, we need a motor driving circuit that gives enough current to move the stepper motor in loaded conditions as present on the real CNC machine. We used the above H-bridge ic named L298 . You can also use any other H bridge circuit, commonly of transistors “Tip 122”. Page 7
  • 8. EE332 CONTROL SYSTEMS LAB – CNC MACHINE SPRING 2013 STEPPER MOTOR CONTROL CIRCUITRY (REPEATED TWICE) The circuit shown below in the diadram is the main controlling circuitry for controlling the stepper motors. Page 8
  • 9. EE332 CONTROL SYSTEMS LAB – CNC MACHINE SPRING 2013 FLOW CHART OF OPERATION Data Input Data sending by serial communication MATLAB Data received to µcontroller serial communication Interpreting data Giving instruction to motors Control Unit R U D L Page 9 L U R D
  • 10. EE332 CONTROL SYSTEMS LAB – CNC MACHINE SPRING 2013 Computer interfaced with µ-controller using MATLAB. 1. Registers R₆ and R₇ to store the co-ordinate lengths entered through pc. Magnitude of R₆ and R₇ decides the no. of steps the stepper motor will move. 2. Register R₅ to hold the bit to give the direction in which the stepper motors will rotate. There are four cases which decide the motion of stepper motor as shown in the direction. 3. For 1 unit entered stepper motor will rotate 0.5cm. 4. Each step of stepper motor covers 20µm of length. A loop of 125 cycles, whereby each cycle consists of 2 steps is used to cover 0.5cm of length. CODING TO IMPLEMENT THE ALGORITHM org 00H mov tmod,#20H mov th1,#-3 mov scon,#50H setb tr1 main:nop her3: jnb ri,her3 lcall delay mov a,sbuf lcall delay dec a mov r7,a mov p0,a clr ri lcall delay here4: jnb ri,here4 lcall delay mov a,sbuf lcall delay dec a mov r6,a mov p0,a clr ri lcall delay here5: jnb ri,here5 lcall delay mov a,sbuf lcall delay mov r5,a mov p0,a clr ri Page 10
  • 11. EE332 CONTROL SYSTEMS LAB – CNC MACHINE SPRING 2013 lcall delay tri: mov a,r5 cjne a,#0,over sjmp $ mov a,r5 over:cjne a,#1,over1 mov r4,#125 back6:mov a,r7 mov r1,a mov a,r6 mov r0,a back5:djnz r4,here2 sjmp main mov a,r5 over1:cjne a,#2,over2 mov r4,#125 back67:mov a,r7 mov r1,a mov a,r6 mov r0,a back57:djnz r4,here27 sjmp main mov a,r5 over2:cjne a,#3,over3 mov r4,#125 back68:mov a,r7 mov r1,a mov a,r6 mov r0,a back58:djnz r4,here28 sjmp main mov a,r5 over3:cjne a,#4,over4 mov r4,#125 back69:mov a,r7 mov r1,a mov a,r6 mov r0,a back59:djnz r4,here29 over4:sjmp main Page 11
  • 12. EE332 CONTROL SYSTEMS LAB – CNC MACHINE SPRING 2013 here2:mov a,r1 jz too loo:acall down acall delay djnz r1,loo too:mov a,r0 jz back6 acall left acall delay djnz r0,too sjmp back6 here27:mov a,r1 jz tooo looo:acall up acall delay djnz r1,looo tooo:mov a,r0 jz back67 acall right acall delay djnz r0,tooo sjmp back67 here28:mov a,r1 jz toooo loooo:acall up acall delay djnz r1,loooo toooo:mov a,r0 jz back68 acall left acall delay djnz r0,toooo sjmp back68 here29:mov a,r1 jz to lo:acall down acall delay djnz r1,lo to:mov a,r0 jz back69 acall right acall delaysjmp back69 Page 12
  • 13. EE332 CONTROL SYSTEMS LAB – CNC MACHINE SPRING 2013 down: mov a,30h jz soo mov p1,#99H lcall delay mov p1,#0ccH lcall delay mov 30h,#0 sjmp haha soo:mov p1,#66H lcall delay mov p1,#33H lcall delay mov 30h,#1 haha: ret up: mov a,31h jz soo1 mov p1,#33H lcall delay mov p1,#66H lcall delay mov 31h,#0 sjmp haha soo1:mov p1,#0ccH lcall delay mov p1,#99H lcall delay mov 31h,#1 haha1: ret left: mov a,32h jz soo2 mov p2,#99H lcall delay mov p2,#0ccH lcall delay mov 32h,#0 sjmp haha soo2:mov p2,#66H lcall delay mov p2,#33H Page 13
  • 14. EE332 CONTROL SYSTEMS LAB – CNC MACHINE SPRING 2013 lcall delay mov 32h,#1 haha2: ret right: mov a,33h jz soo3 mov p2,#33H lcall delay mov p2,#66H lcall delay mov 33h,#0 sjmp haha soo3:mov p2,#0ccH lcall delay mov p2,#99H lcall delay mov 33h,#1 haha3: ret delay: mov r2,#40 h1:mov r3,#255 h2:djnz r3,H2 djnz r2,h1 ret end UNIT OF INPUT Unit of input is 0.5 cm in the above program and can be changed by changing the number 125 in the program. For example, if you change the number from 125 to 63 then unit of input will be 0.25cm. MOTOR STEP SIZE Motor step size is 500 steps/cm. EFFICIENCY In the above program it depends on the inputs. IMPROVEMENTS 1: Efficiency of the above program can be improved by making more precise sub-control units. 2: Efficiency of the above program can be increased by two folds if we change the motor rotating units. Page 14
  • 15. EE332 CONTROL SYSTEMS LAB – CNC MACHINE SPRING 2013 In the above program every time the motor rotate is called motor takes two steps , by changing it to take one step efficiency will double as well as program length will decrease . Its very easy. Just take a rom location save the 66H in it retrieve it in motor rotate routine , rotate left or right according to routine and then save it back in the same location . 3: Currently we input from matlab the directions and lengths of coordinates, we should improve it to entering the +,- coordinates and let the computer calculate lengths and direction . 4: Data should be received as ascii characters. 5: It should also be improved to cut the curves of different types . 6: It should also be programed to three directional cutting . INPUT MATRIX 1 7 7 3 5 3 1 5 3 3 5 3 4 7 1 4 7 1 CUTTING DIRECTIONS 4 1 & 3 Third number in input matrix represents the direction. First two numbers are lengths. Many others possible, they also depend on connections of motors. Moreover above lines arrows are not according to scale. Page 15
  • 16. EE332 CONTROL SYSTEMS LAB – CNC MACHINE SPRING 2013 ACKNOWLEDGEMENTS For this project, we owe our gratitude to Mr. Memoon Sajid who assigned us this project and was a source of constant help throughout both morally and practically. We would also like to thank our teacher Mr. Kashif Riaz who with his marvelous teaching skills made assembly language almost innate for us. We would also like to thank Mr. Nayyar Abbas who diligently taught us the use and programming of µ-controller. Last but not the least we would like to thank our honorable Dean (FEE) Dr. Nisar who had been very supportive in the requisition of hardware without which this project would never have seen the light of day. Page 16
  • 17. EE332 CONTROL SYSTEMS LAB – CNC MACHINE SPRING 2013 BIBLIOGRAPHY Pocketmagic.net (2009) A simple H-Bridge design « PocketMagic. [online] Available at: http://www.pocketmagic.net/2009/03/a-simple-h-bridge-design/#.UYwLYUrMLuZ [Accessed: 9 May 2013]. Page 17