Arduino Mini CNC Plotter Machine From Dvd Drives

INTRODUCTION :

Arduino Mini CNC Plotter Machine From Dvd Driver
Follow the video here
https://youtu.be/PtbnPl4-yyo
I decided to form this detailed guide to assist you create it on a couple of easy steps.
Small description:
For the X and Y axes we'll use two stepper motors and rails from dvd/cd drives and for the Z axis we'll use alittle servo motor that moves the pen up and down.
The Arduino-based circuit is using the ATmega328 microcontroller, two L293 motor driver ICs and an usb to serial module. You can easily make it with the Arduino uno board and an breadboard.
You can also use an Bluetooth module (e.g. HC-06) to print your texts (or images) wirelessly through your computer Bluetooth connection! Pretty cool huh?
_________________________________________________________

SUBSCRIBE and FOLLOW my YOUTUBE CHANNEL
_________________________________________________________

STEP 1:

What You Will Need
• Arduino Nano
• 2x L293D ICs Motor Driver And It's Socket
• Mini Servo Motor
• 2x DVD/CD Drives
• Female Jumber Socket
• Male Jumber Pins
• Wires Or Jumber Wire
• Platform- Wooden Piece Or Anything Familiar
• Nuts And Bolts
• 5V Adapter
• Srews
• Wire Holder
• USB Cable
• Etc.....
The circuit is communicate with the computer through the USB cable
_________________________________________________________

For making the Platform Base

Two pieces of wood 20x5 cm (thickness 15mm) (for X axis)
Two pieces of wood 20x5 cm (thickness 15mm) (for Y axis)
Two pieces of L- Clamp
Nuts and Bolts
Srews
_________________________________________________________

Tools Required :

• Screwdriver
• Soldering Iron
• Driller
• Cutting Tool
• Glue Stick
_________________________________________________________

STEP 2:

Stepper Motors
First step to start building this cnc machine is to open the dvd/cd drives and take off them the stepper motors. Use the screwdriver to open.
Now that we have the two stepper motors we need to solder some cables or wires on them. Now we need to find the correct combination to drive and use them correctly, so take a multimeter with alligator clips and put it on "short-circuit" function. Usually the first and second cables are closing the circuit - the led is turned on and a beep sounds - this means that we have found the fist phase-motor of stepper motor. The other two cables, third and forth, uses the second phase-motor of stepper motor.
Find the right combination and proceed to next step
_________________________________________________________

STEP 3:

Making X-AXIS & Y-AXIS
Follow the steps below and see the Video here
https://youtu.be/PtbnPl4-yyo
For X axis:
Place one stepper motor on two wood piece and mark it with a pen in order to drill the (4) holes for the nuts and bolts or srews. Make sure that is perfectly align. Drill the holes and mount the motor with nut screws on the wood piece
For Y axis:
Place the other stepper motor on two wood pieces and mark them with a pen in order to drill the (4) holes for the nuts and bolts or screws. Again, confirm that the motor is perfectly align.
Complete the construction:
As you can see I placed a metal surface on X axis to fit a note-paper sheet on it. A note-paper sheet usually has dimensions 75mm x 75mm, but remember that printing area is only 40mm x 40mm. Remember, all parts must be perfectly align with others, this is very important!
_________________________________________________________

STEP 4:

Making Z-AXIS
That's the most difficult part of our construction.
You will need something to connect it on Y axis, a flat surface. On that surface you will attach the servo motor (Z axis) and the pen base. Pen (or pencil) must be able to move up and down with the help of servo motor. Watch the video to understand what you need to do to build Z axis.
Tip: Use your imagination!
_________________________________________________________

STEP 5:

The Circuit
Now that we have our contraction ready, it's time to build the circuit and test the stepper motors (X and Y axis).
Watch or download circuit for cnc machine:
http://t4techzofficial1.blogspot.com/2020/12/circuit-diagram-of-cnc-machine-by.html
Solder the circuit on a PCB board. On subsequent step you'll find a 'testing' code for x and y axes. If a stepper doesn't work properly you must find the correct working combination by changing the cables between them and the L293D ICs.
_________________________________________________________

STEP 6:

The CNC Code

Code for CNC Machine

CLICK THIS FOR CODE

Download or copy code , and upload to Arduino nano board and check the Machine

_________________________________________________________

STEP 7:

Softwares Used

Now we are able to print our first image!
Follow the video using this link

Download and install Inkscape software from here

Download and install Arduino software from here

https://downloads.arduino.cc/arduino-1.8.13-windows.exe

Download CNC Machine Drawing Software "gcode-sender"

What is gcode? 

Gcode may be a file with X,Y and Z coordinates. Header of this file is set to:
M300 S30.00 (Servo down)
G1 X10.00 Y10.00 F2500.00
G1 X20.00 Y10.00 F2500.00
M300 S50.00 (Servo up)

_________________________________________________________

STEP 8:

How to Make Your Own Gcode Files

Follow the video using this link
To make gcode files that are compatible with this cnc machine you've got to use the Inkscape.
Inkscape is professional quality vector graphics software which runs on Windows, Mac OS X and Linux. It is employed by design professionals and hobbyists worldwide, for creating a good sort of graphics like 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 here

Setup Inkscape for first use

Open the Inkscape, attend File menu and click on "Document Properties". and make the changes, confirm to vary first to "cm". Now close this window. We will use the world within 4 to eight cm.

How to print texts

Put text, if you would like you'll change font and size. Now click on cursor icon and center the text just like the 3rd image above. Select Path from menu and "Object to Path".


How to print images

This is more difficult than texts. Images must have a transparent background. Drag and drop your image in Inkscape. Click ok to the next window. Now you have to re-size the image to fit the printing area, see the 4th image above. Click Path from menu and "Trace Bitmap". "Follow the video" Click ok and close the window. Now, move the grey scale image, and delete the colour one behind it. Move the grey image to the correct place again and click from Path menu "Object to path".

Export as gcode file

Final, go to file menu, click save as and select makerbot .... Click 'ok' on next window and that's it! Ready to go! Use the application 'Gcode-sender' Sender to print the gcode file on your new Arduino CNC Plotter!

Download Gcode Sender


Well Done!
You have successfully completed this tutorial and you have your own Arduino mini CNC Plotter!!!
I hope you liked this, let me know in the comments, I would like to see photos of your CNC machines

_________________________________________________________

Comments