A little secret to rock your YouTube subscribers
Get Free YouTube Subscribers, Views and Likes

Micro Mini CNC Plotter - Part 2 - Testing Hardware and Software

Follow
Clayton Darwin

A micromini CNC plotter built from 2 DVD drive stepper motors and one camera stepper motor. It has a 36mm by 36mm drawing area (that's the size of the big square you see being drawn).

It uses a cartridge from a ballpoint pen to draw. Not the best for plotting, but small enough to fit in the print head. I'm looking for a felttip pen cartridge to replace it, but haven't found one small enough.

In terms of hardware, I made it from parts I had sitting around. As you can see, there are a lot of salvage parts as well as some fabricated parts. Most of the small metal parts you see were made (bent up) from pieces of a floppy drive case and some hold downs from inside DVD drives. All the screws came from DVD drives. All the rods came from DVD drives. The wire is from USB mouse cords. The spring is from a DVD door flap.

As for electronics, I'm using a generic USB serial adapter to talk to three pic12f675 micros from a Linux desktop. The PICs each control an SN754410 quad half bridge to run the X, Y, and Z axes (motors). Basically I'm sending the pinout serially to each motor on a masterslave network. Not much else going on.

The software is is a series of stacked Python 3 classes. The lowest level class handles talking to the microcontrollers. On top of that is a stepper class that tracks the motor locations and does the math necessary to make the movements efficient. On top of that is a gcode interpreter, and at the very top is a class specific to this miniplotter that handles zeroing and the updown of the pen. The top class also includes the single font definition and the functions that scale and center. I like how the software is stacking up (pun intended), but it needs a lot of refinement still.

This has been a good way to learn the fundamentals of NC and gcode. I think I'm going to make a PCB milling/drilling machine next. Maybe.

Code:
http://claytondarwin.com/cgibin/down...

posted by doseerle