marlin 1.1.1 for printrboard

So I just decided to see about building a copy of stock marlin for my RevF, rather than the printrbot fork. Turns out, it's a little annoying, but not too bad. Working everything out from scratch took me about a morning's effort (most of which was just going back and finding a few config details I'd missed my first time thru)

I'm not going to list every setting, since configuration.h is pretty well documented, but I'll try to list a few of the ones that caught me off guard, or that I had to lookup.

  • Right at the top: MOTHERBOARD BOARD_PRINTRBOARD or MOTHERBOARD BOARD_PRINTERBOARD_REVF as appropriate

  • TEMP_SENSOR_BED 1 (that's correct for my non-standard sensor, I think that was right for stock heated beds as well though)

  • Remember that the Y axis sensor is a MAX sensor, not MIN. So you need to comment out USE_YMIN_PLUG, and comment USE_YMAX_PLUG

  • The Z sensor is the reverse of what's expected electrically, so you'll need to set Z_MIN_ENDSTOP_INVERTING and Z_MIN_PROBE_ENDSTOP_INVERTING to true

  • DEFAULT_AXIS_STEPS_PER_UNIT {80,80,2020,96}

  • DEFAULT_MAX_FEEDRATE {125,125,5,14}

  • For some reason, I had to invert all 3 stepper directions. Not sure what that's all about, but INVERT_X_DIR,INVERT_Y_DIR and INVERT_Z_DIR all seem to need to be true.

  • Since Y's endstop is at max: Y_HOME_DIR 1

  • in Configuration_adv.h you need to un-comment the line for DAC_MOTOR_CURRENT_DEFAULT, and set some values. Mine are {40,40,30,80} but your results may vary (and of course, you can change the values in EEPROM later. But if you don't have something, it won't compile)

  • I had to add some includes at the top of serial.h (It sounds like that bug may be fixed if you download the latest from GIT, but 1.1.1 has a bug...)

#include "Arduino.h"

#include "macros.h"

Posted May 14, 2017, 8:22 PM UTC · edited

155
Pewpasaurus•

I was thinking about using the new marlin in my simple metal. Are there any specific new features that you've found useful?

2
shiftingtechOP•

The autoleveling seems a little smarter, and a lot less buggy (based on the whole 2 prints I've done since the upgrade) That's probably the big win for me. (there are a few different autoleveling mechanics now, I'm using the bilinear one)

I did notice that the command for calibrating your Z sensor has changed. It's now M851 Z<offset>

something about the PID of my heated bed seems a little smarter now, but that may be an illusion (I upgraded my heater at the same time I upgraded the firmware)

I haven't noticed much else, but I really haven't delved that deep into the release notes yet.

2
CaseyDoran•

I did a mainline build back in December, these were most of my notes. Thanks for sharing!

1
musk_elon•

Do you know if Printrbot's LED lights will work with your build or do they need something else added? I've been wanting to use that new version of Marlin but really want to retain the nice LED stuff.

1
shiftingtechOP•

I'm not sure exactly how the official Printrbot lights work, I haven't really looked at them. I do have some lights in mine that are controlled with M42 commands, and that worked fine, with no additional tweaking (in fact, works better than it did on the old firmware. I had to patch the old printrbot fork to fix a crash bug in M42)

1