plotter

Overview

   I saw a bunch of Youtube videos featuring plotters and printers and laser cutters that people had created which got me really excited about these XY drawing things that can cut/draw/print crazy shapes in a very evidently mechanical way that captures the imagination (at least mine), which inspired me to go hunting on Ebay. Before long I found a friendly Canadian willing to part with his XY plotter for around $50 total. I happily bought it and waited eagerly for my new possession to arrive. One day it came in the mail, and I have to say, just as a side note, this Canadian guy is excellent at packing things, it almost seemed artistic the way he crafted cardboard inside the package to keep everything in place.

   For a long time I kept the plotter just as it had come to me. It had some really cool features. I could draw with the arrow keys and make it do a test print. It made really beautiful noises as well, musical if you timed your button presses right. The idea of wrecking the original electronics seemed depressing to me, which was the main reason I left it alone for so long. After a while though I realized it wasn't much use to me if I couldn't print pictures from the computer, and so I resolved to hack it.

original control board

   The original RS-232 interface was almost no use to me, although (and this is incredibly cool) the entire protocol the device uses is explained in the manual. I really wish modern electronics devices had their workings explained within their manuals, although nowadays there is no real need to program your own device drivers for every new peripheral you acquire for your computer. When I gave up on communicating with the plotter in the manner originally intended I decided to just strip it of its original electronics and start anew. When I opened it up I found a huge tray of components in a large PCB. A really notable thing that I discovered were two ancient microprocessors that had stickers covering a glass window. The things were so old that they could be erased by exposure to and ultraviolet light! I feel so smug with my fancy modern microcontrollers that can be programmed via SPI from my desktop computer in under five seconds. Besides the logic circuits there are two stepper motors in the rig, with a small actuator to raise and lower the pen and two infrared gate sensors so the controller can figure out when the stylus has reached its limits. My basic plan of action was to wire the three electromechanical parts and two sensors to a new controller so I could connect the plotter to my computer and make the plotter print whatever I wish.

x-axis gate sensor

   To replace the old plotter controller I chose my Make Controller that I received for Christmas a few years ago and that hasn't seen much use since. It has two stepper motor controllers built in that can handle up to one amp, making it ideal for controlling my plotter. Before I could try out controlling the plotter with the new controller I had to solder a new connector to the ribbon cable that connected the old controller to all the parts on the moving carriage. The ribbon cable is flat with flat contacts, which is why I couldn't just insert it into a breadboard. It took hours to solder some new ribbon cable because of how easy it was to melt the old cable. Soldering really is my least favorite part about electronics.

make controller board

   With the soldering done I made a circuit on my breadboard to control the plotter with my Make Controller. After that was done it really only took a few minutes to get a Processing sketch together to play with the stepper motors. Sadly I can only control one motor at a time right now because one of the motor controllers is burned out. I am replacing it with an EasyDriver that I got from Sparkfun, but it will take time to write code for controlling it, as I will have to write some new firmware for the controller. When the new controller is in I will have full control of both axises and will then be able to interface the gate sensors to complete the setup. With the gate sensors connected and with the right code I'll be able to make the plotter initialize to a home position on start-up and make adjustments as it runs to keep it accurate, because I know where the sensors are and the controller can tell when the carriage gets to one of the sensors, telling me where in absolute space the pen carriage is.

   When everything is hooked up and I write the software on the PC side I will finally be able to start drawing things with my refurbished plotter. I might take one of several routes from there for the actual drawing mechanism. I could use a pen like it was originally designed to use, or I could use a laser powerful enough to burn/etch/cut, or even some kind of spray-paint system. A fun thing to do would be to use the plotter to print designs on shirts and then sell them for some money. Conceivably I could make a three color paint system with some piping and pumps so full color images could be printed, but I have a feeling that is better said than done. Lot's more experimentation to do, but I have faith the result is going to be quite spectacular.

To Do

  • Solder ribbon cable to pre-existing cable.
  • Wire up breadboard circuit between Make Controller and plotter.
  • Test out individually controlling stepper motors.
  • Wire up spare stepper controller to replace burnt one.
  • Test out both stepper motors at once.
  • Wire up control of pen raise/lower actuator.
  • Wire up stop sensors built into plotter.
  • Find suitable replacement for pen.
  • Design interface between plotter and computer.
  • Write vector-based control software for computer.

Timeline


Sometime In The Past-I disassembled the plotter and figured out what sensors and motors and actuators are in it. I spent a long time wiring a new ribbon cable to the one on the plotter so that I can insert it into a breadboard. I hooked it up to my Make Controller through my old RadioShack breadboard and managed to take control of each of the steppers individually. Seems like one of the motor drives in my controller is burned out, but I have an EasyDriver stepper controller from Sparkfun lying around that I should be able to use as a replacement.
1/24/10 (1:37 PM)-Sacrificed (temporarily) my CNC machine to get another stepper motor controller. I've decided to make a circuit using an attiny13 and two identical stepper motor controllers that connects to the computer over serial rather than dedicating my Make Controller to the project, which only has one working stepper controller anyway. Tomorrow I have a half day of school because of midterms, and Tuesday I have off, so I might be able to finish the control hardware at least by then. After that I'll have to get around to adding a drawing/cutting instrument and writing the software to control it.
1/25/10 (1:57 PM)-Soldered header pins to one of the stepper motor controllers so I could plug it into a breadboard. I hooked up an Arduino to the one controller and ran the motor at nine volts. I can't tell if the controller is bad or I'm not supplying the right voltage or something, but the accuracy is terrible. I rummaged through my parts bins and found a wall wart that can supply 800mA at 12 volts, which is the rating for the motors at least, but the controller is on rated for 750mA continuous. I think I'll take the risk because it seems the wart is putting out less mA than its rating. Gonna hook up the other controller tomorrow.

Materials

Obtained?ItemCost
YesBrainFree
YesOld XY Pen Plotter$30
YesMake Controller$110
YesWire$1.00
YesProtoboard$11.95
YesSoldering Iron$6.00
YesSpare stepper motor controller$15

Media

Credits

-Owen TruebloodCode-fu. -InterwebsThe knowledge. -Make MagazineCreating the Make Controller.