loading

**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!

Step 1: How It Works

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 :)

Step 2: Parts List

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.*

Step 3: Test Floppy Drive

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.

Step 4: Test Parallel Port

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.

Step 5: Cannibalise CD Drives

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.

Step 6: Assemble CNC Part One

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

Preferably, this is your lightest sled.

Step 7: Assemble CNC Part Two

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.

Step 8: Assemble CNC Part Three

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

Now, the machine has three axis.

Step 9: Cannibalise Floppy Drive

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.

Step 10: Mount Floppy Drive

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.

Step 11: Mount Power Supply

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.

Step 12: Wire Up the Motors

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.

Step 13: Test CD Drives

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.*

Step 14: The Limit Switch

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.

Step 15: Connect Floppy Drives to Parallel Port

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

Step 16: Make Base

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.

Step 17: 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/

Step 18: Setup Mach3

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.

Step 19: Make Pen Holder

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.

Step 20: Test Your CNC!

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.

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

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.

Step 22: Conclusion and Future

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.

<p>congrats on the win!!</p>
<p>Thanks!</p>
<p>Mach 3 is a $200 license for hobby use.</p>
<p>I used the demo version of Mach3, which is free. The demo version has a 50 line g-code limit, which was enough to make some drawings.</p><p>The best free CNC software is emc2 on linux.</p>
Thank you very much.
<p>Amazingly impressive job! </p>
Why did you choose to move the base up and down instead of just the pen?
If that were the case, then the third axis would have to move the other two. lm not sure if the axis could move all that weight.
<p>Wonderfull idea, I like it alot and is something I've been thinking about to. Substitute the pen for a high power laser and you have a CNC laser cutter. :-P</p>
<p>Nailed it!So much potential in there. Thumbs up from me sir! Just one thing..as far as I know, linear actuators that printers use run on dc motors, using a linear or rotary encoder to measure distance traveled. This could be a pain in the ass! (with all the encoders demanded currents and loops). Just a heads up!</p>
<p>Thanks for the tip!</p>
&quot;Old&quot; printers/scanners should have steppers. Use the heavy weight of the beastie to help determine if it might be using steppers.
<p>I can see using either old floppy drives or cd drives. But since it is easier to obtain a CD drive guts, that would have been the logical choice these days. Also much more efficient, and easy to find ways to even using scrap electronics, to design with. Most CD sled motors are likely to use 3 volts or less, and have simply 4 leads so that they step by applying dc voltage for short intervals, alternating the direction by stepping into each winding, and then reversing polarity to go the other way. The challenge of using the onboard PCB is that CD drives PCB are surface mount based, and so would require possibly having to remove the IC that does the stepping and soldering to its possibly small pins without destroying it. Brining up the centronics printer port to logic levels is also a slight challenge but can be done, you do have to send ACK bit to get the data to flow out, is about all. Many projects have been built around it. We built an entire lighting system using a Commodore 64 and a handfull of logic chips resistors and triacs. </p>
Nice job. I am going to instruct mine but Why you didn't use CD drive's own boards instead the boards of floppy drives?
<p>Whenever i took the sled out of the CD drive, I always ended up damaging the pcb. I couldn't successfully remove both the pcb and sled from the cd drive.</p><p>I would be interested to see if this project can be done with cd drive boards. I'm not sure if a CD drive board can be manipulated in the same way as the floppy drive board though.</p>
<p>Thanks for replay. Actually I have about 9 CD and DVD drive PCB's and the same number of sleds. My only problem is arrangement of the pins. Is there any refrences for the pin arrangement?</p>
<p>Attached is one example of a CD drive data sheet. I assume that the first 10 pins control the linear slide. Different CD drives might have different data sheets, so I recommend searching for the specific datasheet for your CD drive.</p><p>img source: http://akashkumar4u.blogspot.ca/2013/05/cddvd-motor-driver-hack-to-run-its-own.html</p>
<p>They cant from my experience they are standard brushed motors with stop sensors.. </p>
<p>But the motor that drives the sled is a stepper. Surely there has to be a stepper driver on the cd's board then.</p>
<p>It's not completely run from GARBADGE until it's run from an iPhone.</p>
<p>lol so true</p>
<p>Great Job! You have brought together all the pieces! It is a wonderful starting point for anyone getting into DIY CNC/laser cutters. </p>
<p>CONGRATULATIONS !!! you project just give me the reason about why all the people JUST use an arduino for their projects, instead of use another mean to drive the motors. what if i cant buy an arduino? what if i like (just as you did)is how to recycle all the &quot;trash&quot; that you can find everywhere and pollutes the world . you gave me exactly a way to solve the problem about to control a stepper motor without an arduino (i don't hate them , but i don't want to be an &quot;arduino-dependant &quot; as many people that whitout it are practically lost ), and is awesome the way you did it ! as a improvement, i suggest you look for a way to make reverse ingeniering on a &quot;useless&quot; printer to control it and give a new use. again, CONGRATULATIONS for your proyect </p>
<p>Wouaaaaw !</p>
<p>Nice!</p>
<p>Great project! This is the first time I see that does not use external drivers (or aduino) for the motors.<br>Garbage power!!!</p>
nice job, but I can,t calibrate mach 3
<p>What's wrong with your Mach3 calibration?</p>
<p>Great!!! Thank you!!!! </p>

About This Instructable

30,423views

359favorites

License:

Bio: me@swal.xyz
More by Call Me Swal:CNC Made From Garbage Working Spider-Man Web Shooter Make a TumblyBOT: Flipping Spinning Tumbling Robot 
Add instructable to: