53-Article Text-1508-1-10-20211221
53-Article Text-1508-1-10-20211221
Abstract
This paper discussed the design and implementation of a Computer Numerical Control (CNC) machine for writing or sketch
by employ parts of computer scraps (DVD-ROM). The Arduino Uno used as the controller for this project with using Inkscape
program, which converts images and text into g- code format and then sends this g- code to the processing3 program which is an
interface the connection between the arduino and the computer and the language of the CNC machine. The g-code includes a set
of x y z coordinates that are sent to the motors, the Z coordinates are transmitted to the servo motor that directs the movement
of the pen, the Y coordinates are sent to the stepper motor 1 that directs the horizontal movement of the DVD rail and the
X coordinate is send to the Stepper motor 2 that directs the vertical movement of the DVD rail. This project can be used in
logo Design. CNC machines can be utilized ceaselessly 24 hours every day, 365 days per year and just should be turned off for
intermittent support.
Key words- Computer Numerical Control; Disk Video Drive; Scalable Vector Graphics
I. I NTRODUCTION The transformation can be described by multiplying the
matrices sequentially:
In today’s environment, any industry’s primary requirement
w
is to manufacture vast quantities of high-quality products at At =w Ac .c AA .A AP .P At (3)
low production and installation costs, with a high surface
The matrices should be constructed as follows:
finish and high dimensional accuracy. As a result, a machine
controlled by a computer can achieve this. They are basically 1 0 0 Lx Cc Sc 0 0
, AA −Sc Cc 0 0 ,
0 1 0 Ly c
known as Computer Numerical Control (CNC) machine [1]. w
Ac = 0 0 1 Lz 0
The Computer Numerical Control machine is a form of 0 1 0
automation system that incorporates the use of computers 0 0 0 1 0 0 0 1
to control machine tools in the manufacturing industry. A 1 0 0 0 1 0 0 Px
0 CA CS 0 P
computer program is designed for an item, and machines are A , At = 0 1 0 Py .
AP =
programmed using the G-code language, which effectively 0 −SA CA 0 0 0 1 Pz
controls all elements such as coordination, axis motion, po- 0 0 0 1 0 0 0 1
sition, and speed [2]. This paper major goal is to employ (4)
DVD-ROM to implement a CNC machine that can be used The offsets of the pivot point of the two rotary axes A and C
to write or sketch [3]–[5]. relative to the workpiece coordinate system origin are defined
v = H.u (2)
Fig. 1. General Configuration and coordinate systems.
1
The 1st Scientific Conference for Aerospace Researches & Applications Sudan (SCARA-1)-2021
in these equations by Lx, Ly, and Lz. Furthermore, Px, Py, and
Pz are the relative distances between the pivot point and the
pen tip location, commonly known as the pivot point’s ”joint
coordinates” [7]–[9]. When multiplied in accordance with (3),
we obtain:
Vx = CC Px + SC CA Py + SC SA PZ + Lx
Vy = −Sc Px + Cc CA Py + CC SA PZ + Ly
Vz = −SA Py + CA PZ + LZ
CC Sc CA CC SA Vx
(5)
−SC CC CA Fig. 4. Block diagram of CNC machine.
w 0 Vy
At =
0 −SA CA Vz
0 0 0 1 Through the Universal Serial Bus, the Arduino board’s micro-
By equating the last column of (5) with the tool position vector controller is connected to the computer system (USB). A CNC
Q, it is possible that will write: shield driving board connects the stepper and servo motors of
the axis (X,Y, and Z) [11], Figure 3 shows the complete circuit
Qx
Qy diagram of the proposed system.
Q= Qz
1 D. Block Diagram
(6)
1) Stepper motor: A stepper motor is a mechanical device
CC Px + SC CA Px + Sc CA Py + SC SA Pz + Lx
−SC Px + CC CA Py + CC SA Pz + Ly that transforms electrical energy to mechanical energy. It’s
=
also a brushless, synchronous electric motor with the ability
−SA Py + CA Pz + Lz
1 to partition a full rotation into a variety of steps. When an
electrical pulse is applied to the stepper motor, the magnet
The right-hand vector can also be expressed as the product operation theory is used to convert the motor shaft into a
of a matrix and a vector, yielding: precise distance. The stator has eight poles and the rotor has
Qx = CC Px + SC CA Px + Sc CA Py + SC SA Pz + Lx six poles. To complete one revolution, the rotor will require
24 electrical pulses to move the 24 steps [11]. Stepper motor
Qy = −SC Px + CC CA Py + CC SA Pz + Ly (7)
for the DVD-ROM drive A plotter can be made by automating
Qz = −SA Py + CA Pz + Lz a tow motor to manipulate the coordinates (X, Y) of an axis
with a flexible head [13], [14].
B. Mechanical system design 2) Servo-motor: Servos are operated by transmitting a
Plywood was used for the manufacture the External frame variable width electrical pulse, also known as pulse width
that the DVD rail and arduino is fixed on [10]. The mechanical modulation, across the control line (PWM). There’s a mini-
system design show in figure 2. mum pulse, a maximum pulse, and a repeating frequency [3].
Servos are operated by transmitting a variable width electrical
pulse, also known as pulse width modulation, across the
C. Electronics system control line (PWM). There’s a minimum pulse, a maximum
This section will go over the electronic components and pulse, and a repeating frequency [15].
wiring that we’ll need to design and build our machine. 3) L293D motor driver: The signals for controlling the
The Arduino Uno, shield with L293D driver model, two stepper motors are usually generated by a micro-controller
stepper motors, one servo motor, power supply, pen holder, and or another source with a limited output current. Between
some cables are the primary electronic components required. the micro-controller and the motor, motor drivers supply the
2
The 1st Scientific Conference for Aerospace Researches & Applications Sudan (SCARA-1)-2021
E. Software Program
1) Inkscape: Is a vector graphics editor that is free and
open-source. Vector graphics, such as illustrations, diagrams,
line arts, charts, logos, and complicated paintings, can be
created or edited with this software. Scalable Vector Graphics
(SVG) is Inkscape’s primary vector graphics format; however,
numerous additional formats can be imported and exported.
Inkscape can draw basic vector forms and text (such as
rectangles, ellipses, polygons, arcs, spirals, stars, and 3D
boxes) [19].
2) Processing: Preparing is an open-source graphical li-
Fig. 8. Case one.
brary and incorporated advancement climate (IDE) worked
for the electronic expressions, new media workmanship, and
visual plan networks fully intent on showing non-software program. (Machine time, way length, MAX MIN point of the
engineers the basics of PC programming in a visual setting. direction, the number of fragments, circular segments, and so
Handling utilizes the Java language, with extra rearrangements forth) There is a trace of G, M codes when the mouse. Shows
like extra classes and associated numerical capacities and the place of the direction, the focuses of the circular segments.
tasks. It likewise gives a graphical UI to improving on the Showcases an equidistant revision. There is an edge by outline
accumulation and execution stage. Handling incorporates a route, with discharge in the status bar the current boundaries
sketchbook, a negligible option in contrast to a coordinated of the program. There are show data about the thing, when
advancement climate (IDE) for getting sorted out projects [20]. tapped on it with the mouse in the designs window and much
3) Proteus: The software is used mainly by electronic more [22].
design engineers and technicians to create schematics and After running the NC, the converted G-code image will appear
electronic prints for manufacturing printed circuit boards. in the graphics window.
Proteus was employ to simulate motors movement as shown
in Figure 5 [20]–[22].
4) NC Corrector: NC Corrector is a free manager visualizer III. RESULTS AND ANALYSIS
programs for CNC machines (Gcode). Commodity in DXF, A plotter machine was ready to use after testing and
APT organization. Shows an assortment of data about the calibration. Because the plotter machine was designed and
3
The 1st Scientific Conference for Aerospace Researches & Applications Sudan (SCARA-1)-2021
built according to specifications, it can plot and write. A [8] du Preez, R., 3d 6-dof serial arm robot-kinematics and implementation
picture of what to be printed will convert to the G-code in linuxcnc, 2014.
[9] She, C.-H., C.-C. Chang. Design of a generic five-axis postprocessor
form by using INKSCAPE program and will send to the based on generalized kinematics model of machine tool. International
Arduino serially. Inside the Arduino there is a coordinate Journal of Machine Tools and Manufacture, 2007. 47(3-4): 537-545.
separator, which then divides our input that it receives to [10] Dayan, C.B., F. Afghah, B.S. Okan, M. Yldz, Y. Menceloglu, M. Culha,
and B. Koc. Modeling 3D melt electrospinning writing by response
X, Y, Z coordinates. Then it is send to a motor, in which surface methodology. Materials & Design, 2018. 148: 87-95.
the Z coordinate move to the Servo motor that directs the [11] Jawitz, M.W., M.J. Jawitz, Materials for rigid and flexible printed wiring
movement of pen, Y coordinate is send to the Stepper motor boards. 2018: CRC Press.
[12] Pulford Jr, R., Linear stepper motor, 2004, Google Patents.
1 that directs the horizontal movement of the DVD rail, X [13] Andrei, T., I. Nae. Practical Applications Performed by a Stepper Motor
coordinate is send to the Stepper motor 2 that directs the CNC Router. Petroleum-Gas University of Ploiesti Bulletin, Technical
vertical movement of the DVD rail. The overall output of Series, 2010. 62(1).
[14] Nae, I., T. Andrei. Designing and Building a CNC Router Using Stepper
this research, plotting Geometrical shapes, was achieved by Motors. Petroleum-Gas University of Ploiesti Bulletin, Technical Series,
merging hardware and software. 2010. 62(1).
[15] Raut, M., G. Shete, V. Shinde, and A. Suryawanshi. Automatic Mini
CNC Machine for PCB Drawing using Arduino. International Research
Journal of Engineering and Technology (IRJET), 2019. 6(6): 310-314.
IV. CONCLUSION [16] Shetti, P.R., A.G. Mangave. DC motor speed control with feedback
monitor based on C application. International Journal of Research in
The goal of this study is to develop a mechanical prototype Engineering and Technology, 2014. 3(3): 398-401.
of a CNC Writer machine that can draw a 20cm by 20cm [17] SIMPSON, N. DEVELOPMENT OF REMOTELY OPERATED
pattern (or any image/text) on a solid surface. Because stepper TRASH CLEANING ROBOT FOR RIVER CLEANING PROCESS.
2017.
motors are precisely controlled, it consumes less power and [18] Ahmed, B. Design and Analysis Mini CNC Plotter Machine. 2018.
operates with high precision. In comparison to other CNC [19] Bah, T. Inkscape. 2010.
products, this is a low-cost endeavor. It’s created from readily [20] Fry, B., C. Reas, Processing. 2001: na.
[21] XIANG, J. Simulation of IC Bus Technology Based on Proteus. Journal
available parts and components. The machine is created with of Jishou University (Natural Sciences Edition), 2020. 41(6): 32.
a very simple construction scheme and can be taken anywhere [22] Zhang, D., X. Chen, and R. Du. A CNC program module based on polar
without much effort, and the algorithm utilized is simple. This coordinate system. The International Journal of Advanced Manufacturing
Technology, 2013. 68(5-8): 1767-1773.
arrangement of hardware with a combination of Gcode gives
better ac-curacy and reduces the work load. G-code makes it
simple to locate information about the locations of all stepper
motors that are moving, because the state of our moving
motors is displayed directly on the computer, allowing us to
start or stop the machine whenever we need it. Making a
compact machine allows for greater job flexibility. The pen
can be replaced with a pinhead, laser head, strong drill, or
any other tool for a variety of applications, allowing it to be
used for milling as well as drilling.
ACKNOWLEDGMENT
This work was supported by Karary University. The authors
would like to thank the department of electrical engineering
at Karary University for their continuous help and support
R EFERENCES
[1] Saffady, W., Introduction to automation for librarians. 1999: ERIC.
[2] Spilling, T. Self-Improving CNC Milling Machine. 2014.
[3] Ahmed, S.H., N. Razzaq, Z. Malik, U. Qadeer, I. Sarfraz, and A. Sharif.
Design & fabrication of MATLAB based solar powered CNC machine. in
2017 3rd IEEE International Conference on Control Science and Systems
Engineering (ICCSSE). 2017. IEEE.
[4] Hidayatullah, M., F.I. Hariadi, and A. Sasongko. Development of interface
and coordination module of FPGA-based controller for CNC PCB milling
and drilling machine. in 2017 International Symposium on Electronics
and Smart Devices (ISESD). 2017. IEEE.
[5] Acua, F., A. Gordn, and W. Nez. Design and implementation of a proto-
type lathe milling of computer numerical control. in 2013 II International
Congress of Engineering Mechatronics and Automation (CIIMA). 2013.
IEEE.
[6] She, C.-H., R.-S. Lee. A postprocessor based on the kinematics model
for general five-axis machine tools. Journal of Manufacturing Processes,
2000. 2(2): 131-141.
[7] Jung, Y., D. Lee, J. Kim, and H. Mok. NC post-processor for 5-
axis milling machine of table-rotating/tilting type. Journal of Materials
Processing Technology, 2002. 130: 641-646.