How to Make Mini CNC 2D Plotter Using Scrap DVD Drive, L293d Motor Shield & Arduino

84,261

525

70

Posted

Introduction: How to Make Mini CNC 2D Plotter Using Scrap DVD Drive, L293d Motor Shield & Arduino

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

let see how to make in

Step 1: Video

Step 2: Material Need for This Project

1) 2 X SCRAP DVD DRIVE

2) 1 X ARDUINO

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

You can buy this material from below links of Amazon

Simple Lab's L293D Motor Shield for Arduino

Arduino Uno R3 ATmega328P ATMEGA16U2 Compatible with USB Cable

REES52 Tower Pro SG90 9g Servo Motor For Arduino ARM Raspberry AND Other MCU

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 rremove 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

Step 8: How to Connect Stepper Motor With L293D Shield

5 People Made This Project!

Recommendations

  • Microcontroller Contest

    Microcontroller Contest
  • Science of Cooking

    Science of Cooking
  • Pocket-Sized Contest

    Pocket-Sized Contest
user

We have a be nice policy.
Please be positive and constructive.

Tips

Questions

47 Comments

Hi sir I completed this project with the help of your videos but the image can not drawing perfect please help me

same Problem Here. It draw but very bad. U cant see what it draw.

Same here, I dopped the stepper speeds in the IDE. seems smoother

i have downloaded the af library but still there is error in <afmotor.h>

please help me out in removing this

"afmotor.h" with these " "

Hi sry for my bad eng. (German)

I rebuild it and its drawing but u cant imagine what it draw. He also want to be in one corner.

I followed your instructables.

I use a Arduino Motorshield.

Powersuply ist 9V battery & 3,6V.

is it possible to wire the motors wrong?

is the code oke for a shield?

Do u have any tips?

Thx

I made it but I have a trouble.I used ardunio mega 2560 and 2xL293d integrated. I haven't adafruit shield.
(* Stepper myStepperX(stepsPerRevolution, 8,9,10,11) *) this step motor not working.
PWM channels 8,9,10,11 dont have voltage.I tried to increase feed voltaje and it didnt work again. Another step motor is working and 2,3,4,5 channels have voltage. What is the problem anybody knows that ?

What is power supply voltage to motor shield??

I looked at this because I was curious to know how you connected the two units at 90 degrees from one another.

It was brilliant, one moment they were side by side on the table the next they were fastened to one another. I can't seem to get mine to do that?

mr.innovative,pls ans my comments posted 2days before,.Again my project of mini is stuck .no further going.pls let me know how to align pen in centre and rectify error message M18 (drives off)

At first it plott on may be 2or3 line correctly then printing every thing in one corner.and at last when it stopped and give message M 18 (drives off)pls give solution.l am tottaly newbie in software