DIY Arduino Based Mini CNC Machine New Design

24,707

233

14

Introduction: DIY Arduino Based Mini CNC Machine New Design

Hello friends

here i am with new design of Mini CNC machine

basically here i kept both axis over each other

here i give 12V DC to motor shield because the lower axis carry much weight so its need much power to perform well

so lets see hoe to make

Step 1: First See the Working Video of CNC

Step 2: Material Required

1) 2 X SCRAP DVD DRIVE

2) 1 X ARDUINO UNO R3 / ARDUINO MEGA

3) 1 X L293D MOTOR SHIELD

4) 1 X SERVO MOTOR (TOWER PRO 9G)

5) JUMPER WIRES

6) SOME HARDWARE NUT BOTS ETC

7) DOUBLE SIDE 3M TAPE

Step 3: Assembling the Machine

Takeout stepper motor mechanism from DVD drive

make a hole trough the center of the axis mechanism there only some piece of glass and lenses.

Gently remove them so you get a through hole

pass a long Bolt through hole and place axis on each other in and tight them with bolt.

for better grip apply 3M double side tape at joint

Above attached image give you a better idea about how to assemble

Place a servo motor at the corner of top axis frame

bend a flat sheet of metal perpendicularly stick its one end on servo and stick pen holder on the other end

I this way you have your axis ready

Step 4: Wiring

Do the wiring as shown in image

Step 5: Arduino Code and Library

Upload the code to the arduino and add library to arduino IDE

TO know how to add library watch this video

Step 6: Processing

Download the Processing IDE

G-code are sends to Arduino via processing

A processing code called GCTRL streams the G-code to arduino


Upload the gctrl file to processing IDE
and click on PLAY button in processing window. first press 'p' to select you com port if you want you can set jog speed by pressing 1,2, or 3 button from keyboard press 'g' to load G-code file your machine is ready to plot as soon as you hit enter by selecting g code file now you have done your plotter is ready thanks for your attention

Step 7: G-Codes

To make gcode files that are compatible with this cnc machine you have to use the Inkscape.

Inkscape is professional quality vector graphics software which runs on Windows, Mac OS X and Linux.

It is used by design professionals and hobbyists worldwide,

for creating a wide variety of graphics such as illustrations, icons, logos, diagrams, maps and web graphics. Inkscape uses the W3C open standard SVG (Scalable Vector Graphics) as its native format,

and is free and open-source software. Download and install Inkscape from https://inkscape.org/en/download/windows/ (Important: download 0.48.5 version) Now you need to install an Add-on that enables the export images to gcode files. This add on can be found here with installation notes. https://github.com/martymcguire/inkscape-unicorn

please follow the video on you tube how to create G-code file some ready made G-code files

CNC Contest 2016

Participated in the
CNC Contest 2016

Arduino Contest 2016

Participated in the
Arduino Contest 2016

3 People Made This Project!

Recommendations

  • Game Design: Student Design Challenge

    Game Design: Student Design Challenge
  • Big and Small Contest

    Big and Small Contest
  • For the Home Contest

    For the Home Contest

14 Comments

0
Pranit Magdum
Pranit Magdum

Question 1 year ago on Step 7

SyntaxError: Missing parentheses in call to 'print'. Did you mean print(line)?
while saving in .gcode i am facing this problem

0
zttt
zttt

Question 5 years ago on Step 7

Hi, CNC World
great
I used an Arduino Uno for the project. What should I change to run this code for UNO version? Please upload the code for Arduino UNO R3.
Thank you.

0
БолдооГ
БолдооГ

5 years ago

hello write.gcode and what code is there ???

0
hgkarthik
hgkarthik

5 years ago

how to connect ARDUINO and L293D MOTOR SHIELD

0
hgkarthik
hgkarthik

5 years ago

how to connect the ardunio to motor shield driver what are the pins should connect ?

0
PetarK2
PetarK2

5 years ago

can i put a laser not a pen and how do i have to change the code?

0
IsamA1
IsamA1

5 years ago

can i use arduino nano???????????

0
YashT17
YashT17

6 years ago

My problem is seen in photo plzz help me...what am i do?? Acting this situation plz give me an ans as faster as possible...

14869227537841209712386.jpg
0
KaushalP9
KaushalP9

6 years ago

My Servo is stay at wrong possition plz say pen up number and down number.

0
Ferferite
Ferferite

6 years ago

Can I use a 9Volt battery insted of a phone charger?pls answer sorry for bad english

0
CNC World
CNC World

Reply 6 years ago

yes

0
good2hear
good2hear

6 years ago

I have also been following your previous project but this one is really cool.

When assembling the hardware, I am stuck at a point where I wanted to test my motors for basic operation. My question / issue: What / which code+library do I need to use if instead of Adafruit shield, I have 'sunfounder' shield?

An early response will be highly appreciated!

0
SalvageIt
SalvageIt

6 years ago

There is a lot of these kind of CNC on internet, but this design is by far the most elegant ! Well done.

0
DeepakB34
DeepakB34

6 years ago

What have you used to connect/ hold pen? Where can I get that or salvage it?