How to Do a CNC

by nono05 in Workshop > CNC

54 Views, 0 Favorites, 0 Comments

How to Do a CNC

reste_2021-Apr-30_08-39-11PM-000_CustomizedView1137862920.jpg

Hello my name is Noah and I'm 17 years old, being passionate about technology and woodworking, I had to build a CNC fully modeled on Fusion 360. You will need a minimum of knowledge in electronics and Arduino code (C++)

Draw Your Ideas and Know Your Needs

CNC cinématique3 v7

For start, you need to now what you want to do with your CNC machine, what types of work you want to do like what size, what power, what material I want to machine, have a lubrication, etc

Electronics

unnamed.png

Choose Your Controller

arduinouno-tri-org.jpg
cnc-shield-v3-development-board-fur-a4988-schrittmotor-treiber-stepper-fur-3d-drucker-und-arduino-uno-r3arduino-zubehoraz-deliveryaz-delivery-23418996.jpg
71wPCX85vLL._AC_SS450_.jpg
81EkoMJ5bnL._SL1500_.jpg

To start, you have to choose the control board (Arduino, Raspberry Pi, Mach 3 board, etc). For my part, I chose an Arduino Uno with GRBL software. With the Arduino, you will need a shield like the CNC shield V3.

You will need to put jumpers under the capacitors on the CNC shield depending on the number of steps you want (1/8,1/16,1/32). You will also have to put jumpers if you want to double an axis (have two motors for one axis).

Stepper Motor

611+I9CoasL._AC_SX425_.jpg
image (1).jpg

For the motorization of your CNC you must take into account what you plan to do with it including the power and torque required such as NEMA 17 or NEMA 23. NEMA ranging from 11 to 24 have different torque

NEMA 17 : https://www.banggood.com/fr/Nema17-59Ncm-2A-1_84-l...

NEMA 23 : https://www.banggood.com/fr/HANPOSE-23HS7628-76mm-...

The NEMA motors have different lengths depending on their torque and therefore on your use.*

Calculation of the number of steps / turn
To have a theoretical accuracy of 1.87 micron we have set the motor drivers to 1/8 of a step.

Characteristic of the motors : 1,8°/step or 360°/1,8 = 200 steps per revolution Configuration of the DRV8825 motor drivers: jumper in position M0 and M1, i.e. 1/8 step Screw pitch : 3mm pitch/mm = (pitch per revolution of the motor x microstep)/ thread pitch (in mm) pitch/mm = (200 x 8) /3 = 533,333

Translated with www.DeepL.com/Translator (free version)

Differents Types of Drivers

51Z5L-nhGkL._SX342_.jpg
SD-A4988-800x800.jpg
tb6600-stepper-motor-driver.jpg
Vref.jpg

Depending on your motors, you must choose your drivers, the elements that allow you to drive your motors with a high voltage. If you have a CNC shield you can take the drivers with pins that are directly put on the shield. But these drivers are limited in amperage and therefore limit the torque of the motor. Some like the DM432C are external, they are wired with wires and allow to put bigger NEMA and higher torque.

You have to measure the voltage between the potentiometer and the GND with a voltmeter to adjust it according to your motor.

You have to do it when the driver and the motor are powered in 24V so be careful.

EndStop

gowoops-5-pcs-of-mechanical-endstop-switch-with-ca.jpg
7640a26c-eba7-11e6-9a5a-7d5e521488d8.jpg

You have to pay attention to how they are set up in GRBL NO or NF and link them accordingly. If the endstops are triggered unintentionally, you will have to install optocouplers to isolate their connection and thus avoid disturbances.

Power Supply

vf02200-01-thumbnail-1080x1080-70.jpg

To power all, I recommend a 24V power supply rather than 12V. As for the amperage, a 16A will be more than enough.

Take your power supply with a margin for fans a Raspberry pi, etc.

Frame and Y Axis

reste_2021-May-01_07-30-36PM-000_CustomizedView12264885325.jpg
chassis_2021-May-01_08-33-22PM-000_CustomizedView42297354869.jpg

For the structure of your machine, I advise you to use aluminium profiles because they are easy to assemble, rigid and easy to cut.

Think carefully about your structure, its rigidity and solidity but also its simplicity in the connections because the less connections there are, the more rigid it will be.

For the transmission, belts are less expensive but less precise than ball screws.

Z Axis

support_axe_Z_complet_2021-Apr-30_07-52-40PM-000_CustomizedView18995902358.jpg

For the Z axis, it is the same principle as with the other axes, the slide system using V-slot profiles with eccentric nuts to adjust the tension. But for the drive, I use a belt system that drives a trapezoidal rod to offset the motor perpendicular to the spindle.

X Axis

unam_2021-May-01_07-08-56PM-000_CustomizedView28638600163.jpg
axe_x_2021-May-01_07-17-48PM-000_CustomizedView8026317274.jpg
IMG_20210523_154344.jpg
IMG_20210523_154357.jpg

For my part, the X axis supports the mass of the Z axis but must be rigid so that when you move one side, the other follows and there is no bending. This is very important so that the motors don't skip steps.

If you make plates where you screw your profiles, do not neglect the materials used. I used 3 of them to test and with wood and PLA the result is poor. Opt for aluminum or steel much more resistant to bending and stress.

Final Assembly

reste_2021-Apr-30_08-39-11PM-000_CustomizedView1137862920.jpg
reste_2021-Apr-30_11-03-46AM-000_CustomizedView1497946903_png.png

Once all the axles are made, you assemble them to have the mechanical part of your machine finished? Think during the assembly how and where you will pass your cables. I advise you to use cable chains and sheaths.

Place your machines on a level surface to avoid any parallelism.

Wiring and Spindle Instalation

Boitier électronique v23.png
b16d94e7-278b-4a7c-94c0-2ef96736b679.jpg
Boitier électronique2 v23.png
Boitier électronique3 v23.png

Once the mechanical part is finished, you must do the wiring of the electronics in a box preferably in metal. Place your power supply and components strategically to have a cool air flow. You can place switches for different functions already present on the CNC shield but also lights or an emergency stop switch. For the spindle, be very careful because if the stepper motor cables are very close to the spindle cable, it will cause parasites that will make the motor jump steps, so install ferrite rings and for the spindle cable, a shielded cable would be preferable.

Connecting all the GND of all the power supplies together allows that if there are floating voltages to cancel them all to avoid parasites and therefore malfunction.

Raspberry Pi Setup and LCD Screen Connection

image.jpg
ecran_2021-Apr-30_09-44-20AM-000_CustomizedView37149275896_png.png
81KfDA8S1GL._AC_SL1500_.jpg

To avoid dirtying my laptop, I chose to use a Raspberry pi and a laptop screen. For the interface between the two, type "lcd controller board" followed by the reference of your screen to find the interface.

Choose Your Software

Capture d’écran 2021-04-29 204334.png

Conclusion

CNC_sur_table_2021-Apr-30_12-48-58PM-000_CustomizedView19564291560_png.png
IMG_20210410_175227.jpg
Boitier_électronique_2021-Apr-30_09-33-03AM-000_CustomizedView41373783793_png.png

This construction allowed me to learn a lot about materials, structure, electronics and computer science and 3D modeling on Fusion 360. I have encountered a lot of problems of rigidity, of disruption of the spindle on the engines and end stop but I got there, after 2 and a half years of work and research and I am extremely proud of it.