The Smell of Molten Projects in the Morning

Ed Nisley's Blog: Shop notes, electronics, firmware, machinery, 3D printing, laser cuttery, and curiosities. Contents: 100% human thinking, 0% AI slop.

Tag: Improvements

Making the world a better place, one piece at a time

  • Thing-O-Matic: Z-Minimum Probe G-Code

    The G-Code in start.gcode homes all three axes, but now I have two limit switches on the Z axis: the MBI Z-Maximum at the top and a new Z-Minimum on the platform. The Z axis platform can’t miss the switch at the top, but I must position the nozzle directly over the Z-Minimum switch on the platform before probing for it. Homing the stage at the top of the Z axis makes sure the nozzle starts more-or-less at the right height over the switch, which then provides an exact adjustment.

    For the home switches on my Sherline CNC milling machine, the EMC2 homing routines proceed in two stages: a fast slew to find the switch, then a slow approach to ensure the axis doesn’t overrun the switch. That seemed like a good way to ensure that the X and Y stages would home repeatably enough to hit a 2 mm button with a 1 mm nozzle every time.

    I recycled the default home sequence for coarse homing, albeit with the speeds cranked up a bit:

    (- coarse home axes -)
    G162 Z F1000	(home Z to get nozzle out of danger zone)
    G161 Y F4000	(retract Y to get X out of front opening)
    G161 X F4000	(now safe to home X)
    G92 X-53.0 Y-59.0 Z117.0	(set XYZ coordinate zeros)
    

    Then the fine homing sequence backs off a few millimeters and bumps the switches very slowly:

    (- fine home axes)
    G0 X-51 Y-57 Z115 F400	(back off switches)
    G161 Y F200
    G161 X F200
    G162 Z F200
    G92 X-53.0 Y-59.0 Z117.0	(re-set XYZ coordinate zeros)
    

    You could set relative motion mode with G91; that might be cleaner all around.

    I discovered experimentally that you must set all three axes in the G92 command, because any missing axes get set to 0.0: probably not what you want. It’s not what I expected, either, but this isn’t the EMC2 G-Code dialect I’m more familiar with.

    In normal use, the extruder has been heating for quite a while and there’s no pressure inside. There’s most likely a long strand of filament hanging off the end that will interfere with the switch, so a preliminary wipe is in order. I first pause the nozzle over the middle of the platform as a visual indication that everything started up OK, then make a dogleg around the wiper blade to the front of the wipe station:

    (- manual nozzle wipe)
    G0 X0 Y0 Z10	    (pause at center to build confidence)
    G4 P500
    G0 X40 Y-57.0 Z10	(move to front, avoid wiper blade)
    G0 X56            (to wipe station)
    G0 Z6.0           (down to wipe level)
    M6 T0			        (wait for temperature settling)
    G1 Y-40	F1000		  (slowly wipe nozzle)
    

    With the dry wipe done, move to the Z-Min switch and poke it very very slowly:

    (- home Z downward to platform switch)
    G0 X55.9 Y8 Z3	      (get over build platform switch)
    G161 Z0 F50	          (home downward very slowly)
    G92 X55.7 Y8 Z1.45	  (set Z for actual switch trip height)
    G0 Z6.0			          (back off switch to wipe level)
    

    I had to determine the actual height of the trip point experimentally, by doing some test extrusions and adjusting that Z1.45 to make the answer come out right. I’m sure that will change as things settle into their final places.

    Ditto for the exact XY location of the Z-Min switch, which I found by using a very slow G1 move to Z2.0 in place of the G161 probe.

    Note that you increase the Z value in G92 to lower the initial nozzle position and vice versa. It helps to draw some diagrams and work through the whole thing to be sure you understand it; that’s what I had to do, anyway.

    Then return the nozzle to the wipe station by running over the blade again to dislodge any gunk on the front side, crank up the extruder to build up pressure, and wipe again to get rid of the snot ball:

    (- start extruder and re-wipe)
    G0 X56 Y-40     (set up for wipe from rear)
    G1 Y-57.0 F1000 (wipe to front)
    M108 R2.0	      (set stepper extruder speed)
    M101		        (Extruder on, forward)
    G4 P4000  	    (take up slack, get pressure)
    M103		        (Extruder off)
    G4 P4000  	    (Wait for filament to stop oozing)
    G1 Y-40	F1000		(slowly wipe nozzle again)
    G0 X0           (get away from wiper blade)
    

    Running the extruder here ensures that, no matter what, the molten ABS in the hot end begins the print in a consistent state every time. The extruded length varies from a few millimeters to a real string, so there’s obviously plenty of variation.

    Then I put a manual splodge turd at the middle of the front edge of the platform. This is unnecessary now that SF40 shuts off the extruder before zipping off to the first Skirt, so I’ll probably junk it in the near future:

    (- manual splodge)
    G0 X0 Y-58		  (to front center)
    G0 Z0.5 		    (just over surface)
    M108 R2.0	      (set stepper extruder speed)
    M101            (start extruder)
    G4 P2000        (build up a turd)
    

    Putting all that together with some odds & ends gives the complete current version of start.gcode:

    (---- start.gcode begins ----)
    (MakerBot Thing-O-Matic with aluminum HBP and Z-min platform switch)
    (Tweaked for TOM 286 - Ruttmeister MK5 stepper extruder mod)
    (Ed Nisley - KE4ZNU - May 2011)
    (- set initial conditions -)
    G21		(set units to mm)
    G90		(set positioning to absolute)
    (- begin heating -)
    M104 S210 T0	(extruder head)
    M109 S120 T0	(HBP)
    (- coarse home axes -)
    G162 Z F1000	(home Z to get nozzle out of danger zone)
    G161 Y F4000	(retract Y to get X out of front opening)
    G161 X F4000	(now safe to home X)
    G92 X-53.0 Y-59.0 Z117.0	(set XYZ coordinate zeros)
    (- fine home axes)
    G0 X-51 Y-57 Z115 F400	(back off switches)
    G161 Y F200
    G161 X F200
    G162 Z F200
    G92 X-53.0 Y-59.0 Z117.0	(re-set XYZ coordinate zeros)
    (- manual nozzle wipe)
    G0 X0 Y0 Z10	    (pause at center to build confidence)
    G4 P500
    G0 X40 Y-57.0 Z10	(move to front, avoid wiper blade)
    G0 X56            (to wipe station)
    G0 Z6.0           (down to wipe level)
    M6 T0			        (wait for temperature settling)
    G1 Y-40	F1000		  (slowly wipe nozzle)
    (- home Z downward to platform switch)
    G0 X55.9 Y8 Z3	      (get over build platform switch)
    G161 Z0 F50	          (home downward very slowly)
    G92 X55.7 Y8 Z1.45	  (set Z for actual switch trip height)
    G0 Z6.0			          (back off switch to wipe level)
    (- start extruder and re-wipe)
    G0 X56 Y-40     (set up for wipe from rear)
    G1 Y-57.0 F1000 (wipe to front)
    M108 R2.0	      (set stepper extruder speed)
    M101		        (Extruder on, forward)
    G4 P4000  	    (take up slack, get pressure)
    M103		        (Extruder off)
    G4 P4000  	    (Wait for filament to stop oozing)
    G1 Y-40	F1000		(slowly wipe nozzle again)
    G0 X0           (get away from wiper blade)
    (- manual splodge)
    G0 X0 Y-58		  (to front center)
    G0 Z0.5 		    (just over surface)
    M108 R2.0	      (set stepper extruder speed)
    M101            (start extruder)
    G4 P2000        (build up a turd)
    (---- start.gcode ends ----)
    

    Then I did a bunch of measurements to see how it worked…

  • Thing-O-Matic: Z-Minimum Platform Height Switch

    Z-minimum switch - left view
    Z-minimum switch – left view

    Getting a good bond between the build platform and the first extrusion layer depends on the nozzle height above the platform: too high and it doesn’t stick, too low and the excess plastic ruffles up to ruin the next layer. I’ve been setting the height manually, but that’s tedious, fraught with error, and goes best with a cool platform that may change size when it heats up. Measuring the Outline or Skirt extrusion provides after-the-fact information about build platform alignment, but doesn’t ensure that the current print will work.

    The best way to do this is to measure the actual height of the nozzle above the build platform immediately before starting the extrusion, with everything at operating temperature, then set the Z axis so that Z=0.0 puts the nozzle on the platform. Nophead put a height measurement station beside the build platform and I’ve built a tool length probe for my Sherline, so I’m not breaking new ground here.

    The catch is that the switch must sit flat on a 120 °C platform, withstand being poked with a 220 °C nozzle, repel ABS, and trip with better than 0.1 mm repeatability. I don’t know that what I’ve done here meets all those criteria, but it’s a first step along the way.

    The top picture shows a surplus SMD pushbutton switch with a metal actuator button mounted on a small steel strip. The gray epoxy blob to the front secures a brass tube that protrudes from the bottom into the middle socket head cap screw along the right edge of the platform.

    [Update: The surplus place was likely Electronic Goldmine, but it seems they have no more. Sorry. Maybe glue a metal disk atop a plastic switch?]

    Drilling thin sheet metal
    Drilling thin sheet metal

    The steel strip was an RF shield from a junked wireless network card. I bent the edge in a small sheet-metal brake to keep the whole thing rigid and, somewhat to my surprise, the strip remained as flat as I can measure throughout the adventure.

    Drilling a good hole through sheet metal is easier when you clamp it between two sacrificial sheets and drill through the whole stack. That keeps the metal from warping and gives you a nice, circular hole; otherwise, you get a rumpled sheet with a triangular hole that’s good for nothing. You can see the bent edge sticking up on the left; the drill center is 4 mm from that side.

    The brass tube in the hole and the bent edge constrain the switch to a known position relative to the underlying HBP. The tube fits snugly in the center bolt’s hex socket to set the XY position and the bent edge keeps the whole affair parallel to Y. That allows the upper plate to shift slightly in XY while the switch remains in the same location relative to the TOM’s XY home switches (the bent edge allows a bit of slop in X for the top plate’s hole tolerance)

    The Z height, of course, depends only on the altitude and thickness of the top plate, which is exactly what’s being measured relative to the nozzle.

    I built it in two stages: epoxy the brass tube, then mount the switch and a second tube as a strain relief around the wire. A layer of Kapton tape insulates the SMD switch terminals from the steel strip; the epoxy sticks well enough to the tape for my present purposes.

    Attaching Z-min switch and cable
    Attaching Z-min switch and cable

    None of the dimensions are critical, although having the whole assembly narrow enough to stay out of the build area seems like a Good Idea. The center line of the platform bolts sits 4 mm inward of the plate edge, to give you an idea of the scale.

    The right-side bulldog clamp holds it securely in place, with the wire from the switch threaded beside the platform and wrapped around a solderless lug on the front corner:

    Z-minimum switch on build plate
    Z-minimum switch on build plate

    I think a tiny neodymium magnet embedded in the top plate would work just as well, although it’d tend to suck steel swarf out of the rest of the shop. This is not the right place for a random speck of grit!

    The wire connects to a 24 inch CD-ROM audio cable fresh from the usual eBay supplier. I snipped off the end and added a resistor to resemble an MBI mechanical endstop switch: 10 KΩ to +5 V, switch connects the resistor to ground. No LED, alas.

    Next, a dab of G-Code to poke the nozzle into the switch…

  • Thing-O-Matic: Build Plate Clamps

    I’m using a removable aluminum plate atop a fixed plate on the HBP, but haven’t clamped the two together because I couldn’t figure out how to do it without an overly complex gadget.

    It turned out to be easier than I expected, after I found a couple of bulldog clips in a drawer while looking for something else:

    Aluminum plates with bulldog clips
    Aluminum plates with bulldog clips

    The clip on the right must be well toward the rear in order to clear the X axis limit switch and its cable. The clip on the left then goes near the front just for symmetry.

    The nozzle can’t quite reach the left clip, but it can clobber the right one. I try to align the end of the clip with the middle of the bolt heads to keep them out of the build area.

    The wire handles don’t quite touch the TOM’s case on the left side and have plenty of clearance on the right. They don’t get too hot after an hour’s worth of printing; clips with solid metal handles wouldn’t work well at all.

    News flash: that’s almost the last of the pink plastic!

  • Ensuring a Sharp Blade

    Cutting those compliant washers required a really really sharp blade, which prompted me to put a new one in the cutter.

    As a matter of course, I run a marker along the edge of all the new blades when I restock the utility cutter’s supply. The idea is that sometimes I can’t tell if the current blade’s been used; there’s nothing worse than sawing away at something delicate with a dull blade.

    Utility cutter with marked blade
    Utility cutter with marked blade

    I generally use a blue marker, but the last time around the red one must have been closer to hand. I won’t make that mistake again…

  • Thing-O-Matic: Stronger Filament Tensioner Springs

    Stronger filament tensioner springs
    Stronger filament tensioner springs

    When I built the Wade-ScribbleJ filament tensioner, I used four of the stiffest springs available in the Little Box o’ Small Springs. They came without a pedigree, of course, and worked quite well. However, the filament would occasionally stop feeding, usually after an intense series of reversals, and it seemed more pressure on the filament was in order.

    The 1.5 inch 4-40 screws limit the available length to no more than 12 mm and the tensioner must have at least 1 mm of free travel to accommodate filament thickness variations. Those springs had fairly dense coils and they were pretty much fully compressed.

    They turned out to compress 9 mm with 2.5 pounds applied, for a spring constant of 1.2 N/mm or, for we metric-challenged Yanks, 7 lb/in. Some rummaging turned up my Brownell’s No. 71 Compression Gun Spring assortment and I found a spring that compressed 5 mm with 5 lb applied: 4.4 N/mm or 25 lb/in.

    I know you’d love pix of that process, but I was already one hand shy of having enough to push the spring scale against the [4-40 screw + washer + spring + washer] over a metric ruler, then apply enough force to compress the spring  while reading the distance between the washers. Use your imagination, OK?

    I sliced four 4.5 turn lengths from that spring with a Dremel cutoff wheel, cleaned up the ends a bit to get them all to about 13 mm, reassembled the tensioner, and cranked the screws to compress the springs down to 8 mm. The quartet now apply something like 25 lb = 110 N to the idler bearing. That’s about four times what it was before, so that filament should have no reason to slip, even under cough extreme duress.

    Tomorrow: Applying some extreme duress…

  • Thing-O-Matic: Reset on Power (Not So) Good

    Having added a dummy load to pull a minimum current from both the +5 V and +12 V supplies, it seemed reasonable to connect the ATX +Power Good signal to the Arduino’s -Reset input. That ensures a power glitch will force a hard reset, rather than produce random crashes / instability / weirdness, and make the problem obvious.

    Of course, that presumes the power supply notices the glitch and drops the +Power Good line. That’s probably an incorrect assumption, but the only way to test it requires hitting the power supply with a crowbar and I’m just not going to go there.

    Anyhow.

    This also ensures the Arduino gets a hard reset when I turn the power off by triggering the manual shutdown button on the thermal lockout control box. The Arduino draws power through the USB cable from the PC (at least on the Foxconn box I’m using) and sometimes starts up crazy; that will no longer happen.

    The +Power Good signal arrives through the Gray wire on ATX pin 8 (it also drives an LED on the lockout box) and the -Reset signal is the outside pin on the Motherboard’s manual reset pushbutton. The new connection looks like this:

    Power Good to Reset - MB Schematic
    Power Good to Reset – MB Schematic

    Being no fool somewhat cautious, however, I added a switch that can disconnect the two lines; if it turns out the +Power Good signal has any glitches, I can use the original mode while scratching my head.

    A giant blob of hot melt glue holds the switch in position:

    Power Good Enable Switch to MB Reset Button
    Power Good Enable Switch to MB Reset Button

    A wire burrows through one of the unused RS-485 connector mounting holes under the switch on its way to the ATX connector. It’s the Blue wire below the board in the previous picture, enters from the top right here, and terminates on the third pad over with the Black wire that joins the cable on the way to the Lockout box

    ATX Power Good connection
    ATX Power Good connection

    Now I’ll see whether the Thing-O-Matic begins resetting at random moments. After doing all the various mods & improvements you’ve seen over the past few months the printer has been quite reliable, so I have some hope that this change will produce … no change.

    As a quick test, I let the printer sit all day with the Thermal Core and HBP temperatures cycling around 50 °C and all four steppers enabled. Any reset would disable the steppers and make itself obvious, but after two days it’s all good.

    One good sign: the LED ring around the extruder head just barely changes brightness as the heaters cycle.

    Oh, and the steppers don’t overheat, either. This thing is starting to behave like a real 3D printer should!

    If it does start resetting, however, I’ll add a latch inside the Thermal Lockout box that captures short +Power Good glitches and lights Yet Another LED.

  • Thing-O-Matic: Revised Wipe and Splodge

    Notched wiper
    Notched wiper

    So I finally got around to properly trimming & installing the silicone wiper to suit the aluminum build plates, then measuring where it sits in XYZ coordinates.

    The notched upper edge (that’s not a shadow) more-or-less matches the nozzle shape, but I doubt that’s critical. The key part: make it short enough to miss the bottom of the insulation blanket around the Thermal Core, which is much thicker on my Extruder than yours.

    From this angle you can see the nozzle just in front of the wiper. I used a low-profile bolt, although it’s still slightly higher than the top aluminum build plate.

    Nozzle in wipe position
    Nozzle in wipe position

    This G-Code routine helped figure out all the parameters. Define the maximum Z height properly, then fiddle with everything else to center the nozzle on the platform, pause in front of the wiper, and stop at the splodge position.

    (---- manual wipe and splodge alignment ----)
    (MakerBot Thing-O-Matic with aluminum HBP)
    (Tweaked for TOM 286)
    (Ed Nisley - KE4ZNU - April 2011)
    (-- set initial conditions)
    G21		(set units to mm)
    G90		(set positioning to absolute)
    (-- home axes)
    G162 Z F1500	(home Z to get nozzle out of danger zone)
    G161 Y F4000	(retract Y to get X out of front opening)
    G161 X F4000	(now safe to home X)
    G92 X-53.0 Y-59.0	(set XY coordinate zeros)
    G92 Z116.0    (set Z for HBP with aluminum sheet platform)
    G0 X0 Y0 Z10	(pause at center to build confidence)
    G4 P2000
    (-- manual nozzle wipe)
    G0 X56 Y-57.0 Z15	(move to front of cut-down wiper)
    G0 Z5   		(down to wipe level)
    G4 P4000		(Wait for filament to stop oozing)
    G1 Y-40	F1000		(slowly wipe nozzle)
    (-- manual splodge)
    G0 X-52 Y-58  (to front left corner)
    G1 Z0.50      (just over surface)
    

    This becomes a chunk of the heavily tweaked start.gcode that Skeinforge folds into every sliced file.

    Of course, just when I get this figured out, Skeinforge 40 eliminates the Outline plug-in, shuts off the extruder before zipping off to begin the Skirt (starting from the right side!), and prints the perimeter thread of the bottom layer first. More pondering is definitely in order…