CNC Made From Garbage

by CallMeSwal in Workshop > CNC

42857 Views, 470 Favorites, 0 Comments

CNC Made From Garbage

Drawing Robot Made Entirely Out Of Trash
5894443e471e3cff3500161e.jpeg
giphy.gif
giphy (1).gif
IMG_20170201_042603.jpg
IMG_20170201_042753.jpg

**If you like this project, please consider giving it a vote**

Canadians produces 725 tonnes of e-waste annually. After seeing all of the electronics thrown away at my school, I am not surprised by this statistic. I believe that most thrown away electronics have a lot of hidden use. I wanted to prove this by building a machine entirely out of garbage.

After looking at the electronics that I hoarded...ahem...I mean collected, I realised I could build a CNC machine.

That's right, all of the components used in this project were thrown away. NO ARDUINO WAS USED TO RUN THE MACHINE! NO DRIVERS WERE PURCHASED TO CONTROL THE STEPPERS! All of the metal was salvaged from local scrap bins and all of the electronics came from my school's e-waste program. We did use some new solder, glue, and tape to put the machine together though.

The end result is a three axis cnc that can draw shapes on a wipe board. The CNC has 1.5 in of play in all directions.

I hope that this project demonstrates the enormous advantages of up-cycling and free-cycling.

Key Points

  • All of the components used in this project were thrown away; except for glue, tape, solder, and some wire.
  • I based the design off of what I found whilst dumpster diving. Your design will vary depending on your luck. Read the whole documentation first to get a general idea.
  • Eventually I want to turn this CNC made out of garbage into a 3D printer made out of garbage.
  • Building a CNC made from new parts would take less time and produce better results.
  • This project was started to prove that thrown away electronics have a lot of potential.
  • The purpose of this project is to show the benefits of up-cycling and free-cycling

Watch the video for a good cover!

How It Works

infograph.png
IMG_20161226_225702655.jpg
IMG_20170201_042739.jpg
IMG_20170201_042934.jpg
IMG_20170201_042748.jpg
IMG_20170201_042730.jpg

The hardest part about building a CNC is designing the motorised linear slide system. Conveniently, all of this engineering is already contained within a CD drive. We are going to cannibalise some CD drives and mount them as needed on a piece of scrap wood. The specific part that we are removing from the CD Drive is called the "sled". The sled is the component that contains the linear actuator. The part of the sled that moves up and down is called the "tray".

The type of motor that drives the sled is a stepper motor. Controlling steppers can be tricky. We need a stepper driver to control the stepper motor. We are going to salvage stepper drivers out of old floppy drives.

I downloaded some CNC software (Mach3) on a thrown away computer. The computer will communicate with the stepper driver though the DB-25 port. The DB-25 port is a really old type of computer port. It has seven output pins that we are going to interface with the stepper drivers. It's easy to find computers with a DB-25 port. They are generally in a trashcan.:)

The computer used in this project does not need to be high quality. The computer that I used has 256mb of RAM and runs Windows XP. Using Mach3 (and Lazycam which comes installed with Mach3), we can convert a CAD file into gcode. Gcode is a file type that is used by most CNC software.

So basically...

CNC software (Mach3) on Windows XP computer -->

Motor controller taken from floppy drive -->

Linear Actuator taken from CD Drive -->

A robot that draws stuff :)

Parts List

IMG_20161216_190232366.jpg
IMG_20161216_190221379.jpg
IMG_20161217_230116702.jpg
IMG_20170107_160741383.jpg
IMG_20170107_160749116.jpg
IMG_20170108_204426880.jpg
IMG_20170109_125618472.jpg
IMG_20170106_133156634.jpg

My parts list is based off of what I found in recycling bins. You are likely to find other parts that can also be used.

The e waste bin at my school was filled with old computers and monitors. This made collecting parts relatively easy. I made sure to test the parts, before I hauled them back to my dorm room.

Parts List

  • Three CD Drives
    • Source: Old computers in an e-waste bin
  • Three Floppy Drives
    • Source: Old computers in an e-waste bin
  • One Power Supply Unit
    • Source: Old computers in an e-waste bin
  • One Whiteboard Marker (Not Recycled)
    • I felt that an erasable marker would be more useful than a pen and paper.
  • PCB Board
    • The CNC needs a plate to write on. I made that plate out of pcb board. I salvaged the board from my school's pcb mill. I chose PCB board because dry erase markers worked well on it.
  • 5 L Braces
    • I had taken apart some furniture and salvaged the L braces. I used the braces to connect the CD Drives.
  • Nut and Bolts
    • Source: Objects that had been taken apart overtime. I preferred to use 8-32 fasteners throughout the project.
  • Sheet of Wood
    • Source: Scrap bin at Home Depot
  • Electrical Tape (Not Recycled)
  • Solder (Not Recycled)
  • Hot Glue (Not Recycled)
  • Breadboard (Not Recycled, Not Required)
  • Wire
    • Source: I found a box of wire in an e-waste bin. The box contained wire of various sizes. I mainly used a size close to 18 AWG. I believe the box came from the renovations my school did over the winter break.

*The solder, electrical tape, hot glue, breadboard, and dry erase marker were not up-cycled. I already has these components lying around.*

Test Floppy Drive

Testing Floppy Drive: Garbage CNC
59FCE.png
floppyPinOut2.jpg

We are going to test the stepper driver inside of the floppy drive. Currently, the driver is connected to a small motor.. If the driver is working correctly, we should be able to actuate the motor; as seen in the video.

First, rip the cover off of the floppy drive. This allows you to see the sled of the floppy drive.

To control the floppy, you need to manipulate the back header. The floppy drive has many pins on the back header. We only care about three of them.

  • The Drive_Set_B (Pin12) pin turns the stepper motor on. Enable the pin by connecting it to ground. Ground is any pin on the bottom of the header.
  • The Direction pin (Pin18), controls direction. 0 for backwards, 1 for forwards. We want the motor to move forwards. So, connect Pin18 to ground.
  • Connect the floppy drive to the power supply. Do not turn the power supply on.
  • The Step Pin (Pin20) sends one pulse to the stepper motor each time its triggered. You can trigger Pin20 by briefly connecting it to ground. I used a screw driver to complete this task.

Test the floppy drive:

  • Wire the floppy as seen in the diagram
  • Turn the power supply on, the floppy drive tray should move to its default position.
  • Trigger Pin20. Each time you trigger Pin20, the floppy drive tray should move slightly forwards.
  • The floppy drive tray will continue moving forwards until it reaches the delimiter. You can move the tray the other way by disabling Pin18.

The floppy drive sled only has 0.5 in of travel. We'll need a bit more for our CNC. So, we will sub the floppy sled out for a CD drive sled, which is much bigger.

Test Parallel Port

circuit.png
350px-Parallel_port_pinouts.svg.png
pic14.jpg
Testing Floppy Drive With Parmon

We are going to try controlling a floppy drive with a computer's parallel port. This is a good thing to test before you commit to the project. We want to ensure that the parallel port is working correctly. And, that we know how to use it correctly.

Using Parmon software, we can move the floppy drive sled up and down. Install Parmon on your WindowsXP computer, from this link. http://www.geekhideout.com/parmon.shtml

Wiring Steps(or just look at the image above):

  • Connect ground of the floppy drive to ground of the parallel port.
  • Connect floppy drive Pin12 to ground.
  • Connect floppy drive Pin18 to parallel port pin2
  • Connect floppy drive Pin20 to parallel port pin3

Boot up your machine and run Parmon.

As seen in the video, clicked pin3 should actuate the motor. Clicking pin2 should change the direction.

Cannibalise CD Drives

IMG_20161226_225702655.jpg

All we need from the CD drives is the sled. The sled is the component that contains the linear actuator and housing. We are going to remove everything from the CD drive except for the sled.

We will need three of these for our project.

Assemble CNC Part One

IMG_20161228_011013334.jpg
IMG_20161228_011000739.jpg
IMG_20161228_011007643.jpg

I bolted a small piece of metal to the frame of one of the sleds.

Preferably, this is your lightest sled.

Assemble CNC Part Two

IMG_20161228_014519281.jpg
IMG_20161228_014523578.jpg
IMG_20161228_022356408.jpg
IMG_20161228_022349065.jpg

I attached the first slide to the movable section of another slide. The slides are attached with the piece of metal. The slide should be able to move up and down.

I connected some L-braces to the bottom of the second slide. I secured the L-braces to a piece of scrap wood.

At this point, the second slide should be able to move up and down while the first is fixed in place.

Assemble CNC Part Three

IMG_20161228_024243826.jpg
IMG_20161228_233459555.jpg
IMG_20161228_233506487.jpg

I secured the third sled to the the top of the mechanism with some more L brackets.

Now, the machine has three axis.

Cannibalise Floppy Drive

IMG_20161229_205011560.jpg
IMG_20161229_213454226.jpg
IMG_20161229_213525061.jpg
IMG_20161229_231025475.jpg
IMG_20161229_231034413.jpg

The motors inside of the CD sleds are stepper motors.

To run the stepper motors we need stepper drivers.

Floppy drives contain stepper drivers.

Strip the floppy drives down to the PCB. You can cut the leads that connect the floppy drive to the motors.

HOWEVER, do not cut the leads that connect the floppy drive to the limit switch. A picture of the floppy drive limit switch is shown above. We need to use the limit switch for our project. It is important not to lose or damage it.

Mount Floppy Drive

IMG_20161230_243224784.jpg
IMG_20161229_231811814.jpg
IMG_20161229_231813887.jpg
IMG_20161230_242246857.jpg
IMG_20161230_242249488.jpg

Mount the floppy drives to the base. I have secured my floppy drives with some hot glue and used popsicle sticks

I have added a small breadboard for convenience as well. This is not necessary.

Mount Power Supply

IMG_20161230_011638705.jpg
IMG_20161230_012649389.jpg
IMG_20161230_013245651.jpg
IMG_20161230_013248334.jpg
IMG_20161230_013626445.jpg

Mount the power supply to the base. Connect the appropriate cables of the power supply to the floppy drives.

I wrapped up the PSU cables with tape first though.

Wire Up the Motors

IMG_20170103_182546394.jpg
IMG_20170103_184126227.jpg
IMG_20170103_184407369.jpg
IMG_20170103_155341479.jpg
IMG_20170103_155355564.jpg
IMG_20170103_155647340.jpg
IMG_20170103_182546394.jpg
IMG_20170103_182544518.jpg
IMG_20170103_184123003.jpg
IMG_20170117_013032206.jpg
IMG_20170117_012958558.jpg
IMG_20170117_012958558.jpg

You need to wire each of the stepper motors to the appropriate pins on a floppy drive.

Find the four pins on the floppy drive that were connected to a stepper motor. We need to connect these pins to the CD drive stepper motor. There are twenty four possible combinations to connect the CD drive to the floppy drive. Eight of these combinations will work.

I used trial and error to wire the stepper motor to the floppy drive. I soldered four wires to the stepper motor and four wires to the floppy drive. I randomly connected each set with a breadboard. I connected the floppy drive to the power supply and turned the power supply on. If the system is wired correctly, the CD drive will move as seen in the video. If the system is wired incorrectly, the motor will stall.

After figuring out the correct way to wire each floppy drive, I made the connections permanent.

To increase durability, I glazed the solder joints with hot glue.

Test CD Drives

giphy.gif

Ensure the floppy drives are connected to the power supply.

When you turn the power supply on, all of the axis should move.

*In the video, I am testing the X axis only.*

The Limit Switch

giphy (1).gif
IMG_20170107_171942847.jpg
IMG_20170107_173638563_HDR.jpg
IMG_20170107_180453292.jpg
IMG_20170107_180513523.jpg
IMG_20170117_013102687.jpg
IMG_20170117_013110562.jpg
giphy (3).gif

Each floppy drive has a limit switch attached to the PCB. When the limit switch is triggered, the floppy drive turns off the motor. The limit switch is triggered when an object is inserted in the switch's gap.

We need to mount each limit switch on the corresponding axis of the CNC. When the CNC is turned on, each linear actuator moves in a certain default direction.The limit switch needs to be mounted on the side of the sled that the tray moves towards. We want the limit switch to be triggered, when the tray reaches the end of the sled.

I started off by extending the cables that connect the limit switch to the floppy drive. I hot glued each limit switch to an axis. I hot glued a small stick of PCB board to each tray. I hot glued the PCB board so that it would trigger the limit switch when needed.

Connect Floppy Drives to Parallel Port

wiring diagram.png
IMG_20161230_013626445.jpg
IMG_20161230_013604534.jpg

Wire up the floppy drives and parallel port as seen in the diagram.

Make Base

IMG_20170107_184151081.jpg
IMG_20170107_184201734.jpg
giphy (4).gif
IMG_20170107_205151871.jpg
IMG_20170118_152827069.jpg
IMG_20170107_160808516.jpg

The CNC machines needs a base plate to write on. Any rigid piece of material that is roughly 4"x6" will do.

I used a scrap piece of PCB board.

I cut the board to size and mounted the board to the X axis of the machine.

To mount the board, I :

  • Drilled and tapped two holes in the X axis tray
  • Drilled and countersunk two holes in base
  • Bolted the base in place with two 8-32 countersunk bolts.
  • Covered the holes with a large piece of duck tape.

Or

You can just glue the base in place. Your call.

Install Mach3 on Computer

Use this link to install the demo version of Mach3 on your Windows XP computer:

http://www.machsupport.com/software/downloads-updates/

Setup Mach3

gcodePic.PNG
gcodePortsandPins.PNG
gcodePortSetup.PNG
gcodeXAxis.PNG
gcodeYAxis.PNG
5895bcdb8080cfaff2000610.jpeg

We're almost down! Open up Mach3 and navigate to the Port and Pins tab. Change the motor settings as seen in each page.

We need to calibrate the motors as well. This means telling Mach3 how many steps it takes to move each axis by one inch. We can do this in the Setup page. Click on the Calibrate Axis tool and follow the given instructions.

Make Pen Holder

insertingPen2 (1).gif
penHolder.png
IMG_20170204_072804[1].jpg
IMG_20170204_072733[1].jpg

We need to make a component that will hold our dry erase marker in place.

This component will need to connect the marker to the tray of the x axis. There are lots of simple ways that you can accomplish this. Feel free to be creative. I went with the above design.

I designed the above part in Inventor and then machined it out of a scrap piece of aluminium. It is a fairly simple design, only three holes.

I drilled and tapped an 8-32 hole in the tray of the x-axis. I used this hole to secure the metal piece to the tray.

I have attached all necessary CAD files for replication.

Test Your CNC!

giphy (5).gif

I have attached some example gcode to test your cnc with.

Download the gcode on your windows xp computer. For your first test, i recommend using circle.tap.

Load the g code into Mach3.

Insert your dry erase marker in the pen holder.

Click Run and ensure that the circle prints correctly.

Congratulations, you have successfully built a CNC. Take a moment to test the CNC with other example files. Also you can use the arrow and page up/down keys, to move the CNC around.

In the next step, I'll show you how to make your gcode.

Autodesk to Gcode, Turn Your CAD Files Into Gcode (Optional)

Export Cad.png
lazycam.bmp
star.PNG

In this step, we are going to be making our gcode. I'll be using Autodesk Inventor for this process.

  • Make a new sketch in Autodesk Inventor.
  • Extrude the sketch.
  • Right click the face of the sketch that you would like the CNC to draw.
    • Click export as
    • Save file as a .DXF
  • Transer the .DXF file to your WindowsXP machine.
  • Open the file in LazyCAM. (LazyCAM came installed with Mach3)
  • Ensure that the file looks correct, and then export the file as gcode.
  • LazyCAM software will create a .tap file. This file type is a form of gcode that you can load into Mach3.
  • Run the gcode file in Mach3 and watch your creation print your other creation.

Conclusion and Future

589442c94557141d8f00468c.jpeg

Currently, I am turning my CNC made out of garbage into a 3D printer made out of garbage.

There are other ways to expand this project as well. Below are a few ideas that I am excited about.

  • Using the linear actuator found inside of a paper printer.
  • Hacking the Arduino IDE to control the DB25 port
  • Controlling stepper drivers with USB ports
  • Connecting sensors to the DB25 port.

I hope that this project convinces others about the potential in up-cycling and free-cycling.

If you have any questions about the project, I would be happy to answer them.