MechatronicsCP Report
MechatronicsCP Report
Application
Abstract- This paper presents the development of a miniature CNC machine using an Arduino Uno
low-cost, miniature Computer Numerical Control microcontroller and readily available components. The
(CNC) machine for educational and experimental goal is to create a low-cost, adaptable system for
purposes. The system utilizes an Arduino Uno learning and experimenting with robotics and CNC
microcontroller, 28BYJ-48 stepper motors, ULN2003 technology.
motor drivers , and readily available hardware
components. The mechanical design incorporates 3D This project aligns with the growing emphasis on STEM
printed parts for precise and adaptable construction. education and project-based learning [5]. Miniature
The software implementation involves GRBL library CNC machines offer an engaging way to learn
for Arduino, Inkscape for image vectorization, and programming, electronics, mechanics, and design. They
UGS for microcontroller communication. This paper empower students to explore their creativity, solve
details the hardware and software integration, design problems, and develop essential skills.
considerations, and potential applications of this
miniature CNC machine. The development of this miniature CNC machine is
driven by several key objectives:
Keywords- CNC Machine, Arduino, Stepper Motors,
GRBL, Inkscape, UGS, Robotics, Automation, 3D Accessibility and Affordability: To create a CNC
Printing, Education, Mechatronics system accessible to students, hobbyists, and educators
with limited budgets by using readily available, low-
I. Introduction cost components.
Computer Numerical Control (CNC) machines have Educational Value: To provide a hands-on learning
revolutionized manufacturing by automating platform for understanding CNC technology,
production with high precision and repeatability [1]. programming, electronics, and mechanical design.
These machines, following programmed instructions, Adaptability and Customization: To enable users to
precisely control tools and workpieces to create intricate modify and adapt the CNC machine for various
designs and components. While industrial CNC applications and experiments, fostering creativity and
machines are sophisticated and expensive, the rise of innovation.
microcontrollers and open-source hardware has made
CNC technology more accessible for education and Open-Source and Replicability: To utilize open-
hobbyist projects [2, 3]. source hardware and software, allowing for easy
replication and modification by others, contributing to
Miniature CNC machines offer a valuable platform for the maker community.
understanding automation, control systems, and
computer-aided manufacturing (CAM) [4]. They This project leverages the Arduino Uno's versatility and
provide hands-on experience in designing, building, and ease of use, along with the affordability of 28BYJ-48
operating CNC systems, fostering creativity and stepper motors and ULN2003 motor drivers. The
technical skills. This project focuses on developing a mechanical design incorporates 3D printed parts for
precision and adaptability. The software
implementation utilizes the GRBL library for Arduino D'Ausilio [9] explored the use of Arduino as a low-cost
for G-code interpretation and motor control. Inkscape is and multipurpose lab equipment, showcasing its
used for image vectorization, and JScut facilitates G- potential for various applications in education and
code generation. Finally, UGS (Universal G-code research. They demonstrated the use of Arduino for data
Sender) provides a user-friendly interface for acquisition, control, and automation in various scientific
communication and control. experiments, highlighting its versatility and ease of use.
Their work reinforces the choice of Arduino Uno as the
This paper provides a comprehensive overview of the microcontroller platform for this project, given its
miniature CNC machine's development, including versatility, affordability, and ease of use.
hardware and software components, design
considerations, and potential applications in education, Di Prima [10] demonstrated the use of a low-cost
hobbyist projects, and experimental research. microcontroller circuit for automating a single ring
infiltrometer, highlighting the versatility of
II. Literature Review microcontrollers in scientific instrumentation. They
developed a system that automatically controls the
The development of miniature CNC machines has water flow and measures the infiltration rate, improving
gained significant traction in recent years, fueled by the the efficiency and accuracy of the measurement process.
increasing availability of affordable microcontrollers Their research shows the potential of microcontrollers
and open-source hardware and software. Several in automating scientific experiments and data
research studies and projects have explored the design, acquisition, which can be explored further with the
implementation, and applications of these systems, miniature CNC machine developed in this project.
providing valuable insights and inspiration for this
project. Mohammed et al. [11, 12, 13] conducted research on
various applications of robotics and automation,
Pabolu and Shrinivas [6] presented the design and including pipeline inspection robots, carbon monoxide
implementation of a three-dimensional CNC machine monitoring systems, and RFID-based book tracking
using stepper motors and a microcontroller. Their work systems. Their work emphasizes the growing
highlighted the importance of precise motor control and importance of robotics and automation in diverse fields,
the use of appropriate software tools for G-code ranging from industrial automation to healthcare and
generation and communication. They emphasized the environmental monitoring. Their research provides a
need for careful selection of stepper motors and drivers broader context for the application of robotics and
to achieve the desired accuracy and speed. Their automation, inspiring potential future applications for
research demonstrated the feasibility of creating a the miniature CNC machine.
functional 3D CNC machine using readily available
components and open-source software, which aligns Zamani et al. [12] developed a handwriting robot based
with the objectives of this project. on CNC principles, utilizing an Arduino
microcontroller and stepper motors for pen movement.
Nae and Andrei [7] focused on the design and Their research highlights the adaptability of CNC
construction of a CNC router using stepper motors, technology for various robotic applications, including
emphasizing the mechanical aspects and the challenges writing, drawing, and other tasks that require precise
of achieving accurate and stable motion control. They motion control. They explored different control
investigated different types of linear motion systems, algorithms for generating smooth and accurate
such lead screws and linear bearings, and analyzed their handwriting, demonstrating the potential of CNC
performance in terms of accuracy and rigidity. Their technology in robotics and automation. Their work
findings provide valuable guidance for the mechanical provides a direct example of a robotic application of
design of the miniature CNC machine in this project, CNC technology, which can be further explored and
particularly in selecting appropriate linear motion expanded upon with the miniature CNC machine
components and ensuring stability. developed in this project.
Pahole et al. [8] investigated the construction and In addition to the research studies mentioned above,
evaluation of a low-cost table CNC milling machine, several other projects and initiatives have contributed
demonstrating the feasibility of creating functional to the development and popularization of miniature
CNC systems with readily available components. They CNC machines.
explored the use of recycled materials and readily
available tools to minimize the cost of construction, These include:
making CNC technology more accessible to hobbyists
and educators. Their approach of utilizing readily The RepRap project, which promotes the development
available and low-cost materials resonates with the of self-replicating 3D printers, has also contributed to
accessibility and affordability objectives of this project. the accessibility of CNC technology by making 3D
printing more affordable and accessible.
28BYJ-48 Stepper Motors (x3): These small and
The Arduino CNC Shield, a hardware add-on for inexpensive stepper motors provide precise incremental
Arduino boards, simplifies the connection of stepper motion control, making them ideal for driving the CNC
motor drivers and other CNC components, making it machine's axes. Their specifications include a step angle
easier to build CNC machines. of 5.625°/64, a voltage rating of 5V, a current rating of
100mA/phase, and a gear ratio of 1/64. These motors
The GRBL community, which provides support and offer a good balance of cost, size, and performance for
resources for the GRBL firmware, has contributed to the this project.
development and improvement of this open-source
CNC control software.
• Ciruit Design
The ULN2003 stepper motor drivers play a crucial role The circuit diagram also includes connections for limit
in controlling thestepper motors. These drivers act as switches (optional). Limit switches are sensors that
intermediaries between the Arduino Uno and the detect the end positions of the CNC machine's axes.
motors, providing the necessary current and voltage They can be used to prevent the machine from moving
levels to drive the motors effectively. Each driver is beyond its physical limits, protecting it from damage.
responsible for controlling one axis of motion (X, Y, or
Z). The electronic design of the miniature CNC machine is
straightforward and easy to implement. The use of
The Arduino Uno's digital output pins are connected to readily available components, such as the Arduino Uno
the input pins of the ULN2003 drivers. These digital and the ULN2003 drivers, makes it accessible to
pins send signals to the drivers, instructing them to step hobbyists and students. The circuit diagram provides a
the motors in specific directions and at specific speeds. clear visual representation of the connections between
The drivers then amplify these signals and provide the the components, facilitating the construction and
necessary power to the stepper motors. troubleshooting of the system.
V. Conclusion
[5] Land, M. H. (2013). Full STEAM ahead: The [12] Mohammed, M. N., Ghanesen, Y., Al-Sanjary, O.
benefits of integrating the arts into STEM. Procedia I., Ali, M. A. M., Zamani, N. S., & Al-Zubaidi, S.
Computer Science, 20, 547-552. (2019). Investigation on Carbon Monoxide Monitoring
and Alert System for Vehicles. In 2019 IEEE 15th
[6] Pabolu, V. K., & Shrinivas, K. N. H. (2010). International Colloquium on Signal Processing & its
Design and implementation of a three-dimensional Applications (CSPA 2019) (pp. 239-242). IEEE.
CNC machine. International Journal of Computer
Science and Engineering, 2(5), 2567-2570. [13] Mohammed, M. N., Radzuan, W. M. A. W., Al-
Sanjary, O. I., Ali, M. A. M., Raya, L., & Al-Zubaidi,
[7] Nae, I., & Andrei, T. (2010). Designing and S. (2019). Study on RFID Based Book Tracking and
building a CNC router using stepper motors. Serial Library Information System. In 2019 IEEE 15th
Technical, LXII, 55-62. International Colloquium on Signal Processing & its
Applications (CSPA 2019) (pp. 235-238). IEEE.
[8] Pahole, I., Rataj, L., Ficko, M., Klancnik, S.,
Brezovnik, S., Brezocnik, M., & Balic, J. (2009). [14] Zamani, N. S., Mohammed, M. N., Abdullah, M.
Construction and evaluation of low cost table CNC I., & Al-Zubaidi, S. (2019). A New Developed
milling machine. Scientific Bulletin, Series C: Technique for Handwriting Robot. In 2019 IEEE
Mechanics, Tribology, Machine Manufacturing International Conference on Automatic Control and
Technology, XXIII, 1-7. Intelligent Systems (I2CACIS 2019) (pp. 267-270).
IEEE.
[9] D'Ausilio, A. (2012). Arduino: A low-cost
multipurpose lab equipment. Behavior research [15] Ďurina, D., Petrovič, P., & Balogh, R. (2006).
methods, 44(2), 305-313. Robotnačka - The Drawing Robot. Acta Mechanica
Slovaca, 2-A, 121-126.