Introduction: How to Make Arduino Based Mini CNC Plotter Using DVD Drive

this a mini CNC 2D plotter made from old DVD drive and L293D motor shield very cheap but intresting

let see how to make

It is very easy to make all the step by step procedure is mention in this instructable

Step 1: Video of CNC Machine Working

Lets see the video this video also cover step by step procedure how to assemble the machine

Step 2: Material Need for This Project

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

Librairy For Adafruit Shield Driver Motors extract the file and past them to arduino/libraries

Step 3: Assembling the Machine

Open the scrap DVD Drive and remove internal moving tray..

This tray having stepper mechanism on it this will act as our X-axis & Y-axis.

Go through the attached pictures for understanding how to assemble your machine.

make hole on empty DVD drive case mount our X-axis and Y-axis on respective DVD case with the help of nut bolts.

Now place them perpendicular

Step 4: Wiring Details

watch the picture carefully and wire components accordingly

Step 5: CNC Code for Arduino

upload the code to arduino using arduino IDE

Step 6: G Code

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

Step 7: Processing IDE Program (GCTRL)

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

Comments

author
WannaDuino (author)2017-06-13

mine is sold to a Teacher, mr Sander from the Netherlands.....

Why? to teach his students, so cool.

author
vsk21 (author)2017-05-30

hi bert trying as you told but can you please tell me the zero point value

Of your one and also tell me your size of plotting and base

author
BertR16 (author)2017-05-21

Hi All,

I was wondering, does anyone uses a newer version of Inkscape and got it to work? On my Ubuntu laptop it's not possible to install another Inkscape version than the latest (0.91) and I don't know how to get Gcode with it.

author
Diy creator (author)BertR162017-05-29

Ya i will try it but
Can you tell me which value you have added for zero point
And stepspermm
Also what is your base and paper size

author
Diy creator (author)Diy creator2017-05-29

make a note:

I am vsk21 but i changed my profile

author
vsk21 (author)2017-05-06

Hi bert15
I am being trying hard to success cnc
But can you please tell me how to fix zero point in cnc code

And also tell me what is stepspermillimeter


Thanks

author
vsk21 (author)vsk212017-05-26

hi bert sir please reply

author
BertR16 (author)vsk212017-05-28

Sorry for the delay, was occupied elsewhere.

Fix zero point in cnc code: I assume you mean the Gcode? You can edit the Gcode with any text editor and look for "--x-home=0 --y-home=0". Try to play a little with it and see what it does. Also have a look at "G92 X0.00 Y0.00 Z0.00 (you are here)".

stepspermillimeter: Like it says: steps per millimeter (steppermotor steps....). To calibrate this: make a plot with a square of 25 x 25 mm in inkscape, plot is and measure with a ruler. Then adjust accordingly in your arduino code.

Good luck!

author
vsk21 made it! (author)2017-05-06

kmn

P_20170507_102847[1].jpgP_20170507_102838[1].jpgP_20170507_102828[1].jpgP_20170507_092839[1].jpg
author
vsk21 made it! (author)2017-05-06

hi here is my video of working

this suppose to plot the word 'cnc'

also answer my below comment

i also checked gcode in camotics everithing is ok

please tell me what changes i should do in my cnc code

my plotting area(base ) is78mm or 7.8 cm .sorry for bad recording

V_20170506_191408.mp4
author
BertR15 made it! (author)2016-12-29

Hi All,

First of all, this is not my 'instructable'! It is writen by CNC World. He did a great job because even I could make this nice machine!!

Now, a lot of people asked me how I did this or how I did that, but it all comes down to a few things:

1. Work precise. If you make a sloppy pen holder, your plot will come out sloppy!

2. If it is not working out of the box, fiddle around! Be creative! Change a few settings, one by one, and look what happens!

3. The plotting area is 38 x 38 mm. Try to make your drawing well within these limits. In Inkscape, don't go all the way to the edges.

4. Don't give up! The master has failed more times than the beginner has even tried.

I have added a few pictures to show the possibilities and precision. If you want the G-code, let me know. There is only one condition for that: you post your plotof that G-code :-)

Grtz

Bert

IMG_1013.JPGIMG_1012.JPG
author
MDM51 made it! (author)BertR152016-12-30

Sir my dream is working .I have changed the pen holder then it's working properly..tnx sir... bt one think, some codes doesn't work properly .. why sir?

care.jpg
author
BertR15 (author)MDM512016-12-31

I don't know why some code is not working properly. Try to run it in CAMotics. Maybe the code itself is not okay.

author
vsk21 (author)BertR152017-05-06

But sir

You can see the comment of varadgh i too face the same issue

author
vsk21 (author)BertR152017-05-05

sir I want your gcode of above im

author
BertR15 made it! (author)vsk212017-05-06

Gcode is already posted some months ago. Just scroll down and you'll find it

2017-05-06 10_09_08-How to Make Arduino Based Mini CNC Plotter Using DVD Drive _ 7 Steps (with Pictu.png
author
CNC World (author)BertR152017-01-07

Thanks for sharing your experience BertR15

author
danielf272 (author)2017-05-04

hey, great tutorial, but for some reason, the steppers aren't moving. I have an external power supply(6v, 1000mA), the Arduino is communicating with my computer and the LED is turning on, but no movement. I've tried using the arrow keys to 'jog in x-y planes', but nothing happens.

author
Varadgh (author)2017-05-03

Dear Bert sir :

as you suggested I have checked all comments but my browser is only showing comments upto 5mnths

But I have installed camotics and understood what it is

Can you tell me how to adjust setting in cnc code according to our need and stepper motor

Please tell me the basic changes I should do in my code according to the images I uploaded


the image of my model is in comment which I uploaded yesterday

Thanks for attention!!!

1more question ;ca the code of aqua maniac be the solution of my issue

author
vsk21 (author)2017-05-03

Can anyone tell me how to fix zero point ?
i am waiting!

author
RovinD2 (author)2017-04-18

My plotter is drawing jumbled up sketches. I'm unable to find the source of error. The jumbled sketch also varies to some degree each time. Please help.

author
BertR15 (author)RovinD22017-05-01

Jumbled up? What do you mean? Please post some photo's and everybody can have a look and a say. Jumbled up is pretty much like " my mail does not work. Can you tell me why?" Well... guess...

author
RovinD3 (author)BertR152017-05-02

https://drive.google.com/folderview?id=0B2VWbRz2AE5HaER6X0Q2RGV2a3c
This link has it all

author
vsk21 (author)RovinD32017-05-03

your pen holder mechanism is not stable please try to change it .I am also facing same issue an preparing a new pen holder with balsa wood

author
vsk21 (author)RovinD22017-05-01

i too have the same problem please help anyone

author
tonib5 (author)vsk212017-05-01

can u upload the image that your drawing so everyone can see and help u

author
vsk21 (author)2017-05-01

Dear tonib5 here my image

author
vsk21 made it! (author)vsk212017-05-01

:

IBALL - WIN_20170501_200936.JPGIBALL - WIN_20170501_200953.JPGIBALL - WIN_20170501_201012.JPGIBALL - WIN_20170501_163712.JPGIBALL - WIN_20170501_163704.JPG
author
BertR15 (author)vsk212017-05-01

First of all, I think you zero position is not ok. Did you make the gcode with inkscape? Did you put your zeropoint in inkscape in the middle? Did you have your arduino code set at -19 to +19 or is it at 0 to 40? Check these things and open the gcode in CAMotics. That will help you solve most of your problems.

author
vsk21 (author)BertR152017-05-01

Dear sir
1)Yes i made gcode with inkscape.
2)i dont know how to keep 0 point in inkscape i had just fitted that image in right corner
3)My arduino code is set at 0-40mm
4)I dont have any idea about camotics can you please tell me about?

And thanks for responding
I really needed help

author
BertR15 (author)vsk212017-05-01

Ok. Well, I made this little plotter during Christmas last year and had a lot of comments and remarks about it. Several people had input and all together we, not just me, came to a nice working plotter. All problems you have now were covered during that time, so scroll back to end of December and January and you will find all answers you need: about the zero position, the backlash in the pen holder, improvements on the arduino code, how to check your gcode with CAMotics, really everything! So, I would suggest to you go back in time a little, read all and try out the things discussed there. After that, if you still have problems, questions and/or remarks I will try to answer as good as possible.

author
vsk21 (author)BertR152017-05-02

as you suggested I have checked all comments but my browser is only showing comments upto 5mnths

But I have installed camotics and understood what it is

Can you tell me how to adjust setting in cnc code according to our need and stepper motor

Please tell me the basic changes I should do in my code according to this image-

author
vsk21 (author)vsk212017-05-02

the image of my model is in comment which I uploaded yesterday

Thanks for attention!!!

author
vsk21 (author)vsk212017-05-02

1more question ;ca the code of aqua maniac be the solution of my issue

author
vsk21 (author)BertR152017-05-01

thanks

author
tonib5 (author)vsk212017-05-01

try use -19 to +19 so zero position in the center than try make square about 38 mm and see its correct or no about the size and tried switch one pair motor wires it look like your machine draw backward

author
EdyW (author)2017-01-15

Hi everybody.. Thanks for this amazing project.

I've been playing arround with AquaManiac version of both Arduino code and OSX app (thanks dude. wonderful job).

Now I have this weird problem which is that when it is printing, suddently it stops
with the a very hight pitch moise coming from the stepper motor. Been touching delay paramenters, but cant find the reason..

Using AquaManiac (thanks again :)) app, when this happens, the box with the port connection resets (gets blank).

Using proccesing code, also happens..

Any ideas what could be happenig?

Thanks

author
vsk21 (author)EdyW2017-05-01

Can you tell from where you got aqua maniac cnc code

author
murphadonut made it! (author)2016-12-28

This was supposed to say MI

I have tried switch motor wires, I have tried changing the x and y min and max values, and I have also tried to change the stepspermillimeter but all these drawings keep coming out wrong. Can anyone help me?

20161228_132050.jpg
author
murphadonut (author)murphadonut2016-12-28

Mine also seems really jerkey, is that normal?

author
vsk21 (author)murphadonut2017-05-01

Can you tell me how you fixed it i too have same issue

author
murphadonut (author)murphadonut2016-12-28

I figured it out, My stepper motors were going to fast.

author

How did you fixed that?

author

I changed the code

author
vsk21 (author)murphadonut2017-05-01

i too have same problem

Can you tell me how it is

author
BertR15 (author)2017-02-06

O'DonovanM, I'm sorry, I accidentally deleted your post, I guess. Contact me, please.

author
vsk21 (author)BertR152017-05-01

My plotter is drawing jumbled up sketches. I'm unable to find the source
of error. The jumbled sketch also varies to some degree each time.
Please help.sr

its urgent

author
O'DonovanM made it! (author)BertR152017-02-09

Hi Berth

I was thanking you very much for all your help.

You mentioned that Inkskape started plotting in the centre and the Arduino program should be Changed the X Y min max to -18 +18.

Thanks again.

K

PS Please don't delete this one Ha Ha.

Snap_8.jpgSnap_1.jpgSnap_2.jpgSnap_3.jpgSnap_4.jpgSnap_5.jpgSnap_6.jpgSnap_7.jpg
author
TanB10 (author)O'DonovanM2017-03-21

what is the size of paper 2x2 ? or 4x4 ? ty

author
tonib5 (author)TanB102017-04-01

i use 4x4

try make start plotter in corner but always in center

IMG_20170401_122631.jpg