Wednesday, 20 July 2016

Setting up the XYZ Da Vinci 1.0a 3D printer with RepetierHost and Slic3r on Ubuntu

I finally bought a 3D printer. It's a used one and entry level, but printing parts is good fun. Here's how to set it up on Ubuntu 14.04:

Install Repetier firmware

The new firmware will give you much more control over the printing process. Mine was already installed (v0.92), so I upgrading to the 0.92.10 alpha was as easy as cloning the github repo, starting the Arduino IDE and flashing the printer. This version supposedly has better bed leveling, though I'd recommend to manually level the bed anyway (paper method).
Get the firmware here. You'll also need to have the the Arduino IDE 1.6.7+ for installing and updating it.

Install RepetierHost

  • Download RepetierHost for Linux.
  • Unpack it to the directory you want to install us to, e.g. ~/RepetierHost.
  • Drop to the command line and run "sh configureFirst.sh"
  • If your user can not access the serial port, add it to the dialout group using "usermod -a -G dialout YOURUSERNAME".
More information about the installation is here

Install Slic3r

  • Download Slic3r for Linux.
  • Unpack it to the RepetierHost installation directory under "/plugins/Slic3r".
  • Install the prerequisites using "sudo apt-get install build-essential libgtk2.0-dev libwxgtk2.8-dev libwx-perl libmodule-build-perl".
  • Start RepetierHost and add Slic3r in the "slicer" tab under "Manager". Select "Slic3r" in the drop-down entry and enter "slic3r" and its name. Click "Add Slicer". Enter "/home/YOURUSERNAME/.slic3r" as the configuration directory and the path to the slic3r executable you installed before and press "Apply".
Now you have RepetierHost and and Slic3r and can connect to the printer, so let's set it up:

RepetierHost settings

Printer settings

  • Connection - Port: /dev/ttyACM0 (this may vary on your system)
  • Connection - Baud rate: 230400 (Check you printers settings via the menu)
  • Connection - Transfer protocol: "Repetier Protocol"
  • Connection - Reset on Emergency: "Send emergency command and reconnect"
  • Connection - Receive Cache Size: 202
  • Connection - Use Ping-Pong Communication: Turn on
  • Printer Shape - X Max: 200
  • Printer Shape - Y Max: 200
  • Printer Shape - Print Area Width: 200
  • Printer Shape - Print Area Depth: 200
  • Printer Shape - Print Area Height: 200
  •  Extruder - Extruder 1 Diameter: 0.4

Slic3r settings

Print settings (for all layer heights, add settings if they don't exist)

  • Layers and Perimeters - Perimeters (minimum): 3
  • Layers and Perimeters - Solid layers: Top 3, Bottom 3
  • Layers and Perimeters - Avoid crossing perimeters: Turn on
  • Speed - Perimeters: 50 mm/s
  • Speed - Small perimeters: 10 mm/s
  • Speed - External perimeters: 50%
  • Speed - Infill: 70 mm/s
  • Speed - Solid infill: 50 mm/s
  • Speed - Top solid infill: 30 mm/s
  • Speed - Support material: 30 mm/s
  • Speed - Support material interface: 100%
  • Speed - Bridges: 50 mm/s
  • Speed - Gap fill: 15 mm/s
  • Speed - Travel: 150 mm/s
  • Speed - First layer speed: 30%
  • Advanced - Solid infill: 85% 
  • Advanced - Top solid infill: 85%

Filament settings (add filaments if you don't exist):

  • Filament (ABS) - Temperature - Extruder: 235° / 230°
  • Filament (ABS) - Temperature - Bed: 95° / 90°
  • Cooling (ABS) - Fan speed: 80% / 100%
  • Cooling (ABS) - Slow down if layer time is below: 15s
  • Filament (PLA) - Temperature - Extruder: 200° / 195°
  • Filament (PLA) - Temperature - Bed: 75° / 70°
  • Cooling (PLA) - Fan speed: 40% / 100%
  • Cooling (PLA) - Slow down if layer time is below: 15s

Printer settings

  • General - Set up the bed shape to 200x200mm.
  • G-code flavor must be "RepRap (Marlin/Sprinter/Repetier)".
  • Custom G-code - Start:
M140 S[first_layer_bed_temperature] ; Bed (no wait)
M104 S[first_layer_temperature] ; Extruder (no wait)
M106 S255 ; Start fan
G90 ; set absolute coordinates
G28 ; home all axis
M190 S[first_layer_bed_temperature] ; Bed (wait)
M109 S[first_layer_temperature] ; Extruder (wait)
M117 Start
M300 s1000 p400 ; Beep
M300 s1500 p400
M300 s2000 p400
M300 s2500 p400
M117 Cleaning
M100 ; Cleaning
G1 Z5 F1500
G1 X0 Y15 F1000
G1 X5 Y35 F1000
G92 E0 ; reset extrusion distance
G1 Z[first_layer_height] F4800.000
G1 X5 Y175 E14 F1000
G1 X5 Y190 F1000
M117 Printing
  • Custom G-code - End:
M117 Done
G92 E0 ; reset extrusion distance
M104 S0 ; turn off extruder
M140 S0 ; turn off Bed
G90 ; Absolute
G28 X0 Y0 ; home
M117 Down Bed
G1 Z200 ; Lower bed
M117 Cleaning
M100 ; Cleaning
M84 ; Disable motors
M117 Cooling
M190 S55 ; Bed (cooling)
; M116 ; Wait for all temperatures
M140 S0 ; turn off Bed
M117 Pickup piece
M300 s2500 p400 ; Beep
M300 s2000 p400
M300 s1500 p400
M300 s1000 p400
M84 ; Disable motors
M117 Printer ready
  • Extruder 1 - Nozzle diameter: 0.4mm
  • Extruder 1 - Retraction length: 2
  • Extruder 1 - Retraction Speed: 40mm/s
Now you should be good to go and print some parts.

No comments:

Post a Comment