Sunday, 30 December 2018

A Bullet Journaling template

Bullet Journaling! It's a thing! And it's a thing that Mickey and I have both had much success with (see my first post on the subject as well as several more on that blog). Mickey has switched to a weekly layout that suits her needs better, using a template we had lying around. This template unfortunately is long enough that it doesn't fit in the journal itself. So of course I took it upon myself to print a new one, also because it's a very simple thing to design. By making a module that does a generic "arrow" that can optionally have one outwards tip and one inwards tip, it was trivial to make this design:


A first print turned out to need enlargement because small features aren't that precise. More interestingly, the top layer was nice and flat in the large areas, but was over-extruded in the little parts between holes.

Between the parallel slats the edge is fine but the in-between is over-extruded due to going back and forth very quickly
I reduced the infill (at 50% from an earlier experiment) as well as the infill/perimeter overlap, but I suspect this is one of those things that requires changes to Slic3r, to adjust for very short back-and-forth lines.

For a second print, I also lowered the Z-offset a bit to avoid elephant foot that was closing up the slats. That was, of course, the wrong thing to do - it doesn't lower the plate, but the hotend, so I got even more elephant foot. Stomp!

The third print came out better, though still has some of the openings that should match a line distance not quite do so. Also, there's a huge blob in one of the slats. Anyway, it's just mere tweakings from now. The extra extrusion in the narrow parts is still there, but I'll just live with it.

Friday, 28 December 2018

A severe case of false economy

I haven't posted much recently, partly due to other priorities (fighting, and rearranging my work area), partly because in a bout of false economy I tried to use up the very last bit of a roll of filament and ended up running out before I noticed, and now the remainder is stuck. I've tried pushing it through with other filaments, with hex keys, and with tiny screwdrivers, with no luck. I tried taking photos through the filament hole to see if I could figure out the problem. I eventually took the entire hotend assembly off, so I could see the top of the E3D. There is the white filament, nicely stuck:

It's not easy to see the problem even here

Why is it so stuck? I presume that is due to the end of it getting either squished or ground or both in such a way that it doesn't quite fit in the narrow part of the the hotend. I had to take the cooling ribs off the hotend, then I could easily pull it through. Here's what the end looked like, clearly bent:

Once pulled out, the bend is clear

Putting it all together as always took a bit - it's a quite compact construction. I found a nice trick for the fan duct mount. It's always particularly tricky, since it mounts on two screws that don't have a lot of leeway - screw them out too far and they fall off their nut traps, and those are even harder to get back in place. Instead, screw them out sufficiently, then use a magnet to hold them out while putting in the duct. Easy peasy. Getting the filament pull idler also seems to be getting more and more difficult, not least because there isn't a proper backstop for the screws, so over time they dig further and further in - into the stepper motor, hopefully it can hold up to that.

Taken apart


Anyway, the printer now works as before:


Sunday, 4 November 2018

Bed levelling, attempt #1

The one remaining annoyance on my printer is that it's not level. Over time, one Z axis goes a bit higher, which eventually makes enough of a difference that the print head will go too high and print into thin air - better than crashing into the bed, but still not good. Until now, I have started each printing session with manually measuring what the Z offset should be, occasionally adjusting one Z axis enough that the two sides are at the same height (the bed itself bulges by about 0.1mm). But I have printed a holder for a proximity sensor, and it's time to mount it!

I have an LJ12a3-4-Z/BX sensor, which will sense up to 4mm away. Trying it out with a voltage regulator (7805CT) gives me a nice constant voltage - of 2.5V. Wut? I see a number of people have problems with some probes, but also that not all probes are created equal. I also see that there is such a thing as an 8mm-sensing probe, and a probe that runs on 5V (LJ18A3-8-Z/BX 5V), but the latter might just be an underpowered 6-36V-capable sensor.

I was getting quite confused about this, until I read this article of somebody else being confused. They go into a goodly amount of detail of how they figured out the resistance setup and what they did to deal with a floating pin. This comment on another similar thread also makes sense: The output is either 0V (when something is close) or floating (otherwise).

Mine does have a nice little diagram on it, showing that Brown is +, Black is out, and Blue is Ground, with the sensor switch being between Brown and Black. It's also an NPN. The resistance between black and blue in mine was not a standard 10K, but a constantly changing amount in the mOhm range. There's no connection between the other wires. Also noteworthy is that my sensor has an orange tip, where most of the ones talked about have a blue one.

Feeding in 16V (because that's how much the 12V power supply I grabbed actually gives, unless my multimeter is borken), I see 13.6V on the sensor output when the sensor is open. If I add a 10K resistor between output and ground, it drops to 8V, with 20K it drops to 5.5V, so a 22K resistor ought to do it. Unfortunately, the sensor doesn't sense anything anymore, the LED doesn't light up, and the voltage doesn't drop. Only if I wire it wrongly does the LED light up, and then permanently.

Wait... now the voltage supply is giving nearly 18V. And the multimeter is showing a little battery sign. Maybe the battery... let's try the battery tester... shows nothing at all. Surely a battery can't be that dead, no, then the multimeter would have done nothing. Testing with some other batteries, yes, the battery tester is also dead. Why is everything broken?!? Oh, I can scavenge one from the smoke alarm in the kitchen (we recently got fancy smoke alarms in all rooms for free anyway) - nope, that one is also dead.

Total body count from today's exercise:

1 proximity sensor
2 9V batteries
1 cheap battery tester
Any progress today on getting the proximity sensor installed
1 12V power supply possibly injured
1 multimeter temporarily out

I suppose if I get an 8mm one as a replacement, I could put the copper tape I got from Ric under the glass. I'm doubtful that a 4mm sensor would do well enough there. Then I could even have a full grid level. OTOH, that would not measure the actual glass surface. I should also an NC probe though, for failsafe.

I'm not going to replace the mechanical endstop with the probe, for one thing they're at opposite ends, for another I don't really trust the probe as much.

All in all, I give today's results a big


Sunday, 21 January 2018

Valuable prints

OctoPrint is still being weird. It thinks the print time left is either 2 hours or 6 hours, depending on when I look at it, out of a total print time of... an hour. I guess when they say "approximate", they really mean it.


For a friend in the US, I printed a holder for a set of Euro coins. It came out pretty well. I didn't include any fudge factor for the holes, but with my perimeter adjustment set to 65%, it was so close that applying a rubber mallet was enough to get the coins in.

Perfectly fitting holes

I painted the legends with a silver Sharpie, the only pen I found that would stick properly. I like how the €2 coin seems to glow from within.
I'm also printing more fan mounts for my project of adding some air movement around our radiators. I've lasercut enough boards for it that I can start running tests soon. I wish I had some more temperature loggers, but I haven't been able to find any below about €50. Since I want to have several of them around for various purposes, I don't want them that expensive. It's not like the hardware is costly.

I've upgraded to Slic3r PE, which is under a lot more development than regular Slic3r. Also, it includes an interesting feature: You can adjust the layer height before slicing. Not only does this allow for slightly faster printing on simple verticals, it can also make slight inclines look nicer.

Sunday, 14 January 2018

Lots of calibration prints

Ran across a couple of calibration pieces by +Jeff Parish  which include instructions on what to adjust if they don't come out right. Since I haven't had things fit just right together, I thought I'd give them a shot.

First the simple U-pieces. Initial print was with 2.85mm diameter (white PLA from DasFilament) at 220ยบ. Fit together slightly loosely, increasing the nominal diameter to 2.90, then 2.95, then 3.0, before realizing that I should decrease the diameter. At 2.5, they could only barely be squeezed together, at 2.7 they fit only with a slight looseness.

A curious blip on the temperature graph:


Notice during the first of these two prints, at about -22 minutes, the temperature drops by about 10 degrees, stays there for maybe a minute, then goes back up. This didn't happen on the next print of the same piece. Weird.



Since holes are one of the hardest things to get right, I decided to make my own piece, with blackjack and hookers pegs and holes. To be able to test them against something independent, I made one hole+peg combination be 3.5mm, so a standard headphone jack should match, and the other 1/4" hexagon to match a screw bit.

I printed this piece with a 2.6mm nominal filament diameter, only to find that they fit even tighter than the original piece at 2.5mm. Unsurprisingly, none of the holes or pegs matched anything. Trying again at 2.7mm, they still don't fit, despite the pegless ones fitting at this calibration. At 2.85, they fit very tightly together, roughly as easily as the 2.5mm one with the original piece. That is a huge difference in material - overextrusion is clearly visible on the top of the 2.5mm pieces, and the corners are sloppy. Why they fit well I cannot tell.

 Now to try to get the pegs to work. I have a few knobs to tweak for this. I can change the number of perimeter layers - I currently have 2. I can change the extrusion speed of perimeters, small perimeters, and external perimeters, which are currently set to 60 mm/s, 15 mm/s, and 50% (i.e. 30 mm/s) respectively, the defaults. I can also set the perimeter width manually (in mm or %). That last one is promising.

To start out drastic, I set the perimeter width to 75% - and it was almost perfect! The hex bit fits tightly in the hex hole, the hex peg goes into the hex screwdriver easily, the headphone jack almost goes into the 3.5mm hole, and the headphone peg almost fits its hole. The notch fit is still rather tight, but fitting. At 65%, there is no appreciable difference.


In other news, I printed an art piece as a gift for a friend (that I won't show here lest they see it). The full piece at 0.2mm layer height took about 7 hours to print. When doing a test with 0.1mm layer height, printing roughly 1/10th of it was estimated to take 16 days. Wut? OctoPrint can't agree with itself how long it takes. It was actually only 3 hours.

Also heard about Slic3r PE, the variable layer height is a nice idea, and it's good to have somebody actively working on Slic3r. I have an idea for better support structures that I'll get back to in another post. I tested it out with the same peg piece, seeing little difference, then tried the CtrlV complex test print. Better than ever, except for the overhangs.

Nice roundings and a pyramid free of clutter, unlike the blue version
The text never came out this nice on previous prints
The overhangs are a bit sloppier than with the red filament test, but that might be a filament difference.

Thursday, 4 January 2018

Various prints, and thoughts on Z offsets

As I've been printing this and that, my Z offset has gradually increased to over 2mm. I have two remaining hypotheses for what causes this: Either the nuts holding up the X axis move slightly over time, or the two Z axis rods get slightly out of sync. The first hypothesis seems like it should change Z the other way, but when I did a check of Z offset on the left and right side, there was a huge difference. Adjusting the right side down to match the left side brought my Z offset back down to 1mm.

I still have a distance probe to add, but even after that I should keep an eye on the unevenness, since print quality undoubtedly will be better if the Z axis doesn't have to move when printing a layer.

Other things I've printed recently:

A properly rescaled AAA battery organizer (on the left without the fan duct active since the plug had fallen out):

Notice how the corners one the left one look melted. Fan support saves corners!

A McBenchy for my new red filament. Slightly weak on the brow, but overall good quality:



One-and-a-half McBenchy for my blue filament, done without fan by accident. Total brow failure:




Painter's stands for holding painting projects up:



A funnel sized to make it easy to fill our peanut container:

Thursday, 28 December 2017

Basic LED strip control with ATtiny

Since my printer is currently in a good shape and simply printing useful things (and some less useful), I've thrown myself at another project I've had hanging around: Getting some LED strips up for lighting in the kitchen and living room. I have some bog-standard 5050 strips, unfortunately the colors that can be set with the standard controllers are god-awful. People, there are millions of colors available on these strips, how did you manage to pick all the worst ones?

Anyway, Arduino to the rescue. I set up a little breadboard to check that it works, using some IRLB8721 transistors to control power (following the nice Adafruit tutorial). In my limited knowledge, I initially tried using trimpots to control the light, which of course had limited success. Once I set up control via the Arduino using its PWM outputs, lights were fading happily in and out. Except for the red channel, which behaved a bit weirdly. But never mind that, I moved on to my real target: Using an ATtiny85 for controller.

I have this cute little USB-stick programmer for the ATtiny from Sparkfun, and a cheap CPU sounds like the right thing for controlling a bunch of LEDs in various places. So I hooked it up, and found the lights were being somewhat odd. After swapping out the transistor for the red channel, it behaved nicely, but blue was just going on/off. I tried swapping out all the parts to no avail, blue was simple bi-level. What was up?

Back to the ATtiny descriptions, and I see that only ports 0 and 1 are PWM. Oh noes! What's a poor programmer to do? Program, of course! Turns out there is while the usual delay() function uses millisecond delays, there is a delayMicroseconds function that has finer resolution, at the cost of not doing an actual sleep. When in doubt, add more power! I spent about half an hour figuring out how to get this to work, seeing some rather strange behaviours until I realized that both digitalWrite and delayMicroseconds each take several microseconds to execute. Annoying, but surmountable.

It should be noted here that one of the swap-outs I had tried earlier was moving blue output from pin 2 to pin 3. As I was investigating how long they actually took and reading some related pages, I ran across one forum where they said the ATtiny has 3 PWM outputs. Wut? That's not what SparkFun told me! Turns out there are two PWM timers, they can't fully interconnect, so there are three PWM outputs: Pins 0, 1, and - you guessed it - 4. If I had only happened to use pin 4 instead of pin 3 when swapping out, this would have worked yesterday.

So now my little ATtiny85 is lazily fading colors in and out, next step is to make a proper PCB instead of a breadboard and also use my camera to figure out what the right values for good daylight/warm white lights are.

Morale: WTF SparkFun? Also: When testing things, keep the tests as simple as possible - my initial test program faded the different RGB channels in over each other, making it harder to understand what went wrong. Here is my final program, modified from the Adafruit tutorial code:

// color swirl! connect an RGB LED to the PWM pins as indicated
// in the #defines
// public domain, enjoy!

#define REDPIN 0
#define GREENPIN 1
#define BLUEPIN 4  // Poorly documented third PWM pin

#define FADESPEED 1  // make this higher to slow down

int blue;

void setup() {
  pinMode(REDPIN, OUTPUT);
  pinMode(GREENPIN, OUTPUT);
  pinMode(BLUEPIN, OUTPUT);
}

void setrgb(int r, int g, int b) {
    analogWrite(REDPIN, r);
    analogWrite(GREENPIN, g);
    analogWrite(BLUEPIN, b);
    blue=b;
}

void blink(int times) {
  setrgb(0,0,0);
  for (int i = 0; i < times; i++) {
    delay(50);
    setrgb(50, 50, 50);
    delay(50);
    setrgb(0,0,0);
  }
}

void loop() {
  blink(2);
  // Fade red in and out
  for (int r = 0; r < 256; r++) {
    setrgb(r,0,0);
    delay(FADESPEED);
  } 
  for (int r = 255; r > 0; r--) { 
    setrgb(r,0,0);
    delay(FADESPEED);
  } 
  delay(200);
  // Fade green in and out
  for (int g = 0; g < 256; g++) { 
    setrgb(0,g,0);
    delay(FADESPEED);
  } 
  for (int g = 255; g > 0; g--) { 
    setrgb(0,g,0);
    delay(FADESPEED);
  } 
  delay(200);
  // Fade blue in and out
  for (int b = 0; b < 256; b++) { 
    setrgb(0,0,b);
    delay(FADESPEED);
  }
  for (int b = 255; b > 0; b--) { 
    setrgb(0,0,b);
    delay(FADESPEED);
  }
}