Wanhao Duplicator 4 connected to Astroprint

Hello all,

I’m new to astroprint and have setup an astrobox (pi B-) to connect my Wanhao Duplicator 4 to this cloud.

I searched for some hints before but did not find them so think this can be useful info because it still took some days to get this working the way i liked. In between also tried Octoprint… also a nice development but…

create a material.
settings: ABS, filament:1.78mm, printtemp 220c and bedtemp 100c.
(or whatever material you are using… but here you program the bed-temp).

create printer profile using : sailfish/makerbot replicator 1 dual (or single)
settings and advanced settings: defaults except make sure the box fits and select format: X3G
Start commands and End commands: … paste the gcode content you have under replicatorG/machines in the apropriate files into these fields. Just cut and paste did it in my case. The samples made by staff here lok different … but this works for me.

;(**** start.gcode for The Replicator, dual head ****)
M103 ;(disable RPM)
M73 P0 ;(enable build progress)
G21 ;(set units to mm)
G90 ;(set positioning to absolute)
;(**** begin homing ****)
G162 X Y F2500 ;(home XY axes maximum)
G161 Z F1100 ;(home Z axis minimum)
G92 Z-5 ;(set Z to -5)
G1 Z0.0 ;(move Z to "0")
G161 Z F100 ;(home Z axis minimum)
M132 X Y Z A B ;(Recall stored home offsets for XYZAB axis)
;(**** end homing ****)
G1 X-110.5 Y-72 Z50 F3300.0 ;(move to waiting position)
G130 X20 Y20 A20 B20 ;(Lower stepper Vrefs while heating)
M6 T0 ;(wait for toolhead, and HBP to reach temperature)
G130 X127 Y127 A127 B127 ;(Set Stepper motor Vref to defaults)
M108 T0
G0 X-110.5 Y-72 ;(Position Nozzle)
G0 Z0.6 ;(Position Height)
G92 E0 ;(Set E to 0)
G1 E4 F300 ;(Extrude 4mm of filament)
G92 E0 ;(Set E to 0 again)
;(**** end of start.gcode ****)
;(******* End.gcode*******)
M109 S0 T0 ;( Cool down the build platform )
M104 S0 T0 ;( Cool down the Right Extruder )
M104 S0 T1 ;( Cool down the Left Extruder )
M73 P100 ;( End  build progress )
G0 Z150 ;( Send Z axis to bottom of machine )
M18 ;( Disable steppers )
G162 X Y F2500 ;( Home XY endstops )
M18 ;( Disable stepper motors )
M70 P5 ;( We <3 Making Things!)
M72 P1  ;( Play Ta-Da song )
;(*********end End.gcode*******)

then… upload a small stl as a model. After uloading to the cloud (using the nice filemanager tool) click on the 3d preview icon. The slicer opens.
Only changes i made were ’ no raft and nr of lines for skirt on 0.
And safe profile, slice, print …

Awesome prints come out this way here… best ever.

Pause and Unpause work from astrobox interface.

Hope u can rejuvenate your D4 also this way.

2 Likes

Thanks for this @ernie, I have added a manufacturer profile for the Duplicator 4 using this information for the benefit of other people.

I have also fixes you start/stop GCODE. While it might have created valid x3g files, it was messing up our gcode analyzer while calculating things like object size, layer height, etc. It was due to the comments. They need to be proceeded by ;

I recommend that you ( and any other person with a Duplicator 4 ) simply import the printer now in the system.

Sorry for messing up wite the comments. It actually looked like the system understood the comments between braces. I did a test before with semicolons on each line also. Maybe due to other dependencies that failed.

Is it possible to find the intermediate gcodes somewhere after slicing files? The X3G files are printable but a bit unusable binairy endproducts.

Those files are created and discarded in the slicing process. It would quite a bit of work ( and confusing for non advanced users ) to surface them