I always loved CNC machines! They are the future since they were first invented! I still believe that CADing and CNCing are miracles. When the first printer arrived to my home (I was about 10) I got really fascinated by the fact that I could print a paper about a hundred times by writing it just once!
Only recently I got comfortable with the parts and knowledge needed to built a CNC. I really needed a kind of plotter for my work. As you know a Commercial Laser Engraver is really pricey and a good one is simply out of reach...
To make a long story short I decided to build my own... The funny part is that when I started designing I didn't know Instructables so I reinvented the wheel in many cases...
So here we go: my Moving Gantry Arduino-Less Laser Engraver...
You can also use this machine to create PCBs. Here is my Instructable about it
Here is an Instructable with a better machine using the same parts: Repurposing my Laser CNC into a multi-mount CNC
Step 1: The Design
I had NO experience on such machines. I just liked them a lot. The only CNCish machine I had built at the time was a (Arduino-based) coil winder, with auto-traverse winding and (of course) winding counter. No axis, no steppers or servos, no gantry precision issues, no G-Code, no anything! It was a clean start!
The first Design had to be changed in the process (that is utterly bad sometimes) but at least was working at first glance. The "gantry", for example, has changed about 3 times since then (pictures on next steps)...
As you can see in the pictures it is a really budget (to cheapish) project. Axis drivers are bought at 1.50€ for example. But lets be more precise:
Axis drivers (that white pipe - "απλή ντίζα" in greek - no english translation but I got it at a shop selling paint) 1.50€ per meter Needed 2 meters so 3 €
Copper pipe used for plumber jobs (12mm outter diameter) 2.90 € per meter
Needed just one meter and I really have enough for at least another one built!
MDF wood Base-Frame about 10 €
All screws and anything else needed (and shown in the pictures) are things an average hobbyist have lying around. In any other case they can be easily found at paint shops and plumber shops (this metallic tape "τσερκοταινια" in greek- for example -that I have no idea about its english name-).
So the Sum for the Frame is 15.90€. It could be cheaper if I had replaced the wood with foil or something, but being functional was an expectation...
Step 2: The Motors and Motion Mechanism
When I say cheap I mean real cheap!!! If you can find any cheaper motors than those just inform me to make another CNC built!
I am talking about, no other than, my beloved 28BYJ-48. Here you can watch it fail on most torque tests:
I bought 3 of those at a fairly high price of 4.5€ each. That's because I didn't want to wait for e-bay shipment (4-6 for Greece).
Something really expensive was the stepper driver. I used the Sparkfun Easy Driver for the same shipment reason, and bought 2.
So now I needed a way to make the motors actually move the axis. And guess what! I had no idea about timing belts, lead screws and spindles generally, and any other possible movement transfer except rack and pinion! Just because you see it movies and maybe some Flintstones episodes! So that was the choice. Bought a rack and 3 gears.
So prices for this step:
stepper motors 4.5€ each
bought 3 so 13.5€
Easy Drivers about 10€ each
bought 2 so 20€
(You can use the technique documented in my other Instructable and reduce the cost of the Drivers by about 15€)
Rack and Pinion: 1 meter of rack 16€, and about 2€ per gear
bought 1 meter of rack and 3 gears: 22€
Sum 55.50€. Outch! That hurt a lot! I guess this is why the commercial ones are that expensive. There must be some serious hardware in there...
(New Sum 40.50€ using the Attiny85 Step/Dir Driver mentioned above...)
Step 3: CNC Software
Inevitably I had to use something to drive my new-born machine. So heard about Mach3. It was a CNC driver they said. It was good they said...
So I had a Windows install in my drive. A Windows 7 Ultimate 64-bit system. Installed the Mach3 demo easily. So tried to configure the motors to run actual milimeters and such things. And the problems started... The motors refused to move. Even jog. Even make a sound. So I got desperate. I had an arduino in hand and wrote some code to move those motors. The motors obeyed the arduino but not my LPT port (maybe there was some badge issue like in pokemon)...
After BIOS settings and stuff like this I got really desperate. It came up that there was a problem in Mach3 and Windows 7 in 64 bit. Mach3 couldn't find a driver for Parallel Port and so it was just doing "da cha-cha like a sissy girl" every time I pressed any "move"-kind of button... The picture shows the setup when I was desperately trying to measure a mere mA with DMM from my LPT port...
It was time for me to get serious and get the LinuxCNC. Linux is no new thing for me. I study Informatics and Computer Science so my main install in this computer was an Ubuntu 12.04 from the start (from 4/12 I believe). I suggest you to try Linux (be it LinuxCNC or not). Much more stable and reliable system than sissygirl-indows...
LinuxCNC guide was straightforward. Got me running in about half an hour. You can find it here: http://www.linuxcnc.org/ and it is ABSOLUTELY free to download full version. (no cracks, keygens, and other evil things needed!)
Especially Laser CNCs have to be driven using a modified settings folder for the machine. This is to control duty cycle of the laser, image rastering and other nice things. You can find out more about this here(clicky) and here(clicky clicky):
Lets not forget the price: a copy of LinuxCNC 2.5.4 (latest at the time of writting) 0€
Sum 0 €. Mach3 costs 175$ if you want to run more than 50 g-code lines. And every single engraving project I tried had much more...
Step 4: Workflow for Computer Based DIY CNCs
There is one word for easy, user-friendly, small-sized, engraving software (although it isn't intended for such use): INKSCAPE!!! Yes Inkscape. You can find it here http://www.inkscape.org/en/ and it is FREE and open-source (you might not care about this).
It is a program that lets you draw freely using a "pencil", gets you some straight lines, some curved lines, polygons, circles, let's you use rulers to make perfectly measured shapes, can flip things, group things to be treated as one entity, aaaaaand... ...it is expandable!
So what? eh? Expandable means that there can be written plugins for it... Some good guys wrote some plugins to export anything drawn in it to g-Code (g-Code is used by CNC controllers to move the machines and make them do their work). I have found 2 such plugins so far. The first on is Gcodetools. You can find it and install it here (clicky).
The second one is found here! Yes, its an Instructables page! The first one I read about this topic!
So, why it works?
Inkscape might look like Windows Paint but it isn't. Actually it is much better than Paint (as anything is better than Paint). That is because every line you draw (be it straight or not) gets translated into vectors. If you were wondering why is Linear Algebra taught even in bartender classes you can see for yourself. IT IS DAMN USEFUL!
If you save an Inkscape image you can see it is an *.svg file. The extension svg stands for Scalable Vector Graphics and you can read about this format here. You can even open an *.svg file with "notepad" and it is basically text!
So, the plugins like Gcodetools translate this text to instructions to draw the described vectors. Lets praise for the guys that made those things, and kept (legally) our budget for CAD/CAM software to an astonishing 0€ !!!
The pictures show how some drawings (a duck, a heart and a grid to engrave to the Machine bed for more precise placement) can be opened by LinuxCNC program. Note that even the duck is 250 lines of gCode. Rethink about that Mach3 50 line demo...
Step 5: THE LASER
What to say about this thing... The handheld lasers and the CD/DVD/Blu-Ray drives use some thingies called laser DIODES. They are widely sold on e-bay and many e-shops. I bought a NICHIA NDV 4542 TO-38 diode. This one emitts 200mW of 405nm wavelength (violet, near UV, color light). 200mW is really something. Keep in mind that the widely sold small handheld lasers (the ones that you drive your cat crazy with) are rated at 1mW. Also bought an Aixiz module.
Many things about how to make a laser diode work as intended (I found out that it can work as fishing lure too!) can be found in this instructable and some related ones. The casings needed, heatsinking, focusing, diode diameters, driving (this is the most important if you want it for lasing and not fishing).
If you happen to want to learn more about lasers just visit the Laser Pointer Forums. There is everything you may want to know. And the most useful thing to know is the "protect your eyes or you will be blind for ever plus you go to hell, wear goggles, and 'don't look into the laser with remaining eye' quotes everywhere". So I bought goggles to not get blind and it worked! I am still not blind!!! In the video you can see the difference between the bare eye and the goggled eye.
prices: Laser Diode 10€ Aixiz module with questionable lens 3.80€ So 13.80€ to arm the gantry... Not bad but here a 30€ diode would be more than twice as good so maybe someday...
Step 6: Result:
So that is it. I added a fan because wood and plastic that burn this way smell like old pee. It is also toxic so I need to make a ventilation system (the boring part). I replaced rack and pinion with (el cheapo spindle screw)-lead screw in the X axis to make the gantry stop dancing can-can when working for me...
In the pictures it is the built. In the video you can see it working on a random line test. They are quite bad quality because I have to use my phone. And phones are invented for calling and (later) texting people! Not for selfies.
In the second picture you can see the lead screw coupler (yes those costed some money too), and in the third one it is a close one to the gantry where the laser is waiting for its transistor to fill it with electrical current so it can burn some wood and make my home smell like an indian toilet...
Thanks for reading my first Instructable. I hope you enjoyed it!