CNC Plotter Controller

by Deepaksh123 in Circuits > Arduino

850 Views, 6 Favorites, 0 Comments

CNC Plotter Controller

IMG_7387.JPEG
IMG_7364.jpeg
CNC Plotter Controller
CNC Plotter Controller #3dprinting #arduinodiy #arduino #arduinoprogramming

In this session of Instructables, I'd like to share a CNC Plotter Controller. This Controller can be used to operate CNC Plotter. It operates on batteries completely without a computer. I made this controller to operate my Mini Plotter V2. However this controller can be used to operate different CNC plotters without the PC/Laptop. It uses memory card that stores drawing programs. You can store a large number of gcode program files on it. Let’s make it!

Supplies

IMG_7127.jpeg
IMG_7136.jpeg
IMG_7154.jpeg
IMG_7150.jpeg
IMG_7155.jpeg
IMG_7163.jpeg
IMG_7325.jpeg
IMG_7350.jpeg
IMG_7097.jpeg

1pcs x Arduino Uno.

1pcs x LCD Keypad Module

1pcs x Micro SD card module

1pcs x Micro SD card (max 8GB)

2pcs x 18650 Rechargeable Li-ion batteries

1pcs x Two Slot Li-ion batteries Holder 

1pcs x Data Cable

1pcs x SD Card Reader

3D Printed Parts

Mini Plotter V2

Tools used:

3D printer

Soldering iron

Vernier Caliper Digital

Screw Driver

Circuit Schematics

circuit_image.png
IMG_7143.jpeg

Make Necessary Connections as per the Circuit Diagram.

Solder the memory card module to the LCD Keypad shield (CS = D4, MOSI = D5, MISO = D6, SCK = D7), you can use double-sided tape to attach it to the board.

Solder data cable wires to Arduino Uno pins as:

Red wire = 5V pin

Black Wire = GND pin

Green wire = Tx Pin

White wire = Rx pin

A On/Off Switch is connected between Batteries and Arduino Uno 5V pin.

Program Files

IMG_7131.jpeg

Download LCD_Key Library from here:

https://github.com/CytronTechnologies/Arduino_SN-FPR-SM630/tree/master/attsys/LCD_Key

Download SdFat Library from here:

https://github.com/greiman/SdFat

Download and Unpack the libraries (LCD_Key.zip, SdFat.zip), put them into "C:\Users\<Your User Name>\Documents\Arduino\libraries" folder.

Connect the Arduino Uno board to the computer and upload the "CNCmaster.ino" sketch.

Downloads

Generate Gcode

I used Inkscape software to create Gcode file.

Download all the above mentioned software along with 4xidraw Extension.

Extract and install all the software.

Open Inkscape file location > copy all the files of 4xidraw Extension to the extensions folder of Inkscape.

After adding 4xidraw extension to Inkscape follow these steps to create Gcode file:

Open Inkscape > File tab > Document Properties > set page size as 120mm x 100mm

Drag and drop the particular image of your choice, adjust the image size accordingly and place it on the page.

Select the image > Go to Trace Bitmap > convert to path

Delete the previously inserted image.

Then go to Extensions tab > Click on 4xidraw Tools > Save the parameters as shown in images > Click Apply > Gcode generated.

Format micro SD card to FAT32 file system. Then copy the Gcode files to SD Card.

NOTE: This Controller only supports gcode with ".nc" extension.


Assemble All the Parts

IMG_7145.jpeg
IMG_7157.jpeg
IMG_7150.jpeg
IMG_7154.jpeg
IMG_7163.jpeg
IMG_7338.jpeg
IMG_7343.jpeg
IMG_7344.jpeg
IMG_7345.jpeg
IMG_7354.jpeg

Mount LCD keypad Module on the Arduino Uno.

Make all necessary connections as per the Circuit diagram.

Put LCD Keypad Module along with Arduino Uno inside the 3D printed Body.

Mount Battery holder at the bottom of 3D printed with the help of Screws.

Drill a hole at the right lower corner of the 3D printed body to insert Data cable.

Insert the SD Card in the SD card module Slot.


Add USB Port to CNC Shield V4

Capture.PNG
IMG_7114.jpeg
IMG_7333.jpeg
IMG_7334.jpeg

Mini Plotter V2:

https://www.instructables.com/Mini-Plotter-V2/

Add a USB Female port to CNC Shield V4 as:

Red wire = 5V pin

Black Wire = GND pin

Green/orange wire = Rx Pin

White/yellow wire = Tx pin

The CNC Shield V4 is powered with the batteries of CNC Controller. So, we do not need separate power source for it.

Working

IMG_7384.JPEG
IMG_7386.JPEG
IMG_7367.jpeg
IMG_7387.JPEG
IMG_7369.jpeg
IMG_7371.jpeg
IMG_7372.jpeg
IMG_7374.jpeg

Connect USB Cable of CNC Plotter Controller to the CNC Shield V4 USB port.

Switch ON the push button. The CNC Controller Starts.

The drawing program file is selected using the Up/Down buttons, The Extreme Left button used to run the Gcode and Extreme Right button is used to stop the Gcode.

Select any Gcode file and then click extreme Left button to run the Gcode.

It's Working now..

STL Files

IMG_7150.jpeg
IMG_7154.jpeg

Final Words

Hope you enjoyed this session of Instructables. Thanks for reading my work. I feel glad if you make your own CNC Plotter Controller with the help of this tutorial. Stay tuned to my Instructables channel for more upcoming exciting projects.

Thanks again.