Skip to content

Guide: Octoprint standalone engraving working for Ortur Laser Master 2

Shell M. Shrader edited this page Jan 17, 2022 · 6 revisions

Disclaimers & Warnings;

  • This works for me without any breaking issues, so it will probably work for you on your Ortur. However, I did not build this functionality, so I have no idea if it will work for all other lasers and there are known issues.
  • This functionality enables you to use your laser through a webpage. Main reason for me to do this is not needing to manually hook up and make sure i have the poweradapter on my laptop for longer prints. Also it seems i cannot do anything else on my laptop while printing.
  • This functionality is NOT intended to start/stop your cutting/engraving remotely. USE WITH CAUTION!
  • If you have never worked with Octoprint before, this guide is probably not for you. I will not go into the details of installing or using Octoprint.
  • Use a separate instance (or Raspberry Pi) for your Octoprint Laser version; do not use the same instance for your 3D printer. This will mess stuff up.

Steps

1: Mitigate power problems

  • Tape off the 5v pin on your USB cable connecting to the laser.Honestly, I have no idea why this isnt widely known for this laser, as it is widely known for Octoprint. This step is REALLY useful even if you choose not to use Octoprint.
  • If you do not do this, the laser (or your 3Dprinter) will draw power from your USB connection as well as from the powersupply. This is a cause for a lot of random disconnects and connectivity errors. https://community.octoprint.org/t/put-tape-on-the-5v-pin-why-and-how/13574

2: Octoprint

3 : Install the plugin

  • Install the plugin Bettergrblsupport through the Octoprint Plugin manager https://github.com/synman/Octoprint-Bettergrblsupport
  • DO NOT CHANGE ANY OF THE SETUP VALUES; Check if they match the guide in above link.
  • In Octoprint Settings; Features: Disable Temperature Graph --- The plugin already does this
  • If you have multiple Octopi's (e.g. for your 3Dprinter), it is handy to set a different Title and Color in Appearance
  • DO NOT install the 'UI Customiser' plugin, this will break functionality. --- UI Customizer works great - I use it on all my machines
  • Gcode Scripts, clear out ALL scripts. (By default 'after print job is cancelled' is filled.
  • Set 'After serial connection to printer is established':

$H

G0 X0.1 Y0.1

4: Printer Profile --- this changed around v2.0.0 when I introduced the Default Grbl Profile. You need not setup a profile but rather use the one Better Grbl Support provides you. Currently Octoprint ignores all options within the profile (such as the ones listed here) with the exception of the Extruder count. It compares the Extruder count against the tool # provided in gcode and if the tool # in gcode is greater than the extruder count octoprint gets really annoyed. This is why you'll see I've set extruder count to 100

  • Set up a printer profile with the following values:

  • Z value is ignored since there is no automatic height adjustment on the OLM

  • (Speed rates might be able to be higher)

5: Connecting the Laser

  • Hookup the Laser USB cable to your Octopi, Power on your laser with the powerbutton on the laser. Wait until it has finished its homing sequence.

  • In Octoprint, connect with AUTO / AUTO.This will probably hook up to serial port /ttyACM0 and Baudrate 115200, but I have issues connecting when selecting these values. For next reconnect you might need to keep manually setting it to AUTO / AUTO

  • If you connect/disconnect/connect in rapid succession, you will break it and have to unplug the power of the laser and power it back on before the connection works again.

6: Framing your laser

  • You should now have a working connection with your laser. If you don't, retrace your steps.

  • Make sure you set the "Starting Position' in above image to bottom left, otherwise the laser will disconnect on an 'out of bounds' error.

  • Home your laser with the 'Home' button (this will travel to the X and Y stops.

  • You can set your "working 0.0" by moving the laser with the arrow buttons to a position of your choice and clicking the mark/target button above the arrow buttons.

  • You can move the carriage to 'working 0.0' with the little house inside the arrow buttons. This feature is really handy when using an engraved grid where your 0.0 isnt exactly where your endstops are.

7: Lightburn

  • Load up your design in your favorite tool; in my case; Lightburn.

  • Make sure all designs are strapped to bottom left; 0.0

  • Set 'Start from' to 'Current Position'

  • Check the four encircled items in the picture below.

8: Export

  • Export your gcode.

  • Note; manually type the file extention as .GCODE ; the first time it tries to name it as .gc and this isn't a recognised format in Octoprint. --- You do not need to change the extension any longer. I have added hooks to the plugin that will automatically rename a .gc or .nc file to a .gcode file upon upload

9: Loading your file in Octoprint

  • Drag&drop your gcode in Octoprint.

  • In the files section, Load your print

  • The "framing" should resize to your actual print.

  • With the arrow buttons you can position the laser to the start location, or start from working home.

  • Make sure you have set the start position to bottom left and click 'draw frame'.

  • The frame is drawn from your start position

  • You can now place your start position with the arrow buttons and align that part to bottom left of where you want your print to start. (Note; this is where the boundary of the print starts, not where the object you want to print on starts!!)

10: Go

  • Everything set?

  • Recheck

  • Go

Usage

Cancelling a print

  • Cancelling a print takes time and will often disconnect your printer on error. --- this should work a lot better in v2.1.0+

  • Better route seems to be to 'pause' and wait until it is paused (this isnt instant) and then restart or cancel.

Error states

  • When your printer is halted due to an error, you can click the 'unlock' button in the GRBL Control. You do need to HOME your printer afterwards.

Endless possibilities

I have Octoprint hooked up to my Home Assistant through MQTT. This enables me to automatically start a powerswitch with my aquariumpump for air assist when i start a print and 10s after finishing turn it off again. Also, this starts my bigger exhaust for smoke extraction outdoors. With Home Assistant and MQTT you can literally connect everything to everything, too much to go into here. For more about that, visit https://www.home-assistant.io/