Get more out of Marlin & Octoprint with these lesser known tips - Macros, auto-start, custom menus

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 พ.ค. 2024
  • Marlin and Octoprint make a powerful 3D printing combo. In this video, I present some lesser known tips and tricks to make them even better. We cover things like autostarting gcode when the printer boots, gcode macros for saving time, custom LCD menus and host commands to let Marlin and Octoprint talk to each other properly.
    With these tips combined, we can set up a 3D printer for toolchanging, and perform previously unavailable functions from the printer's LCD like resetting the mainboard and shutting down the Raspberry Pi safely.
    Let me know if you wan to see a part 2 with more unknown tips and tricks.
    0:00 Introduction
    Guide to Marlin firmware set up: • Updated Marlin firmwar...
    Guide to setting up Octoprint: • Octoprint Raspberry 4B...
    Guide to connecting to your printer via terminal: teachingtechyt.github.io/trou...
    0:53 Backing up settings
    Marlin M503 reference: marlinfw.org/docs/gcode/M503....
    1:20 Autostart commands
    Marlin Autostart reference: marlinfw.org/docs/features/au...
    Marlin M117 reference: marlinfw.org/docs/gcode/M117....
    3:59 What are macros?
    4:37 Marlin macro firmware setup
    6:01 Marlin macro setting and execution
    Marlin M810-M819 macro gcode reference: marlinfw.org/docs/gcode/M810-...
    6:46 Using Autostart to load macros automatically
    7:20 Octoprint Macro plugins as an alternative
    Octoprint Gcode Macros Plugin: plugins.octoprint.org/plugins...
    Sidebar Macros plugin: plugins.octoprint.org/plugins...
    7:37 Custom menu items
    Marlin M997 reference: marlinfw.org/docs/gcode/M997....
    8:54 Shutting down the Pi from the Marlin LCD
    Octoprint Action commands plugin: plugins.octoprint.org/plugins...
    Klipper GitHub issue thread with instructions: github.com/Klipper3d/klipper/...
    Putty free SSH client: www.putty.org/
    Marlin M118 reference: marlinfw.org/docs/gcode/M118....
    10:09 Toolchanger macros from the LCD menu
    10:46 When Octoprint and Marlin don’t communicate well
    12:04 Host commands in Marlin
    Filament sensor simplified Octoprint plugin: plugins.octoprint.org/plugins...
    13:09 Conclusion
    Consolidated tabs Octoprint plugin: plugins.octoprint.org/plugins...
    Buy quality and affordable filament from X3D. Buy 3, get 1 free and a free sample pack with every order: www.x3d.com.au
    Get Quality Resins from 3D Printers Online. 5% off storewide for Teaching Tech subscribers [Code: tech5]
    3dprintersonline.com.au/
    Take a look around and if you like what you see, please subscribe.
    Support me on Patreon: / teachingtech

ความคิดเห็น • 95

  • @geoffcowie8843
    @geoffcowie8843 10 หลายเดือนก่อน

    Tkz. Needed your tips with my 3D printer.
    Glad to support another Aussie.

  • @ScottLahteine
    @ScottLahteine 2 ปีที่แล้ว +16

    Thank you for getting the word out about these features that really improve the user experience and make Marlin work better with OctoPrint (and Repetier Host also). Bonus points for including a shot of the “invaders” game! I had a lot of fun making those little games to break up the monotony, and may just have to add some more - plus improved ones for color and touch displays.

    • @heyitstor420
      @heyitstor420 2 ปีที่แล้ว +3

      Love the games! thanks for all the work you do scott!

    • @TeachingTech
      @TeachingTech  2 ปีที่แล้ว +1

      Love your work Scott. Although I like to experiment with RRF and Klipper, I will always keep a good amount of machines running Marlin. Thanks to you and the rest of the developers/community for making it so great.

  • @Enigma-Sapiens
    @Enigma-Sapiens 2 ปีที่แล้ว +6

    More Octoprint plugins & Marlin Features, please!

    • @TeachingTech
      @TeachingTech  2 ปีที่แล้ว +2

      I think I'm overdue for another Octoprint plugin compilation. Been a while since I did one.

  • @firedogbme5659
    @firedogbme5659 2 ปีที่แล้ว

    Thank you Micheal, I've been trying to work out how to shut down the pi without going thru OctoPrint. Now after following your instructions I can safely shut down and reboot the pi from the LCD. I would love to see a "part 2" of this topic!

  • @MisterDoctorGabe
    @MisterDoctorGabe ปีที่แล้ว

    This is such an awesome resource! And good sound design with that global bass/trance background music? Excellent video my guy 😘

  • @MakerMeraki
    @MakerMeraki 2 ปีที่แล้ว +13

    Great video. I would love if you updated your video on speeding up the BLTouch with Marlin, as the old video is out of date.

    • @the_game_1237
      @the_game_1237 2 ปีที่แล้ว +7

      Uncomment "#define BLTOUCH_HS_MODE" in Configuration_adv.h. It speeds up by a lot th-cam.com/video/95N2E6JVW2s/w-d-xo.html

    • @rattslayer
      @rattslayer 2 ปีที่แล้ว

      Would love that too! Tried to follow the guide but it is really dated.
      I'll try the @samuel

  • @christelledeneau7461
    @christelledeneau7461 2 ปีที่แล้ว

    Yes, I am definitely interested in more tips ands tricks in a part 2 !! Thank you very much for part 1 !!

  • @djtriggerfinger
    @djtriggerfinger 2 ปีที่แล้ว +3

    Nice man I was having that exact same issue with filament runout on my machines. I am totally going to apply some of these on my builds.

  • @allenlin3711
    @allenlin3711 2 ปีที่แล้ว +2

    Great video as always. Instructions are detailed and clear. I find myself watching the videos for fun just cause and some day making the change to my printers! Love to see more like this

    • @TeachingTech
      @TeachingTech  2 ปีที่แล้ว

      Thanks for the compliments :)

  • @Urist_Mythrilforged
    @Urist_Mythrilforged 2 ปีที่แล้ว +2

    The Space Invaders part made me smile.

  • @optikalblitz
    @optikalblitz 2 ปีที่แล้ว

    Came for the tips, stayed for the Danny Ric love. Cheers 🏁

  • @rudie2902
    @rudie2902 2 ปีที่แล้ว +1

    Michael, great video. Just what I was looking for. I appreciate is you can do more videos like this for Marlin and Raspberry Pi, which is the confirmation I use (on hardware Ender3V2 and Raspberry Pi 3B).

  • @robsretrorides796
    @robsretrorides796 2 ปีที่แล้ว

    This is an amazing and underrated video, thank you.

  • @philippegalid7262
    @philippegalid7262 2 ปีที่แล้ว +1

    Thanks for the Video,helps me

  • @StephenScicluna
    @StephenScicluna 2 ปีที่แล้ว +5

    Keep ‘em coming

  • @Phred_Phlintstoner
    @Phred_Phlintstoner 2 ปีที่แล้ว +2

    Yes I personally would love a second video! I also wanna know how to load space invaders on my printer!

  • @eideticex
    @eideticex 2 ปีที่แล้ว +1

    Thanks man. Have been trying to find a features to do exactly that, run a particular file at printer boot. Would have saved me a lot of problems while working out problems with EEPROM storage of my UBL meshes. While I have since solved that, I have developed a startup process that ensures my first print after a cold boot is every bit as successful as any successive prints. Sometimes I forget to do that process and predictably the first print fails, have wanted to automate that for awhile but relying entirely on Octoprint to do so has been troublesome to say the least.

  • @efnick96
    @efnick96 2 ปีที่แล้ว +1

    Omg the last feature would have saved me so many headaches in the last. But since I use Klipper for the last 1.5 years I guess it's good to see that Marlin is getting better

  • @k9elli
    @k9elli 2 ปีที่แล้ว +1

    All new stuff for me. Thanks!

  • @adrianrubio5396
    @adrianrubio5396 2 ปีที่แล้ว

    Smashing the like button on this one. Please, do another video on the other marlin tricks.

  • @thomaswiley666
    @thomaswiley666 2 ปีที่แล้ว +2

    Thank you very much! I wonder if we can translate some of these plugins into configuration macros within Klipper.
    Hmmm... thanks for giving something to think about.

  • @jonhoyles714
    @jonhoyles714 2 ปีที่แล้ว +1

    As always great video Michael you do a great job teaching this subject, it’s been a while since I booted up my klipper rig might need to flash marlin back on and take a look cheers x

    • @thesinofthetin
      @thesinofthetin 2 ปีที่แล้ว

      You shouldn't. Just keep Klipper. It is so much better than Marlin.

  • @PJC3DP
    @PJC3DP 2 ปีที่แล้ว +1

    Great video, really handy information.

  • @lookitsrain9552
    @lookitsrain9552 2 ปีที่แล้ว +1

    Great video, vast majority of people arent aware of marlins features and just assume it does not have them nor work as they want and just jump aboard klipper without actually looking at marlins options.

    • @TeachingTech
      @TeachingTech  2 ปีที่แล้ว

      I tend to agree. Each firmware has strengths and weaknesses.

  • @markferrick10
    @markferrick10 2 ปีที่แล้ว

    Great tips. thanks

  • @marioortegon3953
    @marioortegon3953 2 ปีที่แล้ว +1

    what are the odds... just yesterday I was wiring my sidewinder for filament runout, thanks for the tip and I'll try it from Marlin!

  • @joeldriver381
    @joeldriver381 2 ปีที่แล้ว +1

    Great stuff in this video!

  • @Outofbox11
    @Outofbox11 2 ปีที่แล้ว +1

    Awesome video. Do more octoprint vid pls

  • @Parkinsr19
    @Parkinsr19 2 ปีที่แล้ว

    Love the Danny Ric tee!

  • @petrcecil2622
    @petrcecil2622 2 ปีที่แล้ว +2

    I have to try that filament runout trick

  • @JT-91
    @JT-91 2 ปีที่แล้ว +1

    ty sir. i always hated the idea of plugin into the Rasp pi for the sensor.

  • @rdyer8764
    @rdyer8764 2 ปีที่แล้ว +1

    Yes, this was great! A second one would be even better.

  • @hcpookieWorkout
    @hcpookieWorkout 2 ปีที่แล้ว +1

    Those plugins are amazing! "Yes" I would like to see more about those useful plugins (not space invaders :) )

  • @enriquefuentesc
    @enriquefuentesc 2 ปีที่แล้ว

    Hi Michael, I simply love your videos and have learned so much since when I started 3D printing by following your channel. I have a question which I've not found a straight answer to. I used to love Octoprint when I started, but after a while I could not get over the quality difference by printing from Octoprint compared to printing from the SD card. From what I've read, the serial connection sucks on my Enders, Artillery X1's, CR-10's v2, etc. I did run octoprint from a Ubuntu PC, but with much better specs than a Pi 4. Now the question is, is this normal? Should a drop in quality be expected from Octoprint? I am running a small print business that started out last year and I am doing great with it, but the Octoprint solution is not helping me out quality-wise. I have 16 machines and would love all the Octoprint plugin functionality, but I am not using it because it just bombs out on quality. What can you recommend? Thanks for any info! And thanks for the channel! E.

  • @acondi4853
    @acondi4853 2 ปีที่แล้ว

    Hi Michael, great video!
    I was just wandering if you had any recommendations for a 3d printer with a large build already, preferably a printer with corexy that is capable of 3d printing materials like abs and pc. I was thinking of getting the ender 6 but then my budget was increased to $1800 aud. Thanks

  • @JDMsohc
    @JDMsohc 2 ปีที่แล้ว

    Any plans on switching to the SKR Mini E3 V3.0? I'm having a tough time getting a firmware compiled, and was hoping one of you more advanced techs would show us the way! =) Thanks!

  • @ZedkeiaFreimann
    @ZedkeiaFreimann 2 ปีที่แล้ว

    you should do part 2. i never knew marlin could do that

  • @andy-in-indy
    @andy-in-indy 2 ปีที่แล้ว +2

    I need to go recompile Marlin. . .

  • @jackthefine
    @jackthefine 2 ปีที่แล้ว

    Claiming half hour love this video

  • @MrGCampbell
    @MrGCampbell 8 หลายเดือนก่อน

    How can we use ChatGPT to create a machine learning plugin? For printers like the CR-30?

  • @kevinlupson6063
    @kevinlupson6063 2 ปีที่แล้ว +1

    Hi, fabulous video, is there anyway you could do one on the ender 6 updating etc
    Thanks in advance.

    • @TeachingTech
      @TeachingTech  2 ปีที่แล้ว

      I don't have an Ender 6, sorry.

  • @saddle1940
    @saddle1940 3 หลายเดือนก่อน

    Thanks for that. How would you use macros to run an X axis homing after a filament change has occurred, before the resume starts? If you have a hotend that the filament is difficult to insert into, sometimes the carriage moves during the manual load, but now the machine doesn't know where the X position is. Can you use a macro somehow to tell it to rehome just the x axis before resuming the print? Something like modifying the resume button sequence to include a homing command?

  • @myriadtechrepair1191
    @myriadtechrepair1191 2 ปีที่แล้ว +2

    I was thinking a better thing to do for the pi is power it from a backup battery that the printer charges, and when power is cut to the printer the pi will wait until the battery is about 50% drained and then shut down. That way you won't have to wait for octoprint to reboot if it's a small shutdown and you're even a bit protected from power outages. 50% puts the battery in a stable storage capacity, so if you're shutting down for storage you shouldn't have to worry too much about it.

    • @myriadtechrepair1191
      @myriadtechrepair1191 2 ปีที่แล้ว

      I realize one issue though, is that when the printer is off but the Pi has power your printer's main board can remain powered from your pi. This would be best utilized with a board that supports direct serial communication with headers on the board. I've seen reports that the 4.2.7 board can support this connection. They don't have to share a 5V line and thus the pi won't keep power to the main board. (I wonder if a custom usb cable with the 5V line cut would do the same.)

  • @Mimamau
    @Mimamau 2 ปีที่แล้ว +1

    You could make your Octoprint installation to be safe to just shut it off by cutting the power.

  • @Extrabitz
    @Extrabitz ปีที่แล้ว

    That's informative. But how about adding
    Macro:heat PLA preset, auto home, z aline, bed level (25 probe points), save. All in one. Off of octoprint display or through remote octoanyehere?

  • @Outofbox11
    @Outofbox11 2 ปีที่แล้ว

    I was wondering. Does octoprint work with tronxy x5sa?

  • @racgrac28
    @racgrac28 2 ปีที่แล้ว

    Noob here, can you do this stuff on a Anycubic Vyper?
    thanks!

  • @Qwerty0.1
    @Qwerty0.1 7 หลายเดือนก่อน

    привет, как сделать интерфейс как у тебя? управление осями под управлением температурой, терминал справа?

  • @andyspoo2
    @andyspoo2 9 หลายเดือนก่อน

    Watch out with these Macros. I did the same as above (using Marlin) and it cause my XY motors to speed up and slow down and the nozzle to smash in to the bed. It appears that the macro blocks were writing over my mesh data which was causing Z to adjust wildly.

  • @andybuehler7313
    @andybuehler7313 2 ปีที่แล้ว

    Where can I find the file for the part your using to secure the hotend cables to the front of the x-gantry? I have a micro Swiss direct drive and need to route my cables to the front so they don’t hit the top of the machine

  • @glennvillegas9941
    @glennvillegas9941 2 ปีที่แล้ว

    Is there a way to make my stock creality cr10s pro V2 communicate with my raspberry pi4 as you demonstrated with marlin... I have seen your Marlin and klipper videos, but I don't feel confident in doing it, especially because this is my only 3d printer and I need to make stuff for my projects

  • @Rostol
    @Rostol 2 ปีที่แล้ว +1

    ohh a DR fan ... go maclaren ! how hyped are you for qatar? I love him and lando. they are great guys and drivers.

    • @TeachingTech
      @TeachingTech  2 ปีที่แล้ว +1

      Just watched the race when I got up this morning. Lando was very unlucky with the late puncture. Not good for 3rd in the constructors. Daniel had a poor start and that was it for him. I'm hoping he is back to his old self net year in the new cars.

  • @SantaDragon
    @SantaDragon 2 ปีที่แล้ว

    Sadly my Wanhao with Marlin does not work with M or G-Codes. Any idea what to do in that case?

  • @xtommmik
    @xtommmik ปีที่แล้ว

    is it possible to somehow control octoprint with keyboard commands? I work a lot manually and use octoprint for this, but I would like to set up keyboard shortcuts and control everything haptically, is that possible? (simple things like xy/z homing, bed/nozzle temperature, moving to a certain point per keystroke, etc.)
    The goal is to put the shortcuts on my stream deck, a kind of separate hardware control panel.

  • @rouuuk
    @rouuuk 2 ปีที่แล้ว

    how did u move all tabs in one single tab?

  • @GaragePrints
    @GaragePrints 2 ปีที่แล้ว

    My octoprint is not running the start G-Code for my Cr10s pro V2 so no BL-Touch leveling and also it lets the print run without any of the safety features engaged.

  • @willl84
    @willl84 2 ปีที่แล้ว +2

    On my ender 3 V2 if I stop a print from the LCD it stops normally even when I print from OctoPrint.

    • @TeachingTech
      @TeachingTech  2 ปีที่แล้ว +1

      That's excellent.

    • @willl84
      @willl84 2 ปีที่แล้ว

      @@TeachingTech maybe it's just a thing with the 3 and 3 pro? 🤷

    • @willl84
      @willl84 2 ปีที่แล้ว

      @@TeachingTech maybe it's just a thing with the 3 and 3 pro? 🤷

  • @coel312
    @coel312 7 หลายเดือนก่อน

    Please help me, how am I supposed to edit the configuration file?

  • @makewithmegma
    @makewithmegma 2 ปีที่แล้ว

    I need help,On my ender 3, i click on disable motor, but it just won't disable, what should i do? 💕👍

    • @hakaiyou4532
      @hakaiyou4532 2 ปีที่แล้ว

      What firmware you use Marlin or something else?

  • @ashtech1184
    @ashtech1184 2 ปีที่แล้ว

    Adding a Gcode script to preheat automatically when connected to octoprint i thought was a brilliant idea.
    If anyone is looking for how to do it simply go to octoprint settings, select Gcode scripts, and in the box "After serial connection to printer is established" copy and paste,
    M140 S60 ;Preheat bed to 60
    M104 S200 ;Preheat hotend to 200
    M190 S60 ;Wait for Bed to reach 60
    M109 S200 ;Wait for hotend to reach 200
    M300 S1000 P500 ;Beep when preheat complete
    M117 OctoPrint ;Display the word "OctoPrint"
    This is just a preheat to get it started so when you actually start your print your slicer setting temperatures will still override this.

  • @matthewdolman
    @matthewdolman 2 ปีที่แล้ว +1

    This is nice, but now I've tried klipper why woule I bother?

    • @TeachingTech
      @TeachingTech  2 ปีที่แล้ว

      Each to their own. If you are happy, I am happy.

  • @djwhu77
    @djwhu77 2 ปีที่แล้ว

    Go DanRic!

  • @jamesmor5305
    @jamesmor5305 2 ปีที่แล้ว +1

    I want more

  • @yalcinyusuf91
    @yalcinyusuf91 2 ปีที่แล้ว

    Lütfen türkçe alt yazı ekleyin. Hiç anlamadığım halde videolarınızı çok sevdim. Alt yazı eklerseniz, anlayarak dinlemekten daha çok zevk alacağız

  • @VampireOnline
    @VampireOnline 2 ปีที่แล้ว +1

    I'd love to use OctoPrint but the connection is horrible to my older CR-10S. Ruins quality.

    • @shaungoh771
      @shaungoh771 2 ปีที่แล้ว

      did you use a power supply to your raspberry pi? I had that issue before. I had to buy the raspberry pi 20 dollar power supply before by connection became stable

    • @VampireOnline
      @VampireOnline 2 ปีที่แล้ว

      @@shaungoh771 Yup bought a cana kit... It is a B+ from 2015 so I don't know if that's part of the issue as well.

  • @fictiont1
    @fictiont1 2 ปีที่แล้ว +1

    You are mad man if you have printer connected to pi and using marlin.

    • @TeachingTech
      @TeachingTech  2 ปีที่แล้ว

      I guess there are a lot of mad people out there.

    • @fictiont1
      @fictiont1 2 ปีที่แล้ว

      @@TeachingTech 100% true :)
      Great video as always and kudos to you for trying to help everyone.
      But from consumer standpoint, after you get pi and want to go a bit more advanced and you don't want to change that c++ mess of a configuration file and build actual firmware, wondering if you messed something up or you just need to tune your printer better... Just unpractical and frustrating.
      I would rather stop printing than go back to that

  • @SkermiebroTech
    @SkermiebroTech 2 ปีที่แล้ว +1

    hello!

  • @MrSolLeks
    @MrSolLeks 2 ปีที่แล้ว

    7 min gang

  • @tomsko863
    @tomsko863 2 ปีที่แล้ว

    This is all way over my head. When it comes to sending GCODE I can't follow.

    • @TeachingTech
      @TeachingTech  2 ปีที่แล้ว

      I have a guide linked in the description for how to connect directly to the printer.

  • @pr0xZen
    @pr0xZen 2 ปีที่แล้ว

    Thanks, useful tips!
    On macros tho, actually no. If someone doesn't already know what a macro is, telling them it's something specific to gcode is a terrible idea. Your _first_ sentence on them, is literally the definition of a macro.

  • @MrMegaPussyPlayer
    @MrMegaPussyPlayer 2 ปีที่แล้ว

    13:22 Now you're just bragging.