Instructables
Picture of XY-Plotter
The Project:

Perhaps you have never been gifted at drawing, or you don’t have the time to do it yourself, so why not let a simple x-y plotter draw for you. This simple two axis device can accurately moves a pen to draw out anything.

The Device:

The x-y plotter has a two axis control and a special mechanism to raise and lower the pen. The plotter has a hole in its base where the pen goes through. It was designed to print on both paper or any surface such as a wall; simply place the plotter against the surface and the pen will draw away through the hole. Each axis is powered using a single stepper motor and belt. Pen control is achieved using a servo. All electronics are controlled by an Arduino and powered by a 12 volt wall adaptor.

A Demo Video
This video shows a demo of one axis (y-axis) of the plotter moving back and forth. The x-axis was moved by hand to generate curves.


The Team:

This project was completed by Tommaso Buvoli, Kristina Callaghan, Bruce Deakyne, and Phillip Dunlap for CU Boulder Things that Think Spring 2011.
 
Remove these adsRemove these ads by Signing Up

Step 1: Materials

Tools:
- A Laser Cutter capable of cutting pieces up to 18” long.
- Band Saw
- Drill Press
- Screwdriver

Raw Materials:
- Several sheets of 1/4 inch thick acrylic (One side must be at least 18”).
- A small sheet of 1/8 basswood
- Several 1/4 inch dowels (metal or wood - at least 18”)
- 14 small long bolts and nuts
- 28 washers

Electronics
- 2 Gear & Belt combo sets: http://www.goldmine-elec-products.com/prodinfo.asp?number=G15973
- 2 high torque stepper motors: http://www.goldmine-elec-products.com/prodinfo.asp?number=G18202
- 2 stepper motor drivers (ULN2003A)
- 1 breadboard
- 1 2.5v, high current supply
- 1 5v supply (for arduino, USB cable acceptable)
- 1 EasyDriver Stepper Motor Driver (http://www.sparkfun.com/products/10267)

Step 2: Printing & Assembling the Base

Picture of Printing & Assembling the Base
pressure-fit.jpg
figure1.png
IMG_0453.JPG
Before beginning ensure you have collected a piece of 1/4” acrylic that is at least 18” x 7” (to accommodate the length of the base). Download the attached file base.svg which contains the four pieces that build the base and their corresponding struts. The base is held together at each corner by two screws and fastened with nuts. Depending on the size of the bolts you are using you may need to change the dimensions of the holes in the beams and the width of gap in the strut as shown below. Once you have adjusted the hole sizes cut the base pieces on the laser cutter.

When assembled, the base look like a square with the center cut out. Attach the four sides using the 4 screw holes on each piece. Bolts should slide easily though the base pieces and tension is achieved by tightening bolts on the nuts which should be loosely wedged into each strut as shown in following the picture.

Two wooden dowels can be inserted through the struts on each side of the base.

Step 3: Printing & Assembling the X-axis

Picture of Printing & Assembling the X-axis
top.png
top-2.png
The base should now be assembled. Now that the base is complete, the housing that moves along x-axis should be constructed. Download the attached file x-housing.svg. It contains a large base, and 6 sides. Again you will need to alter the size of the holes relative to the screws you are using. The x-axis housing is built by attaching 3 sides to each end of the base as shown in the first picture. Again the bolts should slide through the base and tension is achieved tightening bolts on the nuts.

Once the base is constructed two dowels can be inserted through the holes in the two light grey sides, as shown in the second diagram.

Step 4: Building the y-axis Housing

Picture of Building the y-axis Housing
y-axis-housing.png
top-3.png
HPIM0823.JPG
The y-axis housing is final moving piece that needs to be built. It is the smallest and carries a servo to lift and lower the pen. It will be placed on the two dowels that were inserted into the light grey sides in step 3. When built the assembly looks as seen in the pictures and is mounted in relation to the two dowels that were put through the grey slots in step 3. The servo sits on the top of the y-axis housing and is locked in place with the small hole in the top of the y-axis housing.

Step 5: Building the Marker Holder

Picture of Building the Marker Holder
HPIM0823.JPG
Now it’s time to build a simple attachment that holds the marker to the servo so that it can be lifted and lowered. Download the file pen-holder.svg and print out two parts. You may need to adjust the size of the square if you are using a pen that is larger a Sharpie. The two-piece assembly is relatively simple to put together and the final product looks as shown in the picture. The bolts are tightened evenly around the pen so that it does not slip.

Step 6: Belts and Gearing

Picture of Belts and Gearing
HPIM0820.JPG
HPIM0819.JPG
full-base.jpg
It is recommended that you hand-drill the holes for the belt gear-shafts. Our spacing worked out to be 11.75in, but yours may vary based on your belt. It is important that the belt be tight enough to reduce slack but not so tight such that there is too much friction.

To mount the x-axis motor, it is best to move the strut closest to the gear back. After affixing the small gear to the motor shaft with gorilla glue or epoxy, align the motor gear with the belt gear. The stepper should be upside down as in the picture below. Adjust the height so that the two gears are flush. Mark this on the strut. Use epoxy or gorilla glue to fix one side of the strut to the motor - preferably the side that allows the wires to face in the y-axis direction (as seen in the photo below).

Once the motor is attached, position the strut such that the two gears are aligned. Hold the strut in place, move the belt; if your gear is off center, you may need to adjust the motor position. Once you're found the "sweet spot" so the gears mesh evenly, mark where the two new screw holes for the strut will do. Drill and mount the strut. We also found that adding two small acrylic "guides" to the bottom of the y-axis allowed the belts to move the y-axis better.

The exact process can be replicated for the y-axis. Note you may need to counter-balance the y-axis motor with a weight on the other side.

Step 7: Electronics

Picture of Electronics

The electronics are fairly straightforward. 

Place the two ULN2003A motor drivers in a breadboard. 
The digital output can come from any of the PWM pins on the Arduino. These can be specified in the software on the next step.

Each motor will require 4 pins on the arduino (call them pins A-D, depending on which PWM pins you chose), one for each stepper motor coil/phase.
Attach Pins A-D from the arduino to pins 1-4 on the ULN2003.
Ground the driver's pin 8 and attach the 2.5V (high current supply) to pin 9. 
Attach the colored stepper wires to the driver chip in the following order:
Pin 16: Orange
Pin 15: Black
Pin 14: Red
Pin 13: Yellow
Pin 9: White

The Stepper Motor datasheet and ULN2003 pinout are attached.

To generate the video, motors were attached to Arduino using the Easy Driver Stepper Motor Driver. The code used for moving the write head back and forth is provided below:

int stepPin = 2;
int dirPin = 3;
int LEDpin = 13;
int ii = 0;

void setup(){

pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(13,OUTPUT);

digitalWrite(stepPin, HIGH);
digitalWrite(dirPin, HIGH);
}

void loop() {

digitalWrite(dirPin, HIGH);
for(ii = 0; ii<2000; ii++){
delay(5);
digitalWrite(LEDpin, LOW);
digitalWrite(stepPin, LOW);
delay(5);
digitalWrite(LEDpin, HIGH);
digitalWrite(stepPin, HIGH);
}

digitalWrite(dirPin, LOW);
for(ii = 0; ii<2000; ii++){
delay(5);
digitalWrite(LEDpin, LOW);
digitalWrite(stepPin, LOW);
delay(5);
digitalWrite(LEDpin, HIGH);
digitalWrite(stepPin, HIGH);
}


}

Step 8: Prospective Software

Our plan was to utilize the RepRap firmware to drive the motors. RepRap is an open source project with a portable three axis G-code interpreter originally intended for use with 3D printers. It is portable enough to interpret G-code for use in an x-y plotter, though requiring device-specific code to be modified. We were going to use the ReplicatorG (also open source, also intended for 3D printers) as our G-code generator. It reads a standard svg file and enables printing to a connected device, which hypothetically would have been our x-y plotter.

These can be found at reprap.org and replicat.org

Step 9: Future Work

Picture of Future Work
This project provides the ground work for designing and building an xy-plotter. Several improvements, however, could be made:
  • Try to cut back substantially on platform, belt, motor, write head, etc. size to make a sleeker project.
  • Invest in higher torque motors.
  • Write a program to print an svg file in tiles.
As it stands, however, this project shows that it is possible to create a functioning xy-plotter that could potentially draw any shape with relatively easy to find materials.

magno_234 months ago
no updates?
hello, I'm doing a prototype plotter but I am con difficulty in programming the arduino, I would like to provide programming to help me?
My contact email is danielffonsi@hotmail.com
grateful for the attention
valdenir1 year ago
hi! can you post your electric schematic? i need to make a cutter plotter.
valdenir1 year ago
hi! can you post your electric schematic? i need to make a cutter plotter.
jduffy541 year ago
I would suggest you shorten the marker arm. It only needs maybe a milimeter of movement, and I noticed that the marker was flopping around. I would also suggest gripping lower on the marker, to avoid the bending as well. Also, where can I get software to convert a .dae to G-code? I want to build a 3-D printer using arduino, and can't find an easy way to directly output G-code from the computer to the arduino one line at a time.
Remony1 year ago
the goldmine-elec-products links are dead. could you please describe the parts you were using? thanks a lot!
pankaj771 year ago
Have anyone completed this project? I want to make it but I'm stuck on the reprogramming part to convert the 3d reprap code to 2d use.I'm a mechanical guy and not much familiar with programming...If anyone have already done this project please help.
See link below for inkscape extension which may be useful

http://www.thingiverse.com/thing:17631
quasar931 year ago
Sounds like this could be redone to use a plasma cutter--just beef up the structure a bit. Hmm...sounds like I have a new project...:)
Mojo_JoJo2 years ago
I had made something like this way back when I was in college. At the time I had very limited hardware. My stepper motors were drived from the parallel port through a buffer and controlled using a simple visual basic program to draw lines with a LOGO style commands. The pen was lifted using an electromagnet from a relay coil. Since then I've always wanted to improve on it and draw pictures and shapes from files. I now even have a dremel, drill, vice etc. probably my dream will come true now, thanks a ton.
kissubin2 years ago
Excellent explanation, very easy to follow and very helpful.
fgredauer2 years ago
Thanks for this!
Fragmaster2 years ago
You mention the Arduino, but didn't include it in the "Materials" list. Add please :)
jwoo20232 years ago
Are stepper mototrs harder to control than servos? What are the differences?
weldor2 years ago
What about an airbrush for specialty work? It could be set up to run multi color via seperate tubes and orifices. The orifices as well as the "media" pressure could be made adjustable.

Your project is basically a very much improved version of the old pantograph and "tracers" used for drawing as well as router work. What you have built could easily (?) be modified to operate larger units in order to produce...

Like al of the others I commend you for your efforts. Truly a job well done!!




espdp22 years ago
I'm thinking that if you move the servo to the underside of the Y-axis that rides on, and move the pen holder down close to the tip (the way we hold them) , it would wobble very little. Try holding a Sharpie by the cap and writing your name; it'll be very difficult because there's too much friction and leverage.

Also perhaps substituting larger dowels - like 1/2" or greater - for less flex might help. Nice 'ible! 3/5 stars.
SHIFT!2 years ago
Sweet! Could this build perhaps be reworked into a mechanized Etch A Sketch? That would be pretty neat.

doxsys SHIFT!2 years ago
THAT is a fabulous idea!
doxsys2 years ago
Coolo! This looks like my next project.

@nutsandbolts_64 and @Unclegummers -- The pen-on-servo trick works surprisingly well in the egg-bot, which is where I'd guess they got the idea.
Why not use a rack and pinion gear on the pen so that it goes straight up and down instead of just, well how it is then. The servo motor will still prove useful nonetheless to turn the small gear and raise/lower the rack along with the pen. I would like to see an RGB version of this someday.
Very cool! I think if you just secured the pen a little bit better and used something with less friction than a sharpie the loose pen issue may be solved.

Good start for maybe eventually attaching a drill or something to it and creating a CNC machine ;)
Not really liking how loose the pen is. I like your project, but I suggest using worm gears on the axis instead of belts.
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!