# CNC MACHINE PROJECT

141

5

2

A CNC machine or computer numeric machine is designed to control various machinery functions using computer programs. In this project, the machine is made such that the code made for it can be used to draw the outcome of that code. This concept is used to make logos, drawings and other artwork in real less time. Portraits and sketches can be made like as of an artist's masterpiece.

All we have to do is make a code of that picture. Yes! So what we are doing in this project is that firstly, we need a picture in png. or jpeg. form and that picture's outline is converted into g-code (this can be done with the help of various apps that offers to do so). So the g-code is a program that will be used to run the CNC machine to draw that code's picture. We have already prepared some g- codes for our CNC machine, which includes the outline of a tattoo. We are using plain white sheets as a screen where the pen inserted in a machine can draw. The movement of this pen is controlled by the motors used for X, Y and Z axis (where these axes are instructed through the G- code). We are using 8mm motor for X and Y axis and one servo motor for Z-axis.

### Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

## Step 1: How Its Work

In this project, we need some basic equipment like a laptop, cables and some software. This machine can draw any 2D figure by converting any 2D image or file into G-code(geometrical-code).

G-code can be made by using the software as we need Inkscape for converting our figure into the 2D G-code.you can also use other software to make G-code like Mak3Mill, CAmotics, etc. We also need a G-code sender software, in this project, I am using processing-3 software for print a G-code in the board, also you can use another software like Google G-sender.

## Step 2: Stuff Required

1. Arduino Nano =1
2. L293D (IC) =2
3. 16 Pin IC BASE =2
4. Servo Motor(SG90) =1
5. Stepper Motor =2
6. 4 Pin Relimate male/female connector =2
7. PCB(3*5)=1
8. Wooden Board =2
10. Soldire wire = 1
11. Solder flux =1
12. Small wire roll =1
13. Bolt packet 1.5 inch =1
14. USB connector =1
15. USB to USB cable =1
16. USB to type B USB cable =1

## Step 4: How to Make It

• We will connect all the connectors on the PCB.
• We Soldered all the connectors in a PC.
• We connect D2, D3, D4, D5 Pin of Arduino to Pin no 2,7,10,15 of IC1 And connect D8, D9, D10, D11 pin of Arduino to pin no 2,7,10,15 of IC2.
• Connect pin no 1, 8, 9, 16 of both IC to the +5V DC (Means connect the positive pin of USB.
• Connect pin no 4, 5, 12, 13 of both IC to the Ground pin of IC and Arduino.
• Connect D6 pin of Arduino to Servo signal pin.
• Connect the servo +ve and –ve wire to the USB +ve & -ve pin.
• Solder the Stepper Motor with connector wire.
• Connect (IC1) Pin no 3 & 6 to stepper B & D and Pin no 11 & 14 to A & C.
• Connect (IC2) Pin no 3 & 6 to stepper D & B and Pin no 11 & 14 to C & A.
• Check all the wiring is correct and test the circuit.

• Now open the Processing Software and compile gcode_executer_code.
• Now add the G-code file to the software and then run it, your machine is running.

## Recommendations

• ### Internet of Things Class

22,146 Enrolled

## 2 Discussions

I learn the skill when I was in high school, I do will many sciences practical in school days and I have participated in science fairs. it helps a lot to make this type of things.