K8200 + octoprint with Cura

Hey All,

I’ve got a K8200 for christmas, now that it is up and running
I would like to connect a raspberry pi to it so when i later move it to the garage i can manage it remote and follow up
what i found is that octopi (octoprint) is popular
so i started to play around a bit and found some steps and guides but i’m at some difficult points.
also one of the reasons i would like to change is that slic3r takes long in the reptier k8200.

so what i’ve done and managed so for.
I’ve downloaded and configured the octopi, i’m able to access this over my network.

with the settings i’ve adjusted i was able to connect to the printer but no print is getting out.
the issue i’ve noticed is that the bed was heating but the extruder not :s

I’m hoping somebody can help me out (maybe even a full config if i’m going wrong :slight_smile: )

serial connection
/dev/ttyUSB
baudrate: 250000
printer profile: using the default ?

all the rest seems to me mostly default

only under plugins => curaplugin i’ve imported a profile but not sure it is correct

i hope you can help me out !!!

thx a lot

Krizzie

Octoprint and Slic3r perform different functions.

Under normal printing, the bed must reach temperature before the extruder begins to heat. Did you let the bed get to full temperature? Are you getting good temperature readings from both thermistors?

If you connect your computer instead of the Raspberry Pi, do you see any diagnostic messages in Repetier? You could have knocked a connection loose when you moved everything out to the garage.

You should be able to control the basic printer functions even if you don’t have the OctoPi configuration completely right.

@ lynk, when using the slic3r in repetier downloaded from velleman some easy files where even not done after 7h, while in Octoprint this went verry fast.

@Dr Vegetable, it seems indeed that patience is needed, once the bed got to the temprature (60) the hotend (200) started. i guess this are values somewhere from a config i found.

I went from the idea to heat the hotend before so i can remove the first part of pla when i start printing, something that i didn’t find yet.

i’m able to do printing indeed, will add some pictures later on to see if the result is good.

will also add the config files that i’ve used maybe could be adjusted if needed.

thx

http://opa.cig2.canon-europe.com/s/m/H4kCRUXgXQF/3mvnMXS0wqmJmawS

some prints for the casing of the raspberry pi, initiated with octoprint
the big part is faulty as the printer hanged at one point and didn’t continue anymore

for the kura profile i use following ini file:

[code][profile]
layer_height = 0.2
wall_thickness = 0.8
retraction_enable = True
solid_layer_thickness = 0.6
fill_density = 30
nozzle_size = 0.3
print_speed = 30
print_temperature = 0
print_temperature2 = 0
print_temperature3 = 0
print_temperature4 = 0
print_bed_temperature = 0
support = None
platform_adhesion = None
support_dual_extrusion = Both
wipe_tower = False
wipe_tower_volume = 15
ooze_shield = False
filament_diameter = 3
filament_diameter2 = 0
filament_diameter3 = 0
filament_diameter4 = 0
filament_flow = 135
retraction_speed = 50
retraction_amount = 2
retraction_dual_amount = 16.5
retraction_min_travel = 1
retraction_combing = True
retraction_minimal_extrusion = 0.02
bottom_thickness = 0.2
object_sink = 0.0
overlap_dual = 0.15
travel_speed = 100
bottom_layer_speed = 20
infill_speed = 0.0
cool_min_layer_time = 5
fan_enabled = True
skirt_line_count = 3
skirt_gap = 3.0
skirt_minimal_length = 0
fan_full_height = 0.5
fan_speed = 100
fan_speed_max = 100
cool_min_feedrate = 10
cool_head_lift = False
solid_top = True
solid_bottom = True
fill_overlap = 20
support_fill_rate = 15
support_xy_distance = 0.7
support_z_distance = 0.15
spiralize = False
brim_line_count = 20
raft_margin = 5
raft_line_spacing = 1.0
raft_base_thickness = 0.3
raft_base_linewidth = 0.7
raft_interface_thickness = 0.2
raft_interface_linewidth = 0.2
fix_horrible_union_all_type_a = True
fix_horrible_union_all_type_b = False
fix_horrible_use_open_bits = False
fix_horrible_extensive_stitching = False
plugin_config = (lp1
.
object_center_x = -1
object_center_y = -1

[alterations]
start.gcode = ;Sliced at: {day} {date} {time}
;Basic settings: Layer height: {layer_height} Walls: {wall_thickness} Fill: {fill_density}
;Print time: {print_time}
;Filament used: {filament_amount}m {filament_weight}g
;Filament cost: {filament_cost}
M190 S60 ;Uncomment to add your own bed temperature line
M109 S200 ;Uncomment to add your own temperature line
G21 ;metric values
G90 ;absolute positioning
M107 ;start with the fan off
G28 X0 Y0 ;move X/Y to min endstops
G28 Z0 ;move Z to min endstops
G1 Z15.0 F{travel_speed} ;move the platform down 15mm
G92 E0 ;zero the extruded length
G1 F200 E3 ;extrude 3mm of feed stock
G92 E0 ;zero the extruded length again
G1 F{travel_speed}
;Put printing message on LCD screen
M117 Printing…
end.gcode = ;End GCode
M104 S0 ;extruder heater off
M140 S0 ;heated bed heater off (if you have it)
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more
G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
M84 ;steppers off
G90 ;absolute positioning
start2.gcode = ;Sliced at: {day} {date} {time}
;Basic settings: Layer height: {layer_height} Walls: {wall_thickness} Fill: {fill_density}
;Print time: {print_time}
;Filament used: {filament_amount}m {filament_weight}g
;Filament cost: {filament_cost}
;M190 S{print_bed_temperature} ;Uncomment to add your own bed temperature line
;M104 S{print_temperature} ;Uncomment to add your own temperature line
;M109 T1 S{print_temperature2} ;Uncomment to add your own temperature line
;M109 T0 S{print_temperature} ;Uncomment to add your own temperature line
G21 ;metric values
G90 ;absolute positioning
M107 ;start with the fan off
G28 X0 Y0 ;move X/Y to min endstops
G28 Z0 ;move Z to min endstops
G1 Z15.0 F{travel_speed} ;move the platform down 15mm
T1 ;Switch to the 2nd extruder
G92 E0 ;zero the extruded length
G1 F200 E10 ;extrude 10mm of feed stock
G92 E0 ;zero the extruded length again
G1 F200 E-{retraction_dual_amount}
T0 ;Switch to the first extruder
G92 E0 ;zero the extruded length
G1 F200 E10 ;extrude 10mm of feed stock
G92 E0 ;zero the extruded length again
G1 F{travel_speed}
;Put printing message on LCD screen
M117 Printing…
end2.gcode = ;End GCode
M104 T0 S0 ;extruder heater off
M104 T1 S0 ;extruder heater off
M140 S0 ;heated bed heater off (if you have it)
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more
G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
M84 ;steppers off
G90 ;absolute positioning
support_start.gcode =
support_end.gcode =
cool_start.gcode =
cool_end.gcode =
replace.csv =
switchextruder.gcode = ;Switch between the current extruder and the next extruder, when printing with multiple extruders.
G92 E0
G1 E-36 F5000
G92 E0
T{extruder}
G1 X{new_x} Y{new_y} Z{new_z} F{travel_speed}
G1 E36 F5000
G92 E0
[/code]

config.yaml:

[code]accessControl:
salt: c78mPzwMrmhIh0E59B7kAVfwCM3orHef
api:
key: 7C17F37525FE4F5FBA32305D2CB3CDD3
appearance: {}
controls:

  • children:
    • command: M106 S%(speed)s
      input:
      • default: 255
        name: Speed (0-255)
        parameter: speed
        name: Enable Fan
        type: parametric_command
    • command: M107
      name: Disable Fan
      type: command
      name: Fan
      type: section
  • children:
    • command: M220 S%(speed)s
      input:
      • default: 100
        name: Speed (0-255)
        parameter: speed
        name: set
        type: parametric_command
    • command: M220 S100
      name: default
      type: command
      name: Speed
      type: section
      events:
      enabled: true
      subscriptions:
    • command: sh /home/pi/takepic.sh
      event: ZChange
      type: system
    • command: sudo python ~/scripts/octoprint_python/printstart.py &
      event: PrintStarted
      type: system
    • command: sudo python ~/scripts/octoprint_python/printdone.py &
      event: PrintDone
      type: system
      feature: {}
      gcodeViewer: {}
      plugins:
      cura:
      cura_engine: /usr/local/bin/cura_engine
      debug_logging: true
      discovery:
      publicPort: 80
      upnpUuid: a6e7192f-6d35-4823-bb71-c07e2a772422
      softwareupdate:
      _config_version: 4
      checks:
      octoprint:
      checkout_folder: /home/pi/OctoPrint
      printerParameters: {}
      printerProfiles:
      defaultProfile:
      axes:
      e: {}
      x:
      speed: 4800
      y:
      speed: 4800
      z:
      speed: 150
      serial:
      autoconnect: true
      baudrate: 250000
      port: /dev/ttyUSB0
      timeout: {}
      server:
      commands: {}
      firstRun: false
      secretKey: X6nvloHDZHjH2kv8YZmqr6g3YZJ6cIBY
      system:
      actions:
    • action: shutdown
      async: true
      command: sudo shutdown -h now
      confirm: You are about to shutdown the system.
      ignore: true
      name: Shutdown
    • action: reboot
      async: true
      command: sudo shutdown -r now
      confirm: You are about to reboot the system
      ignore: true
      name: Reboot
    • action: restart
      async: true
      command: sudo service octoprint restart
      confirm: You are about to restart OctoPrint
      ignore: true
      name: Restart OctoPrint
    • action: takepic
      command: /home/pi/takepic.sh
      name: Take picture
    • action: update
      command: sudo apt-get -y update && sudo apt-get -y upgrade
      confirm: You are about to update Raspbian.
      name: Update Raspbian
    • action: update
      command: cd ~/OctoPrint && git pull && sudo pip install -r requirements.txt
      confirm: You are about to update Octoprint.
      name: Update (git pull)
      temperature:
      profiles:
    • bed: 100
      extruder: 210
      name: ABS
    • bed: ‘50’
      extruder: ‘191’
      name: PLA
      webcam:
      ffmpeg: /usr/bin/avconv
      snapshot: http://127.0.0.1:8080/?action=snapshot
      stream: /webcam/?action=stream
      timelapse:
      fps: 25
      options:
      interval: 2
      postRoll: 0
      type: timed
      watermark: false
      [/code]

thx

I found this custom stop gcode to be helpful when setting up the cura profile:

M140 S0 ;turn bed heat off
M104 S0 ;Turn nozzle heat off
G91 ;Make coordinates relative
G0 Z2 E-2 ;Move up 2mm and retract extuder 2mm at 400mm/min
G90 ;Use absolute coordinates again
G00 X100 Y200 F10000 ;Go to dump area
M84 ;Disable steppers so they dont get hot during idling…

Krizzie

It seems that you have found the problem.
A word of caution since you are talking about moving the printer to the garage (maybe it’s me)
I never leave my printer alone while it’s in operation (fire hazard).
I have a Raspberry Pi with Octoprint as well but I did put a web cam on it so I can check it with my phone, tablet, computer…
Also the print bed is a large surface that can cool very easy if your garage is not warm the printer will not start because the bed will not come to temp. If it does it may cool to the point where your project can break loose from the bed and cause a big mess (don’t ask how I know lol).