G Code, CNC and Steppers

Making your own

The two previous articles on how we have changed our way of thinking when it comes to project building in the electronics field is relevant here. We now find it easier to purchase a completed product, for instance a controller and a switched mode power supply because it is cheaper and neater than a home manufactured product. Even audio amplifiers nowadays is cheaper to buy than put on your list of projects – Chinese products are dirt cheap and mostly good quality stuff. (for the price).  Students and engineers are gravitating towards the manufacturing processes, milling machines and lathes where a home builder can now build up almost anything he wants from a table leg to a working internal combustion engine. This is not pie in the sky stuff – this is really happening. 3D printers are making their mark so rapid prototype building  has become more accessible and cheaper than before. In many industries we use automation – this has been around since the early 1900’s but with modern technology automation has become even more abundant, we are starting to use skills which our forefathers used, to simplify our daily existence.  Circuit building has become more around adding blocks together – embedded systems, input and output devices and the relevant power controllers. We are in fact moving back to the industrial revolution but on a grander scale.

HwacheonCentreLathe_460x1000

Hwacheon Centre Lathe – attribution  Glenn McKechnie

CNC

Twenty years ago an A3 plotter would cost you the same as an entry level 3D printer nowadays.  A milling machine for a hobbyist can be purchased second hand for about U$2 000 and for a further U$2 000 can be modified to CNC. Hobbyists are doing this even more cheaply. From your automated milling machine hobbyists are now building components for their home built robots.  This even includes the servo or stepper motors but with cheap Chinese supply this becomes unnecessary. An entire software package to generate code is available from Mach 3 at about U$100.00.  Planet-CNC can supply you an entire USB-CNC controller.

I have gathered some very useful links to show you all (and myself) where we are going with this. The one thing that will stand out is that next time you go browsing there will be many more websites dedicated to CNC – we really are moving into the fast lane where the computer can work for us.

First of all most CNC tools used by hobbyists use G code. But what is CNC?

CNC is Computer Numerical Controller. This is the code which is generated by CAD packages to aid the cutter to stick to your design cut out. The G Code, possibly you may use,  is an open source language used by most hobbyists and of course is available for Linux as well. A great link to learn more about CNC is found here, the Technology Student.

A Wiki description on G Code is found here.

A very informative website with a tutorial on learning the G-Code is Bob Warfield’s CNCCookBook. I won’t even attempt to add another link on this subject because I found this to be the best, also with nearly 30 years experience in machining the facts are all there.

Wanting to build a robot? Go to the Robot Shop, claimed to be the biggest and best online store for your robot needs. If you like browsing around you will also note that their pricing is also very affordable. Of course you can possibly go to eBay but if you are in a rush why worry, the Robot Shop has supplies for everything you need.

Now milling machines and lathes are a different beast – I am not a machinist but can vouch that you get what you pay for. In South Africa a good place to start is Adendorff Machine Mart. Their lathes and milling machines are affordable (remember these are not toys so they still do come at a price). I have checked their equipment and yes, they can be converted to CNC but I accept no liability for this statement. They have stores all over the country – have a look and speak to the staff.

Want to build your own from scratch:  The Instructables website is always a good read especially their 3 axis milling machine for model makers.

Build Your Own CNC Router is a wonderful website, packed full of tutorials, parts, and it has it’s won forum. Kit for a pick and place machine as well.

Where to source stepper motors or servo motors?  Most of the CNC machines I have seen use stepper motors. A great source for stepper motors are dot matrix printers – the old variety. The modern stuff has nowhere near the same build quality – so be warned. The stepper motor must have 1.8 deg per step – 200 steps for 360 degrees. 1.8 degrees seems to be the standard, don’t go higher. The Chinese online webstores are a good place to look as well as eBay. Most websites will advise you stay away from servo motors and they do have a point – they are not as reliable neither are they as cheap.  In my mind though, the servo closed loop is more accurate but servo motors come at a price. (I lean towards servo motors because older radar sets used them to align display sweep to antenna – they would run for years without failure but they rotate at a constant speed and not put under the same stress as CNC router movement. Geared steppers would then possibly be a better bet for close tolerance work).

Stepper and servo motors are used extensively in marine and aviation equipment.  Most of the older Sperry gyro equipment used steppers to drive the compass repeaters. These were extremely good quality and I doubt even after twenty years of running they would show sign of wear but do check the winding resistances – all stepper motors run hot and I found this was normally the first cause of failure when conducting repair – hi resistance.

CNC Controllers

CNC Controllers – a very good read is here at CNC Router Source. I am a big one for reading and this website is a real gem, like Bob Warfield’s CNCCookBook.

There are companies currently selling plans and partial kits to build your own CNC router, one is SolSylva, free plans for non-profit personal use only is available here MechMate and Build your own CNC cutter. CNC Router Source has plenty of links to other companies or private entities supplying information and plans on CNC cutters. Read and enjoy!

Sherline is a US based company which sells complete kits of milling machines and lathes. http://www.sherlinedirect.com

I will add to this article from time to time. I see a huge jump from not even a year ago to now with regard to home automation, robotics and home built CNC equipment. Prices will drop and there’s going to be some excellent affordable ready made equipment on the shelves within the next 6 months.  A good benchmark is to watch the boom of 3D printers – focus on China and their export market.

How to Build your own CNC machine using printer parts.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Website: Thomasnet.com – engineers and buyer’s choice for finding trusted suppliers.

 Source:   http://www.thomasnet.com  –   http://news.thomasnet.com  

How-To: Build your own CNC machine (Part 1)
by Will O’Brien
Engadget, June 29, 2006

How-To: Build your own CNC machine (Part 2)
by Will O’Brien
Engadget, July 4, 2006

How-To: Build your own CNC machine (Part 3)
by Will O’Brien
Engadget, July 11, 2006

A great place to go: The Instructables.

Make your own DIY CNC Machine – an exceptionally well made CNC machine, full plans and exceptionally well-documented. For wood.

The steps (or chapters) are listed as below:
Step 1: Terminology & Specs
Step 2: Bill of Materials
Step 3: Fabricated Parts
Step 4: Base Assembly
Step 5: Gantry Side Assembly
Step 6: Gantry Assembly
Step 7: Y Axis Drive Train
Step 8: Trolley Assembly
Step 9: Spindle Assembly
Step 10: Sled Assembly Pt 1/2
Step 11: Sled Assembly Pt 2/2
Step 12: Z Axis Assembly
Step 13: Timing Belts
Step 14: Squaring the Gantry
Step 15: Limit Switches
Step 16: Foam
Step 17: Plywood
Step 18: Bit Holder
Step 19: Propeller Pt 1/5 – Mould
Step 20: Propeller Pt 2/5 – Carbon Fiber Layup
Step 21: Propeller Pt 4/5 – Hub
Step 22: Propeller Pt 3/4 – End Cone
Step 23: Propeller Pt 5/5 – Assembly
Step 24: Follow up / Improvements

Share this article:
Previous Post: Going into New-Style Electronics – the Evolution of Electronics

March 29, 2013 - In Technical

Next Post: Oxy Acetylene or MAP/Pro

April 7, 2013 - In Technical

Related Posts

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments