1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

Octoprint change for mesh bed leveling in Marlin 1.1.0RC4

Discussion in 'Mods and Upgrades' started by John Edwards, Mar 26, 2016.

Thread Status:
Not open for further replies.
  1. John Edwards

    John Edwards New Member

    Joined:
    Jan 2, 2016
    Messages:
    16
    Likes Received:
    5
    I decided to brave the Marlin 1.1.0RC4 firmware release. (Thanks to WheresWaldo!)

    Since I don't have an LCD and drive my printer via Octoprint, I wanted to be able to move the the head up and down easily by 0.025mm and otherwise drive the mesh-leveling process. So I added some controls via OctoPrint's config.yaml file. In case anyone else needs to do the same, I added the following lines in controls section.

    controls:
    - children:
    - command: G29 S1
    confirm: You are about to start automesh leveling
    name: Start
    - command: G29 S2
    name: Store point
    - commands:
    - G91
    - G1 Z-0.0250 F200
    - G90
    name: Down
    - commands:
    - G91
    - G1 Z0.0250 F200
    - G90
    name: Up
    - command: G29
    name: Report
    layout: horizontal
    name: Mesh leveling

    This adds a "Mesh leveling" section to the control page with "Start" "Store point" "Up" "Down" and "Report" buttons to the Control tab.

    John
     

    Attached Files:

    TomerO, danzca6, epatel and 2 others like this.
  2. Mike Kelly

    Mike Kelly Volunteer

    Joined:
    Mar 11, 2013
    Messages:
    6,967
    Likes Received:
    2,275
    This is great! good work
     
  3. Sean Carson

    Sean Carson Member

    Joined:
    Feb 4, 2016
    Messages:
    155
    Likes Received:
    22
    dumb question time: Is mesh leveling something the printer itself does, like auti bed leveling, or so I need to click one of those in octoprint before I start?
     
  4. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,864
    Likes Received:
    3,559
    @Sean Carson
    Mesh is a manual process, done one time, much easier with an LCD controller.
     
  5. Sean Carson

    Sean Carson Member

    Joined:
    Feb 4, 2016
    Messages:
    155
    Likes Received:
    22
    Is there a walkthrough for doing this in simplify3d? I don't have an LCD controller.
     
  6. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,864
    Likes Received:
    3,559
    From the Wiki

     
    cjryker06 likes this.
  7. cjryker06

    cjryker06 New Member

    Joined:
    Mar 22, 2016
    Messages:
    22
    Likes Received:
    0
    Communication tab under machine controls, one command at a time. I ended up using my tablet with Octoprint. Be sure to save to EEPROM.
     
  8. cjryker06

    cjryker06 New Member

    Joined:
    Mar 22, 2016
    Messages:
    22
    Likes Received:
    0
    Does this section need to be manually added to the file on my Octopi or can it be uploaded via the web GUI?
     
  9. Sean Carson

    Sean Carson Member

    Joined:
    Feb 4, 2016
    Messages:
    155
    Likes Received:
    22
    Thank you!
     
  10. John Edwards

    John Edwards New Member

    Joined:
    Jan 2, 2016
    Messages:
    16
    Likes Received:
    5
    I wish I knew enough to make it a real plug-in. I don't. So it needs to be manually added.
     
  11. cjryker06

    cjryker06 New Member

    Joined:
    Mar 22, 2016
    Messages:
    22
    Likes Received:
    0
    As I suspected, I guess I'll get to learn something today since I am just running the Octopi premade with no monitor lol.
     
  12. Sean Carson

    Sean Carson Member

    Joined:
    Feb 4, 2016
    Messages:
    155
    Likes Received:
    22
    How do I save to EPROM? I cant get the octoprint thing to work.
     
  13. cjryker06

    cjryker06 New Member

    Joined:
    Mar 22, 2016
    Messages:
    22
    Likes Received:
    0
    M500
     
  14. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    21,516
    Likes Received:
    7,059
    To be complete:

    M500 Store current settings in EEPROM for the next startup or M501.
    M501 Read all parameters from EEPROM. (Or, undo changes.)
    M502 Reset current settings to defaults, as set in Configurations.h. (Follow with M500 to reset the EEPROM too.)
    So after firmware is fixed you need the M502 and an M500 at some point for them to work.
     
    Rigmarol and Geof like this.
  15. Sean Carson

    Sean Carson Member

    Joined:
    Feb 4, 2016
    Messages:
    155
    Likes Received:
    22
  16. izumi5188

    izumi5188 Member

    Joined:
    Feb 12, 2017
    Messages:
    59
    Likes Received:
    20
    I'm trying to add this as well, but I can't seem to locate the file you are describing in my OctoPrint folder. Are you able to supply me with a path. I found one in tests. But that doesn't seem to be adding anything to my server.
     
  17. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,864
    Likes Received:
    3,559
    @izumi5188
    config.yaml may be in ~/.octoprint
     
  18. daniel871

    daniel871 Well-Known Member

    Joined:
    Apr 18, 2015
    Messages:
    1,322
    Likes Received:
    510
    It should be noted that if you're having to resort to mesh leveling there is something seriously wrong with your build plate, but it is a useful tool if you have no recourse for getting a build plate that is actually flat.
     
  19. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,864
    Likes Received:
    3,559
    @daniel871
    WTF are you talking about?

    Unless the build plate is machined to be perfectly flat there will always be some variation in the bed surface. Some will have more variation than others. Some materials used in beds may inherently be less flat than others. That is why leveling in some form or another was added to every single firmware (not just Marlin) used in 3D printing. MESH is just one way to accomplish that objective.
    .
     
    Geof, Ed Ferguson and mark tomlinson like this.
  20. daniel871

    daniel871 Well-Known Member

    Joined:
    Apr 18, 2015
    Messages:
    1,322
    Likes Received:
    510
    The operative phrase is "having to". All of the manual adjusting and shimming in the world will not correct a bed that is out of flatness tolerance to allow proper first layer adhesion across said bed (and how much is allowable depends on your intended first layer thicknesses).

    My current printer has zero leveling in the firmware. 100% manual leveling of the bed based on a hard Z-Zero leveling point and adjusting screws for the plate (that I adjusted once, locked in place with the addition of some loc-nuts on the threads sticking out of the thumbscrews and left alone in the latter half of last year).

    Yes, it's a nice tool to have if there is a flaw somewhere in the design of your printer or in the materials used. Just because there is a large swath of poorly manufactured build plates out there doesn't mean that we should just go along with believing that is an acceptable thing.

    Didn't you swap the glass bed on your Robo for a sheet of MIC6 stock? That's guaranteed to be flat within .015"/.2mm regardless of sheet size (and with a duty tolerance of maintaining that flatness when heated to 800F/427C). That is well beyond flat enough for any 3d printed object if you're slicer settings are set up within reason for how accurate the stepper motors/drivers are to begin with.
     
Thread Status:
Not open for further replies.

Share This Page