{"id":835,"date":"2015-12-21T19:26:51","date_gmt":"2015-12-21T19:26:51","guid":{"rendered":"http:\/\/daniepstein.com\/daniepstein\/?p=835"},"modified":"2015-12-21T19:34:22","modified_gmt":"2015-12-21T19:34:22","slug":"octoprint-and-the-ultimaker-2","status":"publish","type":"post","link":"https:\/\/daniepstein.com\/daniepstein\/octoprint-and-the-ultimaker-2\/","title":{"rendered":"Octoprint and the Ultimaker 2"},"content":{"rendered":"<p>Having finally concluded that the whole fiddling with an SD card to get my Ultimaker 2 printing was growing long\u00a0in the tooth, I roped in a spare Raspberry Pi to act as a 3D print server.<\/p>\n<p>Finding the info required to do this in one place is still quite tricky, so I figured I would write it all down while I still\u00a0remembered.<\/p>\n<p>First of all, <a href=\"https:\/\/github.com\/guysoft\/OctoPi\">octopi<\/a> was installed on the raspberry. Of course I was too tired to realise that the image was downloaded as a zip, and I wrote the zip file to the SD card using dd several times until the light dawned, and I cursed roundly at my foolishness. One unzip later, 3.3Gb of data transferred smoothly. The raspberry pi was wired up to the printer and a handy ethernet cable and breathed into life.<\/p>\n<p>Instructions listed <a href=\"https:\/\/github.com\/guysoft\/OctoPi#how-to-use-it\">here<\/a> were slavishly followed, and then it was time to give things a whirl.<\/p>\n<p>Firstly, the baudrate in the connection section has to be configured for 250000. Very important. After that there was really not much to do. I decided to install every plugin on a whim, which proved quite useful since there is no &#8220;go faster&#8221; button, and the custom control plugin allowed me to add one with little fuss\u00a0(the g-code\u00a0is M220, e.g. M220 S120 for 120% printing speed). As my benighted offspring\u00a0might say: &#8220;Well wikkid&#8221;.<\/p>\n<p>The next big change takes place in Cura, where the UltiGCode has to be switched out for RepRap(Marlin\/Sprinter) in the machine settings dialog.<\/p>\n<p>After that, things change a little in Cura, most importantly is the Start\/End-GCode tab that appears. This will have to be modified in order to get the results you expect, such as having the head travel to the front of the table and dribble sufficient quantities of expensive filament to no end other than to prime the nozzle, and drop the bed after printing.<\/p>\n<p>So, here be the code:<\/p>\n<p>Err, not quite. Just a quick note, and <em>then<\/em> the code. M117 appears to do absolutely nothing at all. Nada. Nichts.<\/p>\n<p>Ok, here really is the code.<\/p>\n<h2>Start code<\/h2>\n<pre>;Sliced at: {day} {date} {time}\r\n;Basic settings: Layer height: {layer_height} Walls: {wall_thickness} Fill: {fill_density}\r\n;Print time: {print_time}\r\n;Filament used: {filament_amount}m {filament_weight}g\r\n;Filament cost: {filament_cost}\r\n;M190 S{print_bed_temperature} ;Uncomment to add your own bed temperature line\r\n;M109 S{print_temperature} ;Uncomment to add your own temperature line\r\nG21 ;metric values\r\nG90 ;absolute positioning\r\nM82 ;set extruder to absolute mode\r\nM107 ;start with the fan off\r\nG28 X0 Y0 ;move X\/Y to min endstops\r\nG28 Z0 ;move Z to min endstops\r\nG1 F12000 X5 Y10 ;move hotend to front left\r\nG1 Z15.0 F{travel_speed} ;move the platform down 15mm\r\nG92 E0 ;zero the extruded length\r\nG1 F200 E5 ;extrude 5mm of feed stock quickly\r\nG1 F50 E15 ;extrude 15mm of feed stock slowly\r\nG92 E0 ;zero the extruded length again\r\nG1 F{travel_speed}\r\n;Put message on LCD screen - well, not really coz it don't work\r\nM117 Printing...<\/pre>\n<h2>End code<\/h2>\n<pre>;End GCode\r\nM104 S0 ;extruder heater off\r\nM140 S0 ;heated bed heater off (if you have it)\r\nG91 ;relative positioning\r\nG1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure\r\nG1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more\r\nG28 X0 Y0 ;move X\/Y to min endstops, so the head is out of the way\r\nG28 Z0 ;move Z to min endstops\r\nM84 ;steppers off\r\nG90 ;absolute positioning\r\n;{profile_string}<\/pre>\n<p>That&#8217;s really that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Having finally concluded that the whole fiddling with an SD card to get my Ultimaker 2 printing was growing long\u00a0in the tooth, I roped in a spare Raspberry Pi to act as a 3D print server. Finding the info required &hellip; <a href=\"https:\/\/daniepstein.com\/daniepstein\/octoprint-and-the-ultimaker-2\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":""},"categories":[4],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2UnW3-dt","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/daniepstein.com\/daniepstein\/wp-json\/wp\/v2\/posts\/835"}],"collection":[{"href":"https:\/\/daniepstein.com\/daniepstein\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daniepstein.com\/daniepstein\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daniepstein.com\/daniepstein\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daniepstein.com\/daniepstein\/wp-json\/wp\/v2\/comments?post=835"}],"version-history":[{"count":3,"href":"https:\/\/daniepstein.com\/daniepstein\/wp-json\/wp\/v2\/posts\/835\/revisions"}],"predecessor-version":[{"id":842,"href":"https:\/\/daniepstein.com\/daniepstein\/wp-json\/wp\/v2\/posts\/835\/revisions\/842"}],"wp:attachment":[{"href":"https:\/\/daniepstein.com\/daniepstein\/wp-json\/wp\/v2\/media?parent=835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daniepstein.com\/daniepstein\/wp-json\/wp\/v2\/categories?post=835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daniepstein.com\/daniepstein\/wp-json\/wp\/v2\/tags?post=835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}