2014 - A Low-Cost Web-Based Learning Platform For CNC Machining Education
2014 - A Low-Cost Web-Based Learning Platform For CNC Machining Education
91
To make the machine even more affordable and accessible, a Several VR-based CNC machining systems also incorporate
web-based learning platform is developed enabling remote haptic feedback to the learners using head-mounted displays,
operation of the lathe for instructional purposes. data gloves, projection screens, and so on. For example, the
CNC Partner Virtual Reality System developed by Li, et al at
Harbin Institute of Technology and produced by Shenzhen Hite
II. REVIEW OF CNC MACHINING EDUCATION Intelligent Equipment Co. Ltd, et al was installed in over 200
vocational schools in China [15]. A low-cost remote machining
Due to the emergence of planned obsolescence, high-tech
system with an older model of CNC mill (that does not provide
gadgets with short lifetimes, and fast-changing fashion
Internet connectivity) has been developed by Monroy, et al.
products, flexible manufacturing systems (FMS) have bec? me
[16]. In this system, students can upload their CNC programs to
the heart of modern industry. Education in computer aided
the machine from, and download programs from the machine
design (CAD), computer aided manufacturing (CAM), � N� ,
to, their portable devices (like tablet and laptop computers),
and computer integrated manufacturing (CIM) technologies IS
using Bluetooth, wireless, and LAN.
accordingly crucial in Indian engineering colleges,
The virtual training platforms allow learning of CNC milling
polytechnics, and ITls as well as some high schools that
and turning operations at user's pace. However, under Indian
provide vocational training.
conditions the costs of VR gloves, stereo glasses, workstations,
Over 70% of modern manufacturing in US and UK depends
and high-resolution displays are prohibitively high to realize at
on the use of CNC machines [7], and skilled machinist jobs are
the user end, like colleges, polytechnics, and ITls. Most
well-paying and abundant in number. Machinists need to be up
educational institutions do not also have sufficiently fast
to date in operations and programming of CNC machines, like
broadband Internet connections for the graphics-intensive VR
mill, lathe, router, and laser/plasma cutter as well as the
data communications to be effective.
emerging 3D printers. All these machines operate on similar
With rapid advances in materials science and electronics, the
principles such as use of stepper/AC servo motors, mo�or
cost and size of actuators, sensors, controllers, memory, and
drivers, controllers, and computer software for executmg
computers have been on the decline, along with an increase in
motion control commands. The main differences are in the
their power and capabilities. Therefore, mechatronics
mechanical design and the use of the tool for end operations
researchers are focused on coming up with in-house, build
(material removal, cutting, carving, etc.).
your-own (BYO), or do-it-yourself (DIY) design, development,
Traditional education in CAD/CAM/CNC machining [9] has
and testing of laboratory equipment and systems, including
been hampered by the high cost of industry-grade machines
robots, work cells, and CNC machines, e.g., [17] - [20].
used in teaching laboratories, as well as the high cost of
Recently, two of the authors have developed a low-cost, 3-
CAD/CAM software even at academic discounts. Therefore,
axis CNC vertical milling machine for teaching purposes [21].
many engineering educational institutions in India typically
The design was based on a pre-assembled high-density
carry only one each of CNC mill and lathe. The maintenance
polyethylene frame and used three NEMA19 stepper motors
and operating costs of these machines are high, and moreover
with off-the-shelf motor drivers. The mill is capable of
they are overdesigned for student learning. The lab instructor
machining with light-density materials like foam, machinable
and technician demonstrate the operation of the machines, and
wax, wood, PVC, and aluminum. 3D model designs for
the students do not generally get an opportunity to work hands
commercial or open source CAD software can be converted to
on with the machines. Breakdown of the machines due to
G code using open source software for operation by the motors.
incorrect operation by students can result in expensive repairs,
The desktop CNC mill can be readily scaled up to a larger
as the machines are often imported and spare parts need to be
size, higher accuracy, and power capability, simply by use of
imported too. Alternatively, students write CNC programs by
high power stepper motors, high current motor drivers, and
hand, and execute them on computer simulation software for
high resolution power transmission mechanisms. The design
the specific machines [8].
and operation principles can also be extended in a
Simulation of CNC machining is safe and flexible but the
straightforward manner to other CNC machines.
results do not provide students the feel and satisfaction of
Better use of the desktop CNC machines for education and
directly operating physical machines. Moreover, simulation
training can be ensured by connecting a few of the machines in
experiments do not often reveal the effects of real-world
a LAN or to the Internet, and enabling teleoperation or web
constraints like power supply fluctuations, finite word limits of
based machining with over LAN or Internet with real-time
digital hardware, motor backlash, static and dynamic friction in
mechanisms, and so on. multimedia feedback [22] - [23]. Therefore, a web-based
Over the past decade or so, several academics have focused learning platform for teleoperation of the proposed CNC lathe
on the use of virtual learning environments using Virtual by remote users is proposed in this paper.
Reality (VR) technologies for imparting training in CNC
machining, e.g., [10] - [14], Typically, these systems are based
on software tools like Virtual Reality Modeling Language
(VRML), Java, and HTML so that users can work with III. WEB-BASED MACHINING OF A CNC LATHE
interfaces similar to those of industrial CNC machines, modify The principle of web-based machining with a CNC machine is
the parameters of machining, and view the results of their illustrated in Fig. l. The user (client) at college, school, or
programs in computer graphics animation.
92
home can log in from a web browser with a specified user ID weight compact chuck is planned to be added to the high-speed
and password onto the web server of the laboratory, as spindle motor.
specified by a domain server name or IP address. The CNC The main specifications of the assembled CNC machine are
machine is connected to the server via a script written in PHP. listed below:
The browser page shows CNC controls for manual control (jog
mode for testing the range and limit points of motion), or
automatic control by uploading the user's G code program.
The user interface is written in HTML language. On the Table 1. CNC lathe specifications
same browser page, the user can view in real time the
machining operation of the CNC machine using video from an X axis travel 320 mm
on-site pan-tilt-zoom (PTZ) camera focused on the work piece. Y axis travel 300 mm
The user interface also provides buttons for camera control. Tool piece height 220 mm
The live streaming uses the BroadCam video streaming server.
Tool diameter 3 mm
If the user's Internet connection is not sufficiently fast so as to
view live streaming in good quality, the video of the machining Chuck size 13 mm
operation on the user's program can be stored on the server for Stepper motors 2xNEMA 23, 10 kg-cm
later retrieval by the user. The server also provides audio torque, 1.8°, 200 stepirev, 2-
feedback to the user, so that the sound of the machining also is phase, 4 wire, bipolar, 2.8A
audible for a realistic learning experience. In the case of Lead screws Stainless steel, 2xM8 360mm
machining from a school classroom, say, audio/video feedback long, thread pitch 2 mm
from the user is provided to the laboratory personnel so that Spindle motor 230 V AC rotary drill used
instructions can be passed on for change of tool or work piece, Power supply 24 V, ISA, 360 W, switching
etc. power supply
Stepper motor Single axis, rated SA, peak
A. Mechanical System drivers 3.SA, rated 12 V to SO V DC,
up to 1116 microstepping,
The body of the CNC lathe is made of 8 mm medium density adjustable step, current, and
fiberboard (MDF) sheets. The X and Z linear motion are half-decay
achieved with two NEMA23 stepper, lead screws, guide rods, Microcontroller Arduino Uno, R3 board, with
and related accessories. The lathe has a fixed gantry and a ATmega328P @ 16MHz
mobile bed, with a limited working range. For compactness, the Frame material 8 mm MDF board
electronic control system is mounted onto the side of the
machine. Presently, an AC corded drill is used as a spindle
A photograph of the 2-axis horizontal CNC lathe is shown in
motor with fixed speed, but in future a DC/AC servo spindle
Fig. 2.
motor and large size chuck will be used as the drill has limited
speed and torque to deal with stronger materials. Also, a light-
93
IV. CNC MACHINE CONTROL SOFTWARE
94
[2] D. Sims, 2013, "China widens lead as world's largest
manufacturer", http://news,thomasneL com/ imtl2013/03/14
china-widens-Iead-as-worlds-Iargest-manufacturer.
[3] India Brand Equity Foundation, "Role of manufacturing in
India's employment generation",
http://www.teachstemnow.comltlying-high-with-aerial
robots-part-2-designl
[4] G. Das, 2014, "India benefits as China loses its
manufacturing edge", Business Today, March 2,
http://businesstoday.intoday.inlstory/india-benefits-china
begins-to-Iose-manufacturing-edge/1/203040.htmI
[5] http://www.makeinindia.gov.in!
Fig. 4. Screenshot of a PyCAM 3D model [6] J. Manyika, M. Chui, J. Bughin, R. Dobbs, P. Bisson, and
A. Marrs, 2013, "Disruptive technologies: Advances that
The prototype CNC lathe can be scaled up for size and will transform life, business, and the global economy",
power using larger motors and larger frame and power McKinsey Global Institute, http://www.mckinsey.com/
transmission subsystem. insights/business_technology/disruptive_technologies
Another web-based digital fabrication platform that can be [7] A P. M. Swamidas and G.W.Winch, 2003, "Exploratory
used to generate the G code for milling, carving and turning study of adoption of manufacturing technology innovations
operations is Easel [26]. Here, the user can draw or design in in the USA and the UK", Int. J. Production Research, 40,
2D, and preview the design in 3D. The software generates G pp. 2677-2700.
code for uploading to a CNC machine. [8] Y. Zhang, X. Xu and Y. Liu, 2011, "Numerical control
There is significant scope for expansion of the potential of machining simulation: a comprehensive survey" Int. J. of
the proposed low-cost CNC machines for teaching and learning Computer Integrated Manufacturing, 24(7), pp. 593-609.
machining. The CNC machines can be integrated with robot [9] G. Reim, 2012, "Wentworth: Lessons from one year of
work cell, vision system, and conveyor belt to form a CIM cell teaching CNC programmers", Manufacturing Engineering,
[22]. The open structure of the CNC machine enables students 149(6), pp. 75-77.
to gain a better understanding of the design and operation of [10] A. A. Kadir, X. Xu, and E. Hammerle, 2011, "Virtual
the mechanical and electronic subsystems. Further, as students machine tools and virtual machining-A technological
gain a solid understanding of the open source hardware such as review", Robotics and Computer-Integrated
Arduino and Raspberry Pi and associated open source Manufacturing, 27, pp. 494-508
machining software, they can be encouraged to build their own [11] H. Hanwu and W. Yueming, 2009, "Web-based virtual
prototypes at even lower cost, e.g., using cheaper, lower-power operating of CNC milling machine tools", Computers in
stepper motors or recycled motors from old printers, construct Industry, 60, pp. 686-697.
the machine frame and work table with cheaper materials like [12] A. Antonietti, E. Imperio, C. Rasi, and M. Sacco, 2001,
plywood, and so on. "Virtual reality and hypermedia in learning to use a turning
lathe", J. Computer Assisted Learning, 17, pp. 142-155
VI. CONCLUSIONS [13] H. Lin, C. L. Hon, and C. J. Su, 1996, "A virtual reality
based training system for CNC milling machine
This paper has presented a web-based learning platform operations", Annual J. Institute of Industrial Engineers
for teaching turning operations on an inexpensive two-axis (HK), 97, pp. 13-16.
horizontal CNC lathe capable of web-based learning. The cost [14] S. K. Ong, L. Jiang and A. Y. C. Nee, 2002, "An Internet
of the system is only a small fraction of commercial or Based Virtual CNC Milling System", Int. J Adv.
educational model CNC lathes typically used in the laboratory. Manufacturing Technology, 20, pp. 20-30.
However, as the system is built using open source hardware and [15] J. Li, Y. Yao, and J. Wu, 2011, "CNC Partner: A Novel
software technologies, our model encourages hands-on learning Training System for NC Machining", Computer
by students leading to better learning outcomes. In future, the Applications in Engineering Education, 19(3), pp. 466 -
methodology will be extended to low-cost development of 474.
other CNC machines, and accessories like automatic tool [16] V. M. Monroy, J. de Dios Calderon, and J. C. V. Miranda,
changer. User-friendly software like SketchUp enable its use 2005, "Taking the Lab into the Classroom: Using Mobile
over the Internet by school students. Technology to Monitor and Receive Data from CNC
Machines", J. of Manufacturing Systems, 24(3), pp. 266-
270.
REFERENCES [17] K. Nagai, "Learning while doing: Practical robotics
education", IEEE Robotics & Automation Magazine, vol.
[1] Wikipedia, 2014, "Economy of India", http://en.wikipedia. 8, pp. 38-43, June 200l.
org/wikilEconomy_oCIndia
95
[18] P.A. Sherring da Rocha Jr., R.D.S. Souza, and M. Emilia
de Lima Tostes, 2012, "Prototype CNC machine design",
J. of Energy and Power Engineering, 6, pp. 1884-1890.
[19] I. Pahole, L. Rataj, M. Ficko, S. Klancnik, S. Brezovnik,
M. Brezocnik, and J. Balic, 2009, "Construction and
evaluation of low-cost table CNC milling machine",
Scientific Bulletin, Series C: Mehcanics, Tribology,
Machine Manufacturing Technology, XXIII, pp. 1-7,
2009.
[20] I. Nae and T. Andrei, 20lO, "Designing and building a
CNC router using stepper motors", Seria Technica, LXII,
pp. 55-62.
[21] S. Pandian and S. R. Pandian, 2014, "A low-cost build
your-own three axis CNC mill prototype", Int. J.
Mechanical Engineering and Robotics, vol. 2(1).
[22] H. T. Tu, M. S. Chen and Y. C. Kao, 2005, "A web-based
remote machining cell", Proc. IEEE Int. Con! On
Mechatronics, Taipei, pp. 953-958.
[23] L. Wang, P. Orban, A. Cunningham, and S. Lang, 2004,
"Remote real-time CNC machining for web-based
manufacturing", Robotics and Computer-Integrated
Manufacturing, 20, pp. 563-57l.
[24] http://www.sketchup.com/
[25] http://pycam.sourceforge.net/
[26] http://www.easel.com/
96