Mini Plotter
Mini Plotter
Submitted in partial fulfilment of the requirement for the award of third-semester degree
of
Bachelor of Technology
In
(2022-2026)
Submitted By
NAME UNIV. ROLL NO.
Sumit Srivastava 22013460042
Krishna Kant Singh 22013460014
Amit Kumar Das 22013460003
Shashank Kumar Pathak 22013460030
1
CERTIFICATE
I hereby certify that the work which is being presented in the B.Tech. Third Semester
Mini Project Report entitled “CNC DRAWING MACHINE”, submitted to the
Department of Electronics & Communication Engineering of RVS College of
Engineering & Technology, Jamshedpur (India) is an authentic record of my own
work under the supervision of Asst. Prof. Rahul Ranjan, ECE Department as part of
curriculum.
This is to certify that the above statement made by the candidate is correct to the
best of my knowledge.
2
ACKNOWLEDGEMENT
In this acknowledgement we intended to thank all those who are involved in determining
the shape of our project report and helped us. When expressed in words, the feeling of
gratitude is partially conveyed.
We are deeply indebted to Asst. Prof. Rahul Ranjan, ECE Department R.V.S College
of Engineering and Technology for his help, advice and support.
Thanks are also due to all the faculty members of The “Department of Electronics and
Communication Engineering” of R.V.S College of Engineering and Technology and our
friends who constantly helped us with their constructive criticism and also flooded us
with ideas.
3
ABSTRACT
The implementation phase entails fabrication and assembly of the CNC drawing machine,
incorporating the designed mechanical and electrical components. Rigorous testing and
calibration procedures are conducted to optimize performance and ensure accuracy in pen
positioning and drawing quality. Additionally, user-friendly interfaces are developed to
streamline operation and facilitate ease of use for artists and designers.
The project's performance evaluation involves assessing the accuracy, speed, and
reliability of the CNC drawing machine in producing intricate graphical designs.
Comparative studies are conducted to benchmark the machine against conventional
manual drawing methods, highlighting its advantages in terms of precision, consistency,
and productivity.
4
INDEX
PAGE NO.
S NO. CONTENT
1 INTRODUCTION 7
2 THEORY 9
3 ARDUINO CODE 13
4 RESULT 21
5 FUTURE SCOPE 22
6 REFERENCES 24
7 APPENDIX 25
5
FIGURES & DIAGRAMS
2 CIRCUIT DIAGRAM 11
4 ARDUINO UNO R3 12
6
INTRODUCTION
Welcome to the world of CNC Drawing Machines, where precision meets creativity to
redefine the boundaries of traditional artistry. In this project, we delve into the realm of
computer numerical control (CNC) technology, marrying it with the expressive power of
drawing to construct a versatile and innovative CNC Drawing Machine.
Join us as we dive into the intricacies of CNC technology, exploring the design,
construction, and operation of our CNC Drawing Machine. Together, we'll uncover the
possibilities it presents for artistic expression, educational endeavors, and beyond.
Whether you're intrigued by the technical intricacies or inspired by the creative potential,
this project promises to ignite your passion for innovation and artistry in equal measure.
7
Fig. 1 CNC DRAWING MACHINE
8
THEORY
The CNC Drawing Machine is an embodiment of sophisticated engineering principles
melded with artistic creativity. It operates on a foundation of computer numerical control
(CNC) technology, which orchestrates the precise movements of the drawing tool, guided
by intricate mechanical systems and governed by meticulously designed software
algorithms. Let's delve deeper into the theory behind each key component:
The heart of the CNC Drawing Machine lies in its CNC technology. This technology
enables the translation of digital instructions into physical movements of the drawing tool
with remarkable precision. Through the use of stepper motors and specialized controller
boards, the machine interprets G-code commands, orchestrating the coordinated motion
of the drawing tool along predefined paths. This level of control allows for intricate
designs to be realized with unparalleled accuracy.
Stepper motors serve as the workhorses of the CNC Drawing Machine, converting
digital pulses into precise rotational movements. These motors offer a unique advantage
in their ability to move in discrete steps, allowing for precise control over the positioning
of the drawing tool along each axis. The selection of stepper motors with appropriate
torque and resolution is crucial to achieving the desired precision and speed in drawing
operations.
Acting as the brain of the machine, the controller board receives commands from the
computer in the form of G-code instructions. It processes these commands and generates
the necessary signals to drive the stepper motors. Advanced controller boards may
incorporate features such as acceleration and deceleration profiles, ensuring smooth and
efficient motion control while minimizing vibrations and overshoot.
Precision mechanical components, including guide rails, ball screws, and linear
bearings, form the backbone of the CNC Drawing Machine's motion system. These
components are engineered to minimize friction, backlash, and play, ensuring smooth and
accurate movement of the drawing tool. Rigorous attention to detail in the design and
assembly of these mechanical systems is essential to achieving the desired levels of
precision and repeatability.
9
5. Drawing Tool and Versatility :
The choice of drawing tool is a critical consideration in the design of the CNC Drawing
Machine. Whether it be a simple pen, pencil, marker, or specialized engraving tool, the
selected implement dictates the type of artwork that can be produced. The machine's
versatility lies in its ability to accommodate various drawing tools, opening up a myriad
of creative possibilities for artists and makers alike.
The Cartesian coordinate system provides a standardized framework for defining the
position of the drawing tool within the machine's workspace. By specifying coordinates
along the X, Y, and optionally Z axes, the machine can accurately position the drawing
tool to create intricate designs with spatial precision. Calibration procedures and homing
routines ensure consistent and reliable operation across different drawing tasks and
materials.
10
Fig. 2 CIRCUIT OF THE MACHINE.
.
11
Fig. 3 L293D MOTOR SHIELD
12
#include <Servo.h>
#include <AFMotor.h>
// Should be right for DVD steppers, but is not too important here
const int stepsPerRevolution = 48;
// Initialize steppers for X- and Y-axis using this Arduino pins for the
L293D H-bridge
AF_Stepper myStepperY(stepsPerRevolution, 1);
AF_Stepper myStepperX(stepsPerRevolution, 2);
13
float Xmax = 40;
float Ymin = 0;
float Ymax = 40;
float Zmin = 0;
float Zmax = 1;
// Needs to interpret
// G1 for moving
// G4 P300 (wait 150ms)
// M300 S30 (pen down)
// M300 S50 (pen up)
// Discard anything with a (
// Discard any other command!
/**********************
void setup() - Initialisations
***********************/
void setup() {
// Setup
Serial.begin( 9600 );
penServo.attach(penServoPin);
penServo.write(penZUp);
delay(100);
// Decrease if necessary
myStepperX.setSpeed(600);
myStepperY.setSpeed(600);
// Notifications!!!
Serial.println("Mini CNC Plotter alive and kicking!");
Serial.print("X range is from ");
Serial.print(Xmin);
Serial.print(" to ");
Serial.print(Xmax);
Serial.println(" mm.");
Serial.print("Y range is from ");
Serial.print(Ymin);
Serial.print(" to ");
14
Serial.print(Ymax);
Serial.println(" mm.");
}
/**********************
void loop() - Main loop
***********************/
void loop()
{
delay(100);
char line[ LINE_BUFFER_LENGTH ];
char c;
int lineIndex;
bool lineIsComment, lineSemiColon;
lineIndex = 0;
lineSemiColon = false;
lineIsComment = false;
while (1) {
15
if ( c <= ' ' ) { // Throw away
whitepace and control characters
}
else if ( c == '/' ) { // Block delete not
supported. Ignore character.
}
else if ( c == '(' ) { // Enable comments flag
and ignore all characters until ')' or EOL.
lineIsComment = true;
}
else if ( c == ';' ) {
lineSemiColon = true;
}
else if ( lineIndex >= LINE_BUFFER_LENGTH - 1 ) {
Serial.println( "ERROR - lineBuffer overflow" );
lineIsComment = false;
lineSemiColon = false;
}
else if ( c >= 'a' && c <= 'z' ) { // Upcase lowercase
line[ lineIndex++ ] = c - 'a' + 'A';
}
else {
line[ lineIndex++ ] = c;
}
}
}
}
}
}
newPos.x = 0.0;
newPos.y = 0.0;
// Needs to interpret
// G1 for moving
// G4 P300 (wait 150ms)
// G1 X60 Y30
// G1 X30 Y50
// M300 S30 (pen down)
// M300 S50 (pen up)
// Discard anything with a (
// Discard any other command!
if (verbose)
18
{
Serial.print("Xpos, Ypos: ");
Serial.print(Xpos);
Serial.print(",");
Serial.print(Ypos);
Serial.println("");
}
if (verbose)
{
Serial.print("x1, y1: ");
Serial.print(x1);
Serial.print(",");
Serial.print(y1);
Serial.println("");
}
long i;
long over = 0;
if (verbose)
{
Serial.print("dx, dy:");
Serial.print(dx);
Serial.print(",");
Serial.print(dy);
Serial.println("");
}
if (verbose)
{
Serial.print("Going to (");
Serial.print(x0);
Serial.print(",");
Serial.print(y0);
Serial.println(")");
}
// Raises pen
void penUp() {
penServo.write(penZUp);
delay(penDelay);
Zpos = Zmax;
digitalWrite(15, LOW);
digitalWrite(16, HIGH);
if (verbose) {
Serial.println("Pen up!");
}
}
// Lowers pen
void penDown() {
penServo.write(penZDown);
delay(penDelay);
Zpos = Zmin;
digitalWrite(15, HIGH);
digitalWrite(16, LOW);
if (verbose) {
Serial.println("Pen down.");
}
}
20
RESULT
The CNC Drawing Machine consistently achieves high levels of precision and accuracy
in its drawings, thanks to its robust mechanical design and precise motion control. By
minimizing sources of error such as backlash and mechanical play, the machine can
faithfully reproduce intricate details with minimal deviation from the intended design.
The machine's versatility is showcased through its ability to accommodate a wide range
of drawing tools and materials. Whether utilizing a fine-tip pen for detailed sketches or a
rotary engraving tool for intricate patterns, the CNC Drawing Machine adapts seamlessly
to different artistic mediums and applications. This versatility extends to its compatibility
with various CAD/CAM software packages, allowing users to explore diverse design
possibilities with ease.
With optimized motion control algorithms and efficient toolpath planning, the CNC
Drawing Machine achieves impressive drawing speeds without compromising on quality.
By leveraging advanced acceleration and deceleration profiles, the machine minimizes
idle time and maximizes throughput, making it suitable for both rapid prototyping and
production-scale artwork.
Through extensive testing and calibration procedures, the CNC Drawing Machine has
demonstrated robust reliability and consistency in its performance. Calibration routines
ensure precise alignment and homing of the drawing tool, while real-time monitoring
systems detect and mitigate errors before they impact the final output. As a result, users
can trust in the machine's ability to deliver consistent results across repeated drawing
tasks.
21
FUTURE SCOPE
Future iterations of CNC Drawing Machines are poised to integrate advanced automation
and artificial intelligence capabilities. Machine learning algorithms can analyze patterns
in artwork and optimize drawing strategies for efficiency and aesthetic appeal.
Additionally, autonomous calibration and error correction systems will further streamline
operation, reducing the need for manual intervention.
The evolution of CNC Drawing Machines will encompass broader compatibility with a
diverse range of materials and drawing techniques. From traditional mediums such as
paper and canvas to unconventional substrates like ceramics and textiles, future machines
will offer expanded versatility and adaptability. Furthermore, advancements in additive
manufacturing technologies may enable the integration of multi-material deposition and
color mixing capabilities, enabling artists to create truly immersive and dynamic artwork.
Future CNC Drawing Machines may incorporate haptic feedback mechanisms and
interactive interfaces to enhance user engagement and tactile exploration. By providing
real-time feedback on drawing pressure, texture, and surface interactions, these machines
can bridge the gap between digital and physical art forms, enabling artists to intuitively
manipulate and sculpt their creations with unprecedented dexterity and sensitivity.
Collaborative CNC Drawing Systems will enable artists to collaborate remotely, sharing
designs and coordinating drawing tasks across distributed networks. By leveraging cloud-
based platforms and real-time communication channels, artists can collectively contribute
to large-scale collaborative artworks, transcending geographical boundaries and fostering
global creative communities.
22
Integration with Augmented Reality (AR) and Virtual Reality (VR):
The integration of augmented reality (AR) and virtual reality (VR) technologies will
revolutionize the creative process, enabling artists to visualize and interact with their
designs in immersive 3D environments. CNC Drawing Machines equipped with AR/VR
interfaces will empower artists to explore new dimensions of spatial composition and
perspective, blurring the lines between physical and virtual reality.
Future CNC Drawing Machines will prioritize environmental sustainability and eco-
friendly practices throughout the design and manufacturing process. From utilizing
recycled materials in machine construction to implementing energy-efficient components
and recycling/reusing waste materials, these machines will embody a commitment to
minimizing environmental impact while maximizing creative potential.
23
REFERENCES
• Wikipedia.org
• Youtube.com
• ChatGPT
• Google.com
• ARDUINO IDE
• INKSCAPE
• UNIVERSAL GCODE SENDER
24
APPENDIX
A. Bill of Materials:
2. Controller Board
7. Power Supply
10. Optional Accessories (Spindle for Engraving, Dust Collection System, etc.)
- Detailed CAD drawings and schematics illustrating the assembly and layout of the
CNC Drawing Machine components.
- Schematic diagrams depicting the electrical wiring and connections between the
various components.
C. G-code Samples:
- Sample G-code files demonstrating different drawing patterns and designs, compatible
with the CNC Drawing Machine.
- Instructions for loading and executing G-code files on the machine's controller board.
25
D. Calibration Procedures:
- Step-by-step calibration procedures for aligning and calibrating the CNC Drawing
Machine, ensuring precise motion control and accurate drawing results.
E. Troubleshooting Guide:
- Troubleshooting guide outlining common issues encountered during the setup and
operation of the CNC Drawing Machine.
F. Safety Precautions:
- Safety precautions and guidelines for the safe assembly, operation, and maintenance
of the CNC Drawing Machine.
- Recommendations for personal protective equipment (PPE) and safe handling of tools
and materials.
- Links to online forums, communities, and support channels for sharing ideas,
troubleshooting problems, and collaborating with other CNC enthusiasts.
26