Content IOT 2D Print (Final)
Content IOT 2D Print (Final)
Standard file formats, including Gerber, which are frequently used in PCB design
and related industries, are supported by the robot's design. After processing, this
file is transformed into G-code, which is the set of instructions used by the robot to
operate. In order to simplify the hardware architecture and preserve precise control
over the pen's up-and-down movements, the design incorporates a servo motor for
vertical pen control, which replaces the conventional Z-axis. To ensure smooth
transitions between drawing activities, the servo motor lifts and lowers the pen at
predetermined angles.
CHAPTER 1
INTRODUCTION
The Internet of Things (IoT) is revolutionizing the way machines and systems
operate, enabling seamless connectivity, monitoring, and control over networks.
Combined with advancements in robotics, IoT has the potential to address
challenges in automation and precision across various domains. This project
explores the integration of IoT and robotics in the development of a 2D printing
robot specifically designed for printing text and graphics with high precision. By
leveraging IoT technology, this system offers a cost-effective and versatile solution
to tasks that require meticulous detail and adaptability, making it a valuable tool in
domains such as electronics, education, and creative arts.
2
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
for the Internet of Things to thrive has been made possible by the development of
ubiquitous computing, which is the smooth incorporation of computing power into
commonplace items, and the emergence of commodity sensors, which are
reasonably priced and multipurpose. As these technologies develop, they have been
incorporated into a number of sectors, including as healthcare, industry, and
agriculture. IoT devices now have an additional layer of intelligence thanks to
developments in machine learning and data analytics, which allow them to respond
to real-time data, make decisions on their own, and increase productivity. This
feature enables IoT devices to serve as both active parts of smart systems that can
adjust and improve their performance depending on context and environmental
factors, in addition to being data collectors.
IoT is arguably most commonly associated with "smart home" devices in consumer
markets, such as remotely controlled appliances, thermostats, home security
cameras, and smart lighting systems. These gadgets frequently function within
popular ecosystems or platforms, like Google Home, Apple HomeKit, or Amazon
Alexa, which let users monitor and control them via voice assistants, smartphones,
or tablets. Users may more easily control several gadgets in their homes because to
this degree of interconnectivity, which makes daily tasks more convenient and
customized. IoT has shown to be quite useful in healthcare systems in addition to
consumer applications. Healthcare IoT enables more precise diagnosis, remote
patient monitoring, and the automation of some medical procedures through the
integration of sensors and monitoring equipment. By giving patients ongoing care
and relieving the burden on medical staff, this has the potential to revolutionize
healthcare.
However, worries about the privacy and security implications of IoT devices are
growing as they become more commonplace. IoT devices are susceptible to
cyberattacks due to their interconnectedness and the volume of sensitive data they
gather. These gadgets can be used by hackers to obtain private data or even
jeopardize the operation of whole networks. Furthermore, a lot of Internet of Things
devices send data wirelessly, frequently using uncontrolled frequencies, which
might lead to questions regarding data security and access. This makes it difficult
to guarantee that IoT systems abide by national and international laws pertaining
3
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
to data security and privacy. Addressing these issues has become a top priority for
business participants and regulatory agencies as the IoT ecosystem expands.
Standards and procedures for protecting IoT devices and guaranteeing the privacy
of data produced by these devices are being developed by governments and
organizations. In order to reduce hazards and guarantee the ethical and safe
application of IoT technology across a range of industries, these initiatives seek to
define precise rules that developers, manufacturers, and users must abide by.
4
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
and non-drawing phases while streamlining the system and preserving fine control
over the pen's up-and-down movements.
1.1 Background
2D printing technology has seen widespread use in industries ranging from graphic
design to manufacturing, with applications requiring high-quality prints of text and
images. Traditional 2D printers are limited in terms of connectivity, automation,
and scalability. However, the advent of the Internet of Things (IoT) offers an
opportunity to address these limitations by enabling remote control, monitoring,
and real-time adjustments. IoT- enabled systems are increasingly utilized in various
fields to enhance operational efficiency, making it a valuable addition to the realm
of 2D printing. Integrating IoT with 2D printers would provide significant benefits,
including better control, increased precision, and the ability to scale operations.
1.2 Purpose
The purpose of this project is to design and develop an IoT-based 2D Printer Robot
capable of printing text and graphics from standard file formats. The project aims
to integrate IoT technology for remote data transfer, and user- friendly operations,
while ensuring high precision and conformance to industry standards. By
combining 2D printing with IoT capabilities, this system will allow for seamless
operation.
To implement a robot that prints 2D text and graphics to scale from standard file
formats and confirming to standards.
Existing 2D printers lack integration with IoT, restricting their ability to operate
remotely and efficiently. The challenge of achieving high printing precision and
scalability remains. Additionally, current systems face difficulties in converting
standard file formats into G-code for execution on 2D printers. This project
addresses these issues by developing an IoT-based system that enables accurate
5
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
execution of commands, and smooth file format conversion, enhancing the overall
performance and functionality of 2D printers.
1.4 Objectives
The main objective of this project is to design and build a 2D printer robot
integrated with IoT technology, enabling it to print with high accuracy. The project
is divided into several specific objectives. First the project will focus on developing
a 2D printer robot that can accurately print text and graphics from standard file
formats. Second, the project aims to create a seamless process for converting files
into G-code for accurate printing execution. The project will incorporate an
intuitive interface for effortless management and real-time monitoring of printing
tasks.
6
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
The research methodology for this project follows a systematic approach, starting
with a comprehensive literature review to explore existing technologies and
methodologies. Based on the findings, the system design will involve selecting the
appropriate hardware and software components. The next step is implementation,
which includes assembling the hardware, developing the IoT integration, and
writing the necessary software for controlling the system.
Finally, the testing and validation phase will assess the system's performance,
ensuring that the robot can print accurately and analyze the results to identify any
areas for improvement.
1.8 Delimitations
This project is limited in scope in several ways. The prototype will focus on specific
file formats only and may not support all possible 2D file types. The printing area
of the robot is limited to a predefined size, and only a few predefined print tasks
will be supported in the prototype. The project will focus on precision and IoT
functionality, rather than printing speed, and the printing quality will be judged
visually rather than through quantitative measurements. Furthermore, while the
project explores IoT-based control, it does not cover large-scale industrial
applications.
7
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
• Small-Scale Manufacturing:
Assist small businesses and hobbyists in creating custom designs and limited-
edition prints.
Facilitate affordable solutions for low-volume production needs.
8
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
CHAPTER 2
LITERATURE REVIEW
The paper by Mange Huang, presents a novel design for a portable inkjet printer
that incorporates Internet of Things (IoT) technology for remote cloud-based
printing. The aim of this research is to develop a compact printer that can be
accessed and operated remotely via IoT-enabled devices, allowing users to print
from anywhere. The system utilizes wireless communication for seamless
integration with a cloud platform, where users can manage print jobs, monitor
printer status, and access additional features. The authors address challenges related
to minimizing the printer's size while maintaining its functionality, ensuring
portability, and enabling wireless connectivity. This research highlights the
potential of cloud-based, IoT-enabled printing solutions for both personal and
professional applications [2].
9
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
minimal backlash and a fast switching time of 15.9 milliseconds, making it highly
effective for applications requiring quick and precise polarization adjustments. The
compact and automated design of the mount ensures reproducibility and efficiency,
making it an ideal tool for laboratory environments where precise control of optical
polarization is essential.
10
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
The paper by Mrs. A. Kavitha, explores the integration of a servo motor with the
Raspberry Pi 3B microcontroller using the Blynk app for real-time control. The
system employs a user-friendly interface within the Blynk app, which includes a
slider and a submit button, allowing users to adjust the servo motor's position
interactively. This real-time control mechanism demonstrates the responsiveness
and efficiency that the Blynk app facilitates, contributing to the broader Internet of
Things (IoT) field by enabling precise and mobile-controlled servo motor
operations. The paper highlights the potential of using mobile applications in IoT-
driven automation systems for improved control and user experience.
11
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
12
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
(BIM) in order to get around this. The AMR, which was created with an ESP32
microprocessor and is linked to a cloud platform, prints layout lines precisely and
collects coordinates from BIM-based tools. According to experimental results, the
system achieves an accuracy of ±4 degrees for angle and ±15 mm for precision.
The paper by Heng Xiang, discusses the importance of security in the Internet of
Things (IoT), a network composed of interconnected, heterogeneous devices. With
IoT handling a vast amount of sensitive data and providing widespread
accessibility, securing IoT devices and communications becomes a critical concern.
Traditional cryptographic algorithms and silicon-based security systems are
increasingly vulnerable to evolving attacks, prompting the exploration of 2D
materials in hardware security applications. The authors examine how 2D materials
can enhance IoT security by facilitating the development of true random number
generators (TRNGs), physical unclonable functions (PUFs), and anticounterfeit
technologies. These elements are vital for cryptographic keys, authentication, and
identification. Unlike conventional methods that rely on manufacturing variations,
2D materials offer additional entropy sources, such as the randomness in material
growth and charge trapping/detrapping. The review also covers the progress in the
development of 2D material-based security primitives and highlights challenges
such as entropy sources, reliability, and vulnerability to machine learning-based
attacks.
13
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
The paper by Silvia Conti, explores the use of 2D materials in the development of
printed transistors for large-area electronics, particularly for the Internet of Things
(IoT). The demand for lightweight, flexible, and low-power electronics, which can
be fabricated on various substrates like plastic, paper, and textiles, has driven the
exploration of 2D materials. These materials possess unique chemical
compositions, structures, and electronic properties that make them ideal for use in
field-effect transistors (FETs). The solution processing of 2D materials allows for
fabrication without the need for controlled environments, such as glove boxes, and
requires minimal chemical processing. This, combined with the ability to use
printing technologies, offers advantages in terms of ease of processing, cost-
effectiveness, scalability, and compatibility with flexible substrates. Despite these
advantages, the electronic quality of solution-processed 2D materials remains a
significant challenge, limiting the development of high-performance printed and
flexible devices. The review provides a comprehensive overview of the current
state of research, discussing the performance limits, figures of merit, and the future
challenges and opportunities for the integration of 2D materials in the fabrication
of printed transistors.
The paper by Bisma Manzoor, focuses on the challenges posed by the increasing
number of devices connecting to the network due to the rise of the Internet of
Things (IoT). With the Fifth Generation (5G) technology being expected to handle
large amounts of data generated by these IoT devices, the paper critiques the
common reliance on two-dimensional (2D) network models. It explores the use of
three-dimensional (3D) geometric modeling, which includes considering the
heights of buildings and devices, for more accurate network modeling in IoT
scenarios. By employing stochastic modeling, the paper investigates the 3D
coverage probability of a dense network in Melbourne's Central Business District
(CBD) and compares the results with traditional 2D simulations. The findings
highlight the significant shift in contact distances when considering the third
dimension, demonstrating that the inclusion of building heights in 3D models
greatly influences the coverage probability and cellular characteristics, which are
not captured by 2D models.
14
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
The paper Guiming Cao, explores the increasing demand for computing power
driven by the emergence of artificial intelligence (AI), the Internet of Things (IoT),
and machine learning (ML). With the need for novel computing primitives,
neuromorphic computing, which mimics brain-like processing by combining
analog computing and data storage at the device level, has garnered significant
attention. The paper specifically focuses on the progress made with synaptic
devices inspired by biological synapses, which are built using 2D materials. These
materials, due to their atomic thickness and reduced screening effects, exhibit
highly tunable physical properties under various stimuli, making them ideal for
synaptic applications. The review provides an in-depth look at the advantages of
using 2D materials and heterostructures in synaptic devices, the various types of
multifunctional 2D synaptic devices developed, and their applications in
neuromorphic computing. Furthermore, it discusses the challenges and future
strategies for improving these devices, offering valuable insights into the design,
preparation, and application of 2D material-based synaptic devices for
neuromorphic computing.
The paper by Akshay Wali, addresses the growing concerns of hardware and
information security within the semiconductor ecosystem, which incurs billions of
dollars in annual losses. It also highlights the critical need for robust information
security solutions for edge devices, which handle vast amounts of data. Traditional
silicon-based security solutions, while prevalent, are found to be inefficient,
vulnerable to machine learning (ML) attacks, and resource-intensive, leading to the
need for innovative alternatives.
The review focuses on the potential of 2D materials, such as graphene and
transition metal dichalcogenides, in providing more effective hardware security
solutions. It explores various 2D-material-based security primitives, including
camouflaging, true random number generation, watermarking, anticounterfeiting,
physically unclonable functions (PUFs), and logic locking of integrated circuits
(ICs). The paper discusses how these 2D materials can be employed to improve the
resilience and reliability of security features against modern ML-based attacks. It
also delves into the role of native defects in 2D materials that can contribute to the
development of high-entropy security primitives.
15
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
Furthermore, the authors address the existing challenges for the large-scale
deployment of 2D materials in integrated circuits, focusing on the obstacles that
need to be overcome for these materials to meet the security needs of the
semiconductor industry. This work emphasizes the importance of advancing 2D-
material-based security technologies to address the evolving threats in hardware
and information security.
The paper by Kangzhi Liu, introduces a novel method for the rapid preparation of
photonic crystal patterns using microfluidic printing technology. This approach
enables precise manipulation of the photonic crystal pixels in the patterns.
The authors synthesized hybrid microspheres using a combination of poly(styrene-
methyl methacrylate-acrylic acid) and polyamidoamine dendrimers (G2 PAMAM),
conjugated with CdTe/ZnS quantum dots (QDs) via an in situ reaction. The strong
interactions between the dendrimer-modified microspheres help reduce the
16
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
cracking of photonic crystal films and prevent the formation of coffee-ring pixels,
which are typically problematic in such applications.
Using a microfluidic printing device, they were able to fabricate a fluorescent two-
dimensional (2D) code pattern of photonic crystal beads. These beads exhibited
structural colors under daylight and fluorescence under UV light, demonstrating
the ability to create multi-signal 2D codes. The technique has potential applications
in anti-counterfeiting and optoelectronic fields, offering a new avenue for creating
highly functional, visually distinctive patterns that can be used in security and other
high-tech applications.
17
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
CHAPTER 3
3.1 Construction
The construction of an IoT-based 2D printing robot involves assembling a frame
with linear rails to guide the printhead along the X and Y axes.
Stepper motors, controlled by motor drivers and a Raspberry Pi, provide precise
movement for text and graphic printing.
A servo motor is used to lift and lower the pen or printing tool on the Z-axis. Limit
switches ensure boundary detection and prevent overstepping.
The IoT-based 2D printing robot begins with the user uploading text or graphic
designs via a mobile app or web interface to an IoT server using protocols like
MQTT. The server transmits the data to a Raspberry Pi, which processes it into
motor control commands. These commands drive stepper motors (for X and Y
movements) and a servo motor (for Z-axis control) via motor drivers. Sensors
provide real-time feedback to the Raspberry Pi to ensure precise operation. The
printhead then reproduces the design on a surface, with the user able to monitor the
process remotely through the IoT interface.
18
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
for the motors, while the Raspberry Pi handles software tasks using Python and
motor control libraries. Optional cloud integration allows for remote access and
monitoring of the print process.
Users upload an image to Inkscape, where it is converted into vector paths. The
Gcodetools plugin in Inkscape then translates these paths into G-code instructions
for controlling the print head’s movement. Each output figure and quadrant selected
by the user requires a separate G-code file, which is stored on an SD card. The
Raspberry Pi reads these files, processes the selected figure and quadrant, and sends
the appropriate G-code commands to the motor drivers to control the printing
process. This setup allows users to remotely upload and select images for printing,
with the G-code files generated and executed as needed.
Structure of G-code:
a) Startup section:
G28 (return to initial point)
M107 (turn off fan)
M104 T0 S0 (extruder cooling)
M140 S0 (Bed surface cooling)
M84 (engines stop)
b) Development section:
G1 F900 X125.630 Y90.370 E2.23770
G1 X125.630 Y109.630 E3.07847
G1 X74.370 Y109.630 E5.31618
G1 X74.370 Y90.370 E6.15695
G0 F6000 X74.790 Y90.790
G1 F900 X125.210 Y90.790 E8.35798
G1 X125.210 Y109.210 E9.16209
G1 X74.790 Y90.790 E11.36312
19
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
c) Completion section:
G90 (set origin point)
M82 (prepare the extruder)
M106 S0 (wait in fan open position)
M140 S100 (heating bed surface heating to 100c)
M190 S100 (waiting until temperature to 100c)
20
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
control commands, and uses a G-code parser to interpret these instructions. The
parsed commands, such as positioning the print head or controlling the pen, are
then translated into motor control signals to drive the stepper motors for movement
and servo motors for pen control. The Raspberry Pi executes the commands
sequentially, ensuring accurate printing, while providing real-time feedback to the
user through the IoT platform.
Running G-code on an IoT-based 2D printing robot for text and graphics involves
interpreting and executing the commands in the G-code file to control the robot's
movements and print actions. The process starts when the Raspberry Pi, acting as
the central controller, reads the G-code from the SD card or local storage. Each line
of the G-code file contains instructions for controlling the robot’s movement (e.g.,
G0 for rapid movement, G1 for drawing) and print head actions (e.g., pen
up/down). The Raspberry Pi sequentially processes each command and sends
corresponding signals to the stepper motors to move the print head to the specified
coordinates along the X and Y axes. If the G-code includes actions like turning the
pen on or off, the Raspberry Pi also sends signals to the servo motors that control
the pen.
As the robot follows the G-code commands, it prints the text or graphic by precisely
moving along the defined paths. The Raspberry Pi can also monitor the progress
and send real-time updates or feedback to the user via the IoT platform, ensuring
that the print job is proceeding correctly. The entire process allows the user to
remotely control the print job, with the Raspberry Pi ensuring that all movements
and print actions are executed as per the G-code instructions, resulting in accurate
and detailed 2D prints.
3.8 Advantages
21
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
22
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
23
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
CHAPTER 4
HARDWARE COMPONENTS
4.1 Raspberry Pi
24
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
25
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
duration of the pulses, it is possible to control the motor's speed, direction, and
position. This feature is particularly beneficial for 2D printers, as
it ensures precise movement along the X and Y axes while executing text and
graphic designs.
26
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
Pulse Width Modulation is a technique used to control the position of a servo motor
by varying the width of its input signal pulses. The servo motor interprets these
pulses and adjusts its shaft angle accordingly. In the printer robot, PWM is used to
raise and lower the pen or printhead with precision, ensuring consistent contact
during printing tasks.
27
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
The IoT service integrates the printer robot with external devices for seamless data
transfer and system automation. While this project does not focus on remote
control, IoT enables the transfer of input files and facilitates automated operation.
The IoT service plays a crucial role in ensuring that the printer receives and
processes design files efficiently.
The Wi-Fi module, such as ESP8266 or ESP32, provides the system with wireless
communication capabilities. It enables the transfer of design files to the Raspberry
Pi, allowing the printer to process and execute the instructions without requiring
direct physical input. This feature eliminates the dependency on USB or wired
connections for file management.
28
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
Together, the servo motor lifting the pen on and off the paper in the Z-axis and the
stepper motors in the XY-plane enable the Pen Plotter's drawing motion. G- code,
which instructs the motors on when and how quickly to spin, is used to encode the
instructions for this combined motion. In computer numerical control (CNC)
machining for precision production, G-code is a popular format for expressing
motor instructions since it is simple. All of the pathways the Pen Plotter must follow
in order to produce the output figures must be specified when writing the G-code
for this project. Handwriting the G-code is not practical. Handwriting the G-code
is not practical. In chapter 3.5, the process for creating the G-code will be discussed.
The SD card and reader serve as a medium for storing and accessing design files.
In this project, the SD card is used to transfer G-code instructions to the printer
robot. This feature allows the system to operate without continuous external input,
ensuring an uninterrupted printing process. The SD card reader interfaces with the
Raspberry Pi, facilitating easy file management and retrieval.
4.11 Klipper
29
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
CHAPTER 5
CONSTRUCTION
The construction of an IoT-based 2D printing robot for text and graphics is a complex,
multidisciplinary process that integrates mechanical design, electronics, IoT
communication, and software systems. Below is a detailed, step-by-step explanation of the
construction process:
• FRAME
The frame serves as the skeleton of the robot, providing the necessary structure to hold all
other components in place. It must be rigid enough to prevent any unwanted flexing or
vibrations that could affect the print quality. The frame can be made of materials such as:
30
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
X-Axis: This axis controls the left-to-right movement of the printhead. It’s usually mounted
on a horizontal rail or extrusion.
Y-Axis: This axis controls the front-to-back movement of the printhead. The Y-axis is
typically mounted perpendicular to the X-axis and moves the printhead across the print
area.
Stepper motors control both axes. The motors drive linear rails or rods which allow smooth
motion. These rods provide support for a carriage that holds the printhead.
• Z-AXIS
The Z-axis is being used to control the height of the pen. However, in our case, this is
replaced by the servo motor that controls the lifting and lowering of the pen, as no
traditional Z-axis mechanism is needed. A servo motor is used to control the vertical motion
of the pen (i.e., lifting and lowering it). When the pen is lifted, it is out of contact with the
surface, preventing unnecessary marks. The servo is usually controlled by a microcontroller
(like the Raspberry Pi), which sends commands based on the printing process. When the
pen needs to print, the servo lowers the pen onto the surface.
31
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
• PRINTHEAD/TOOL HOLDER
The printhead (or pen holder) is mounted on the X-Y carriage. This holder is where the
printing tool is mounted. The tool can be a pen, marker, or any other device capable of
drawing or writing. The holder must be adjustable to accommodate various pen sizes and
types.
Running the IoT system (via Wi-Fi or Ethernet) to allow remote control.
Running the necessary software to convert design files into a format that the robot can
understand (such as G-code).
Receiving commands from the user interface (e.g., through a web browser) and interpreting
them into specific movements and actions.
Raspberry Pi models like the Pi 3B or Pi 4 are suitable due to their processing power and
connectivity capabilities. The Raspberry Pi is connected to a motor driver board and servo
control pins.
• MOTOR DRIVERS
The stepper motors (used for the X and Y axes) require motor drivers to control their speed
and movement precisely. Popular motor driver boards include:
DRV8825: Used for controlling stepper motors for stepper motors, known for its higher
current handling capability.
32
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
These motor drivers receive signals from the Raspberry Pi and adjust the motor’s movement
accordingly. The motor driver ensures the motors rotate in precise steps, enabling fine
control of the robot’s movements.
• STEPPER MOTORS
Stepper motors are used to move the printhead along the X and Y axes. These motors are
ideal for applications requiring high precision, as they move in small, precise steps. The
stepper motors are connected to the motor drivers, which control their movement by
sending electrical pulses.
• POWER SUPPLY
The power supply provides the necessary voltage and current to all components. The
Raspberry Pi typically requires 5V, while the stepper motors and servo may require a higher
voltage, usually 12V or 24V. A dedicated power supply for the motors and another for the
Raspberry Pi is often used to ensure stable operation.
• LIMIT SWITCHES
Limit switches are used to detect the end of an axis's travel, helping to establish the home
position of the robot. When the printhead reaches the limit switch, the motor will stop,
preventing damage to the machine. These switches can be installed on both the X and Y
axes.
33
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
The robot can be controlled remotely through a user-friendly web interface, which is hosted
on the Raspberry Pi. This interface may include:
File upload functionality, where we upload .png or other graphic files for printing.
A real-time view of the robot’s progress and control of its actions (e.g., start, stop, pause).
Calibration settings and other configuration tools.
Software such as Mainsail or a custom web application could be used to facilitate this
control. This interface can be accessed via a browser on any device connected to the same
network or over the internet if configured.
• FIRMWARE
Firmware is the low-level software that directly controls the hardware. On the Raspberry Pi,
the firmware would:
• G-CODE GENERATION
Once uploaded a design file, software (Inkscape) can be used to convert the design into G-
code. This G-code specifies the path for the printhead, the lifting and lowering of the pen,
the speed of drawing, and the start/stop points of the printing.
34
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
• CONTROL SOFTWARE
The software running on the Raspberry Pi controls the execution of the G-code. It sends
signals to the motor drivers and servo to ensure the robot performs the printing accurately.
The software may include motion control algorithms, error handling, and calibration
features.
• CALIBRATION
Home Position: The robot must be calibrated to ensure that its printhead starts from a
known position, typically the top-left corner of the print area.
Movement Testing: Test moves are performed to verify that the robot moves smoothly
along the X and Y axes. Adjustments are made to ensure no misalignment or slippage of the
stepper motors.
Pen Lift Test: Ensure that the servo lifts and lowers the pen at the correct times, especially
when moving between drawing positions.
• Test Prints
Once the robot has been calibrated, test prints are run using simple shapes or text. This
helps identify any potential issues with movement accuracy, pen control, or file conversion.
Adjustments are made to ensure the quality of the print is as expected.
35
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
CHAPTER 6
DISCUSSION
Initially, the goal of the 2D printer project was to design a device capable of
producing high-quality prints for various applications, including graphics and text.
Early work focused on developing the core mechanics of the printer, particularly
the motion control system and the printing head. The goal was to achieve precise,
accurate movement to ensure high-quality outputs.
During the initial testing phase, it became evident that the quality of the prints was
significantly lower than expected. This issue stemmed from several key factors,
including the precision of the printing mechanism and the quality of the printing
medium. The size of the printed characters and graphics was limited by the
resolution of the system, which was insufficient for detailed images on standard-
sized paper. Additionally, the friction between the printing head and the surface it
was printing on led to inconsistent print quality, with some prints being too faint or
overly smudged.
To address these issues, adjustments were made to the mechanics of the printer. The
printing head was redesigned to ensure smoother movement across the paper, and
improvements were made to reduce friction and increase the rigidity of the system.
After these modifications, the print quality improved, but
challenges remained in terms of achieving the desired resolution for fine details. At
this stage, it became clear that to fully realize the potential of the 2D printer,
36
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
The addition of an IoT component was also considered, allowing users to control
the printer remotely and monitor its status. However, the limited number of digital
pins available on the current MCU made it difficult to implement IoT features
effectively, requiring the integration of a second MCU to manage these tasks.
In light of these challenges, the focus of the project shifted toward improving print
quality and achieving higher resolutions for larger prints, while also exploring how
IoT functionality could influence the overall design and user experience of the 2D
printer.
➢ User-Friendly Interface
• Effect: With IoT, the 2D printer can interface with a dashboard GUI (Graphical
User Interface) that simplifies control and monitoring. The GUI can provide real-
time feedback, display print progress, and allow for configuration adjustments,
making it more accessible than traditional G- code sender programs.
• Benefit: This offers a more intuitive and visually-oriented method of controlling
the printer, reducing the learning curve for new users and providing better usability
for those unfamiliar with code-based control.
• Effect: In an IoT-enabled setup, the 2D printer can only execute pre- uploaded files
stored on a connected SD card or other storage medium. Users must upload print
37
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
files in advance, as opposed to being able to send new G-code instructions on-the-
fly via a computer.
• Downside: This process makes it more cumbersome to change print jobs, especially
for dynamic or real-time printing requirements. Unlike using a computer directly
with G-code sender software, where users can quickly modify or upload files, the
IoT setup requires more preparation and limits the flexibility of file management.
• Downside: The addition of extra MCUs increases the technical complexity of the
system. This requires more sophisticated software to ensure proper communication
and coordination between the MCUs, leading to higher development and
maintenance costs.
• Effect: While IoT provides a convenient means of controlling the printer remotely,
it also limits the printer's outputs to the pre-installed files and configurations. In a
38
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
traditional setup where G-code is sent directly from a computer, users have the
flexibility to modify or generate new G-code files on the fly.
• Downside: In an IoT setup, users are restricted to printing the files already loaded
onto the printer, which reduces flexibility and spontaneity in the printing process.
This can be problematic for use cases that require frequent changes in print content.
39
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
CHAPTER 7
CONCLUSION
The development of an IoT-based 2D printing robot for text and graphics has
proven to be an efficient solution for applications requiring lightweight, flexible,
and remotely accessible printing systems. The integration of Raspberry Pi as the
central controller allowed seamless communication between the hardware
components and the IoT interface, enabling real-time control and monitoring of the
robot's operations. The system effectively translated user inputs, such as text and
graphical designs, into G-code commands, which were then executed with
precision by the robotic mechanism.
The robot demonstrated reliable performance in printing both text and graphics,
achieving high accuracy in positioning and consistency in line quality. The ability
to remotely operate and monitor the system via an IoT platform significantly
enhanced user convenience and flexibility, making it suitable for a variety of use
cases, including education, prototyping, and small-scale production. The modular
design and use of open-source software and hardware components ensure
scalability and ease of customization for future enhancements.
40
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
Future iterations of the robot can focus on refining the mechanical design and
enhancing stepper motor calibration to achieve higher print resolution and greater
accuracy in reproducing complex graphics and fine details. Incorporating advanced
motion control algorithms and feedback mechanisms, such as encoders, can further
reduce positional errors.
• Speed Optimization:
The system’s operational speed can be optimized by upgrading the motor drivers,
utilizing faster processing units like Raspberry Pi 4, and implementing more
efficient algorithms for G-code parsing and execution. This would reduce the time
required for complex designs and improve overall productivity.
41
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
provide users with the ability to upload, store, and retrieve designs from anywhere.
This would also enable real-time collaboration and sharing of designs between
multiple users.
To address occasional delays in IoT communication, future work can explore the
integration of advanced wireless protocols like Wi-Fi 6 or 5G to ensure faster and
more reliable data transmission, particularly in high-traffic environments.
The system can be scaled to support larger print areas and more complex graphics
by redesigning the frame and increasing the range of the X and Y axes. This would
make the system suitable for industrial applications and large-format printing tasks.
Implementing machine learning algorithms for adaptive control can allow the robot
to automatically adjust settings, such as speed and pressure, based on the material
and design complexity. This would improve performance and reduce the need for
manual tuning.
42
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
• User-Friendly Interface:
Enhancements to the IoT interface, such as adding a graphical user interface (GUI)
for design customization, font selection, and live preview of print outputs, would
make the system more accessible and user-friendly for non-technical users.
Future work can explore ways to make the system more energy-
efficient by incorporating low-power components and optimizing the
software to reduce unnecessary processing overhead.
The printing robot can be integrated with other IoT-enabled devices to create a
more interconnected system. For instance, it could receive designs directly from a
smart device or work as part of an automated assembly line in a manufacturing
environment.
43
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
REFERENCES
1. Bouteraa, Y., Ben Abdallah, I., Alnowaiser, K., Islam, M.R., Ibrahim, A., & Gebali, F.,
"Design and Development of a Smart IoT-Based Robotic Solution for Wrist
Rehabilitation," IEEE Transactions on Neural Systems and Rehabilitation Engineering,
vol. 26, no. 9, pp. 1825-1836, September 2018.
2. Huang, M., & Zhao, N., "Cloud-Based Portable Inkjet IoT Printer," presented at the
2019 4th International Conference on Communication and Information Systems
(ICCIS), published in IEEE Access, 2020.
3. Raghuram, A.P., Mortlock, J.M., Bromley, S.L., & Cornish, S.L., "Development of a
Motorized Rotation Mount for Optical Beam Path Switching Within 20 ms Using
Polarization Control," Review of Scientific Instruments, vol. 94, no. 6, article 063201,
2023.
4. Gandhi, H.P., & Verma, P.K., "Path Planning and Obstacle Avoidance Scheme for
Autonomous Robots Using Raspberry Pi," published in ResearchGate, December 2020.
5. Chakraborty, S., Singh, S.K., & Kumar, K., "Facial Biometric System for Recognition
Using Extended LGHP Algorithm on Raspberry Pi," IEEE Sensors Journal, vol. 20,
no. 14, pp. 7981-7989, July 15, 2020.
6. Simon, J., & Gogolák, L., "Development of an IoT-based 3D Printed Mobile Robot
Platform for Training of Mechatronics Engineering Students," Analecta Technica
Szegedinensia, vol. 18, no. 1, pp. 18-30, May 2024.
7. Kavitha, A., "IoT Driven Servo Motor Control on Raspberry Pi 3B," International
Journal of Engineering Research & Technology (IJERT), NCAAIET – 2024.
8. Wadhwa, R.R., & Dutta, P.S., "A Study of Stepper Motors for Performance
Improvement of CNC Machines," Advanced Research in Electrical and Electronic
Engineering, vol. 4, no. 4, pp. 240-244, July-September 2017.
9. Liu, Y., Chen, J., Bose, L., Dudek, P., & Mayol-Cuevas, W., "Direct Servo Control
from In-Sensor CNN Inference with A Pixel Processor Array," arXiv:2106.07561v1
[cs.CV], 26 May 2021.
10. Mol T. V., B., "A Study on Raspberry Pi, Arduino, and IoT with Its Application in E-
Controlling UPS," Journal of Electrical Systems, vol. 20, no. 2, 2024.
44
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
11. Sai, T., Aditya, B., Reddy, A.M., & Srinivasulu, Y., "Real-Time Object Detection
Using Raspberry Pi," International Journal for Research in Applied Science and
Engineering Technology, vol. 11, no. 1, pp. 123-130, January 2023.
12. Iqbal, F., Ahmed, S., Amin, F., Qayyum, S., & Ullah, F., "Integrating BIM–IoT and
Autonomous Mobile Robots for Construction Site Layout Printing," Buildings, vol. 13,
no. 9, article 2212, August 2023.
13. Kareemullah, H., Najumnissa, D., Shajahan, M.S.M., Jayram, M.A., Mohan, V., &
Sheerin, S.A., "Robotic Arm Controlled Using IoT Application," Computers and
Electrical Engineering, vol. 105, article 108539, January 2023.
14. Xiang, H., Chien, Y.-C., Shi, Y., & Ang, K.-W., "Application of 2D Materials in
Hardware Security for Internet-of-Things: Progress and Perspective," Small Structures,
first published on 25 June 2022.
15. Conti, S., Calabrese, G., Parvez, K., Pimpolari, L., Pieri, F., Iannaccone, G., Casiraghi,
C., & Gianluca, "Printed Transistors Made of 2D Material-Based Inks," Nature Reviews
Materials, vol. 8, pp. 651-667, 2023.
45
IOT BASED 2D PRINTING ROBOT FOR TEXT AND GRAPHICS
APPENDIX
46