NO!!! I want to print more!!!! or Offloading octoprint timelapse videos

octo

I use octoprint to manage my printer.  When I can, I batch print.  I will literally print things back to back. But I also love the timelapse and we have all seen it….warning

 

But I have more robot stuff to print!!!!

Settle down there smart guy.

Nobody asked you!

Ok, interruptions aside.  Running octoprint on an original pi is a little slow.

Did you say apple pi?

captain-picard-facepalmI don’t like this guy.

I said ORIGINAL pi.  Yes, old school slow.

So what happens if you try to print again while it’s rending a timelapse… well, you get a lot of stalls on the print, meaning the head sits over the print causing some unnecessary melting.

So how do you fix it if you are so smart?

Well, you would offload it.  I have a linux box that handles all sorts of random tasks.  It could do it.

So here is how I offload it.

  1.  setup an NFS share to a nas/other server
     192.168.X.XX:/mnt/vol/dataset1 /home/pi/fs nfs nouser,atime,auto,rw,dev,exec,suid 0   0 
  2. Configure octoprint to store the timelapse pics on this NFS share.paths
  3. All that is doing is changing the location of the timelapse, not offloading jerk.
    I KNOW!!!  I’m not done!
    Sorry
    So now we need to setup the exact same share on the other linux box.  If I had thought about it early on I would have changed the path on the pi to be something like /media/share/ instead of /home/pi/fs
    So we put the same path on the other linux box.
    (see 2.)
  4. Now the fun stuff.
    Finally!
    I created a small shell script on the PI.

    #!/bin/bash
    ssh root@192.168.X.X "ffmpeg $@"
    if [ $? -eq 0 ]
    then
    # everything was good
    exit 0
    else
    exit 1
    fi
    
  5. Set up your pi to be able to login with no password (using keys instead) so that the ssh connection will not hold anything up.
  6. Configure octoprint to use this new script as your ffmpeg path.
    2016-11-07-19_03_42-octoprint

So let me walk you though it.

Good idea.

Are you being nice all of the sudden?

No.

Anyway.  So octoprint is now setup to store your timelapse images on the network somewhere.  Linux box is setup to have the exact same path.  When your print is done octoprint executes the timelapse.sh script thinking that is ffmpeg.  So it runs it waiting for it to exit with a success or failure.  So in the script, we ssh to the linux box, tell it to run the ffmpeg with the $@ which means everything octoprint wanted to pass to ffmpeg locally we are passing to the remote ffmpeg.  The other box does all the heavy lifting and returns an exit code, we pass that exit code back to octoprint.  It’s none the wiser.

The cpu is next to nothing because we are just waiting for the ssh command to finish.  So I have started additional prints with minimal issues.

I have noticed that if you keep your filenames short and sweet it helps.

Is this a great solution or what?

No.  Buy a better pie.

Don’t you mean a “pi?”  Haha.  Jerk.

pievpi

Time lapse in new printer enclosure

surprised-rainbow-faceSo awhile back I came across an instructables article regarding using some ikea lack tables to make a 3dprinter enclosure…..

I love ikea….

So this was the project.  http://www.instructables.com/id/3d-Printer-Enclosure-from-Upcycled-Furniture/

I went to ikea.  Got 2 lack tables and put them together…. I want my printer higher up.  ELEVATE TO THE LEVEL OF THE GODS!!! no.  just high enough I can watch it cause I like to watch it go back and forth while I make printer noises.

So I ordered a 3rd table.  Put it on top.  Sweet.  Much better.  I moved the printer into the enclosure this weekend (no sides put on it yet) and decided I needed to get the lighting in place.  So I took some neopixel strips I had laying around and hooked them up to an arduino.

13694706_1455593267790887_1215760066_nOk, so that’s now how I am leaving it 🙂  but it did look cool.   Now I can set the colors.  Plain white for printing.  I am trying to figure out how in octoprint to get a hook in to detect when it’s heating up.  That way I can turn the lights orange or red to indicate heating phase.

 

 

So I did a timelapse and a vid.   The vid of the whole rig setup

Here is the timelapse test print

 

I am working more on trying to get some good photo and video in with these projects too.  If you like the videos give a thumbs up and a subscribe.

My First 3d Printer (final)

So you have seen my woes.   I learned ALOT about 3d printers during the build and trials and tribulations.   But once I had it pseudo working the first thing I wanted to print…. UPGRADES!!!

“#$%^& YES!!!! Print your own upgrades!”  I yelled at the printer!

2015-05-18 19.12.36

I printed a new fan shroud that has a vent to help cool the plastic as well as a slot for a 9 gram servo motor..  Why you may ask?  Well, its for the auto bed level!

This seemed like the holy grail at the time, it is still pretty cool, but I have found it does put some extra wear and tear on your z-axis nuts and rods.

I basically build it based of this guys videos

This is still a pretty cool feature.   I have even used the time it takes to auto level to change my heat bed temps by using some custom “start gcode” in CURA

M140 S65
G21 ;metric values
G90 ;absolute positioning
M82 ;set extruder to absolute mode
M107 ;start with the fan off
G28 ;move Z to min endstops
G29

 

In short, my CURA profile has the heat bed set to heat up to 55 degrees.  I personally like it at 65.  So once that initial 55 is hit for the heatbed and the hotend it starts this custom G-Code.   That first line says “set the head bed temp to 65” then it moves on to some of the other settings.  The G28 and G29 are related to the auto bed leveling.   So while its probing various points, the bed is heating up to my desired temp.

2015-06-01 16.48.25

Its funny I have this little guy printed in black abs, black pla, red pla and gray pla in my house.

This hurt.  For over a week I had my printer ripped back apart.

2015-06-10 09.25.13

 

 

My First 3d Printer (part 2)

Wow, its been 6 months since I wrote part 1.

I will show a few more pics of the build and then go into some MAJOR things I learned.  Some links to really good resources and some pics of various prints I have done.

2015-04-21 21.49.04

This was the picture after I got a lot of the main support structure together.   I thought I was getting close to being done.  Oh how wrong I was..

All of this info so far happened in the time between Wednesday and Saturday that first week.  So Saturday night the wife is off to work, the kids are pre-occupied.  PRINTER TIME.  2015-04-23 22.03.16

So I am putting on the heat bed the the y-carriage support (that acrylic plate in the middle.)  You have springs you put over the screws so that it has constant pressure keep the plate level.  I am pressing these things in…. crack!!

2015-04-17 17.53.20

Yep, broke a piece of my printer before I even plugged in it.

2015-04-25 14.03.51

I was devastated.  However, not the end of the world.  I continued on and just jammed a sticky note pad in there… don’t judge me.  Desperate times called for desperate measures!

At that point I stepped away for 2 days and began working on it again going into the new week.  Electronics time!!!

Now we have to hook up all that stuff.

Look how clean a RAMPS board looks before you hook everything up.2015-04-24 18.27.08

So I get everything hooked up.   I’m done.  Lets hook it to the computer, upload a test pattern for the motors and make it move.

 

 

Nothing…

 

Why isn’t it registering….  Why is that power light coming on and fading out…. Did I get a bum arduino mega?  No worries!!! I have an extra one from another project, lets test it.

Out comes the magic smoke….   1 of those little green stepper motor boards was on backwards and fried not only the arduino mega, but the mega, the RAMPS and 4 of 5 stepper motor drivers.  Thank you amazon for having just that kit available for someone like me.

 

Now I am considering just setting it all on fire, molding it into something, and calling it “3d printer art” but we have it powering up now.   So I had to give the dining room table back to the wife (she hates when I take over the table for projects)

2015-04-28 23.52.08 2015-04-29 16.48.36

So its time to start trying to print.

HA!!!  I wish it was that easy.   1 simple word for anyone considering 3dprinting.  CALIBRATION!!!!  Do it.  Do it again.  Keep doing it.

That clicking sound in the video.  Yeah turns out that is bad.   I was having problems with the motor being able to push the filament through the nozzle.

Calibrate your temperatures!  Make sure you aren’t too close to the bed.   Sigh.  This went on for awhile.

Good calibration cube http://www.thingiverse.com/thing:214260

 

Then I ran into this lovely issue.

2015-05-09 01.53.38

So much heat transfer into the extruder that it softened and jammed up.  I cleared this SOOOO many times.

Look on the top of that heat block.  See that little bit of leakage?  That became the bane of my existence.  Long prints and I would get a random build up of that plastic, it would drop on my print, cool, and snag the head.

Fixed the jamming with adjusting my cooling settings and print head temp.

Fixed the leaking head by pulling that throat tube out and putting some plumbers tape on it.  Shouldn’t have needed it, maybe it was a bad tube, but worked like a champ since.

I had another problem later with all the vibrations my heating element fell out of the heat block.  That was weird.  Had to tighten everything down again.

Thermister broke…  Replaced that.

Replaced nozzles a couple of times due to bad clogging (nozzles are cheap, order spares, you may be able to get acetone to dissolve a lot of the clogs, but who wants to wait multiple days)

 

 

My first 3d Printer (part 1)

I have been looking for a 3d printer for a long time.  Finally had a chance to get one so I did some looking around and found a great price for a prusa i3 kit.

The kit I got was folgertech.

image

The price has dropped from $299 to $289 just since I got my kit.  So the price is insanely cheap.  Especially for a US based company.

So I order said printer along with a display.

image

The kit shows up after almost 2 excruciating weeks.  I knew I had to build it so this wasn’t a surprise.

image

More coming!!