Revolutionize Your Workshop: Build Your Own CNC Machine and Unlock Endless Possibilities!

by garzoli in Workshop > CNC

1601 Views, 20 Favorites, 0 Comments

Revolutionize Your Workshop: Build Your Own CNC Machine and Unlock Endless Possibilities!

cnc-1.jpg
cnc-plan-1.png
cnc-plan-2.png
Ötletből valóság: építsünk egy saját CNC marógépet a műhelyben!

In this instructable, we'll be exploring how to build your own CNC (Computer Numerical Control) machine from scratch. With a CNC machine, you can automate the process of cutting, drilling, and carving various materials, such as wood, plastic, or metal, with high precision and repeatability.

We'll go over the basic components and tools you'll need to build a CNC machine, including stepper motors, linear rails, ball screws, and a control board. We'll also provide a detailed step-by-step guide on how to assemble and wire up these components, as well as tips and tricks to troubleshoot common issues you might encounter during the build.

(You can also watch the process of compilation in video format on the attached video.)

By the end of this instructable, you'll have a fully functional CNC machine that you can use to bring your DIY projects to the next level. Whether you're a maker, artist, or hobbyist, a DIY CNC machine can be a powerful tool to unleash your creativity and imagination.

So, let's get started and build a CNC machine together!

Supplies

FPBVF49LE1ED5S0.jpg
linear-guide-rails.jpg
bearing-2.jpg
bearing-1.jpg
IMG_20230107_092514.jpg
IMG_20230107_092518.jpg
trapezmenetesorso.png
arduino-uno.jpg

To construct a CNC machine, you will require various components; however, I will delve into the specifics later.

I made bunch of pictures during the building process, so they can be very informative.

Machine Frame

IMG_20221204_084809.jpg
IMG_20221204_084817.jpg
IMG_20221127_092500.jpg
IMG_20221127_092512.jpg
IMG_20221204_084800.jpg
IMG_20221204_084806.jpg
IMG_20221204_084813.jpg
IMG_20221204_084820.jpg
IMG_20221204_084823.jpg
IMG_20221204_094438.jpg
IMG_20221204_094445.jpg
IMG_20221204_094449.jpg
IMG_20221209_173149.jpg
IMG_20221210_125012.jpg
IMG_20221210_125256.jpg
IMG_20221210_142230.jpg
IMG_20221210_142238.jpg
IMG_20221210_143706.jpg
IMG_20221210_143710.jpg
IMG_20221210_145051.jpg
IMG_20221210_145102.jpg
IMG_20221210_145556.jpg
IMG_20221210_145603.jpg
IMG_20221210_151723.jpg
IMG_20221210_152141.jpg
IMG_20221211_141136.jpg
IMG_20221211_154019.jpg
IMG_20221211_154027.jpg
IMG_20221211_165103.jpg
IMG_20221211_165106.jpg
IMG_20221211_165109_1.jpg
IMG_20221211_165113.jpg
IMG_20221211_165118.jpg
IMG_20221220_142647.jpg
IMG_20221220_142651.jpg
IMG_20221220_142654.jpg

To begin with, we require a robust frame that can support the entire machine. I opted for a 60 mm x 40 mm x 2 mm closed section, which, in my opinion, can be secured effectively with welding.

Frame Painting

IMG_20221227_111911.jpg
IMG_20221227_120807.jpg
cnc-3.jpg

I applied paint to the frame to safeguard it from rust.

Connect the Rails to Frame

IMG_20221228_110945.jpg
IMG_20221228_110345.jpg
IMG_20221228_110349.jpg
IMG_20221228_110927.jpg
IMG_20221228_110939.jpg
IMG_20221228_111234.jpg
IMG_20221228_113549.jpg
IMG_20221228_115405.jpg
IMG_20221229_164028.jpg
cnc-2.jpg
IMG_20221228_115400.jpg

I used 6 mm x 15 mm screws to attach the sliding rails to the frame. I used a SBR20 type linear rail.

To connect the Screw thread to the frame you can use bearing block house.

Table

IMG_20221219_124757_BURST001_COVER.jpg
IMG_20221219_124759.jpg
IMG_20221219_131229.jpg
IMG_20221220_104719.jpg
IMG_20221220_110520.jpg
IMG_20221220_110523.jpg
IMG_20221220_113000.jpg
IMG_20221220_113408.jpg
IMG_20221220_114954.jpg
IMG_20221227_111917.jpg
IMG_20221229_182402.jpg

I welded a metal frame to secure the particle board tabletop, which helps to keep the table stable. I made eight metal brackets for it with oval-shaped holes, allowing for precise adjustment of the height of the tabletop. I ended up painting this as well.

Apply the Bearing

IMG_20221222_173441.jpg
IMG_20221222_184201.jpg
IMG_20221222_184158.jpg
IMG_20221229_174112.jpg
IMG_20221222_134856.jpg
IMG_20221222_134900.jpg
IMG_20221228_110338.jpg
IMG_20221228_110330.jpg
IMG_20221228_173907.jpg
IMG_20221228_170618.jpg
IMG_20221228_170553.jpg
IMG_20221229_163323.jpg
IMG_20221228_174114.jpg
IMG_20221228_172431.jpg
IMG_20221228_171504.jpg
IMG_20221223_180551.jpg
IMG_20221223_165920.jpg
IMG_20221223_172251.jpg

I created spacers using a 3D printer to secure the bearings for the X axis, which I attached to the frame with M3 screws. The Y axis bearings connected with metal parts which contains oval holes to allow me find the proper position of the axis.

Mount Motors

IMG_20221229_174000.jpg
IMG_20221229_174006.jpg
IMG_20221229_181353.jpg
IMG_20221229_170934.jpg
IMG_20221229_163334.jpg
IMG_20221229_181349.jpg

I have chosen Nema 23 stepper motors with DM542 drivers. And they are fixed with consoles in the right position.

Limit Switches

liimit-switch-holder.png
liimit-switch-holder-2.png
IMG_20230101_151027.jpg
IMG_20230101_151037.jpg
IMG_20230101_141545.jpg
IMG_20230101_152829.jpg
IMG_20230101_141554.jpg
IMG_20230101_151032.jpg
IMG_20230101_141603.jpg
IMG_20230101_152820.jpg
IMG_20230101_152825.jpg
IMG_20230101_151018.jpg
IMG_20230101_141610.jpg
IMG_20230101_141637.jpg

The limit switch holders are designed in Tinkercad and printed by a 3D printer. As the GRBL documentation suggests, I used Normally-Closed (NC) wiring for limit switches.

Z Axis

IMG_20221228_170235.jpg
IMG_20221228_170230.jpg
IMG_20221228_170229.jpg
IMG_20221228_161406.jpg
IMG_20221221_094308.jpg
IMG_20221222_185129.jpg
IMG_20221222_185124.jpg
IMG_20221223_141156.jpg
IMG_20221223_141201.jpg
IMG_20221223_141504.jpg
IMG_20221221_112416.jpg
IMG_20221221_112419.jpg
IMG_20221221_112411.jpg
IMG_20221229_181345.jpg
IMG_20221229_182352.jpg
IMG_20221229_182356.jpg
IMG_20221229_172631.jpg
IMG_20221229_183046.jpg

The pictures depict the assembly of the Z-axis component. For the components of the Z axis, I utilized an aluminum plate with a thickness of 3 mm.

As a rotary tool, I used an 800 watt motor, which can be smoothly controlled between 0-30,000 RPM using a potentiometer and a control circuit.

The clamping jaw of the vise has an internal diameter of 3.6, 8mm and is of type ER16. The milling bit was a version with a 3mm diameter.

I have got an emergency stop button to stop the milling process in case on any unpredictable situation, but it has not been built in yet.

Electronical Components

IMG_20230107_095603.jpg
IMG_20230107_092533.jpg
IMG_20230107_104110.jpg
IMG_20230107_195633.jpg
IMG_20230108_095148.jpg
IMG_20230108_101118.jpg
IMG_20230108_103636.jpg
IMG_20230108_103643.jpg
IMG_20230108_103650.jpg
IMG_20230108_103654.jpg
IMG_20230101_171627.jpg
IMG_20230101_172930.jpg
IMG_20230101_173631.jpg
IMG_20230101_175214.jpg
IMG_20230101_175218.jpg
IMG_20230114_114643.jpg
IMG_20230114_144108.jpg
IMG_20230115_091239.jpg
IMG_20230115_091250.jpg
optocoupler.jpg

The electronic components necessary for control were placed in an old empty computer case. I used 0.5 mm2 twisted copper wires to connect the electrical components. In order to prevent the wires from breaking due to a lot of movement, I have threaded them into an energy chain.

4 channel optocoupler with PC8917. This is used against false-positive limit switch alarms.


Softwares

openbuilds.png
cutting.png
FLFC6LNLE1EDMYA.jpg

To control the motors through G-code, I use a program called GRBL uploaded onto an Arduino Uno board. The Arduino controls the stepper motors via DM542 breakout boards.

I use a 3 mm plywood for processing the image designed as an SVG vector graphic, which can be converted into machine-readable G-code using the OpenBuilds CONTROL program. OpenBuilds CONTROL is an application for connecting to, and controlling, your CNC, Laser, Plasma or Dragknife machine.


First Jobs

cnc-1.jpg
IMG_20230121_183451.jpg
IMG_20230121_183528.jpg
IMG_20230121_185301.jpg
IMG_20230121_185321.jpg
IMG_20230129_144041.jpg
IMG_20230129_145330.jpg
IMG_20230129_145335.jpg
IMG_20230129_195005.jpg
IMG_20230129_195215.jpg
IMG_20230129_203137.jpg
bird-house.png
IMG_20230129_135304.jpg
IMG_20230304_202142.jpg

In this section you can see the first attempts with my brand new CNC milling machine. One of my first works was machining a simple heart shape from 3 mm plywood. Then I made a bird feeder from several pieces, which has been happily serving hungry birds in my garden since. Additionally, with the help of the machine, I also created a two-piece tulip made of plywood.

The next attempt was to engrave a brick, for which I used a tungsten-carbide milling cutter and, as can be seen in the picture, it turned out surprisingly well.

Next Steps

I am planning to improve this base machine and try it with several materials.

(so, there will probably be a sequel in the future...)

Finish

If you have any question, please feel free to ask,

thanks for watching.

And finally, like it if you liked it :-)