Setup converted from ramps to Duet Wifi, need help!

  • Hello good folk,

    Recently I converted my home made cartesian setup from a ramps controller to a duet. However I also added a titan direct extruder instead of a bulldog and swapped out my Inductive probe for an Precision Piezo. Now i've been trying for weeks to get it running but for some reason i cant find the optimal settings. At the moment every axis works fine, homing works, probing and making a height map works excellent 80% of the times. But whenever I'm trying to start a print (sliced with cura) it messes up. For PLA nothing is working it wont stick to the bed while i never had problem with that when printing with ramps. ABS seems to work better, sticks well but the prints are deformed which is very strange because when i check the distanced travelled manually with a ruler it all checks out.

    I'm not seeing the missing link right now because it all seems so similiar to ramps and that was easy peasy to set-up. And now I cant get a decent print out of this printer.. while im really impressed with the overal ease of use of the duet. I'll post a picture of my build to give u a general idea, please keep in mind that it is still work in progress and i've not done the wire management yet. Also ill provide the config.h and home xyz files below. I would really appreciate it if someone spots where it goes wrong.

    In advance i'd like to thank you people for your time and dedication.

    Greetings Geert


    Cura start g.code:
    G28 ;Home
    G1 Z15.0 F6000 ;Move the platform down 15mm
    G1 F200 E3

    Config.h content:
    ; Configuration file for Duet WiFi (firmware version 1.20 or newer)
    ; executed by the firmware on start-up
    ; generated by RepRapFirmware Configuration Tool on Thu Jan 25 2018 23:50:45 GMT+0100 (W. Europe Standard Time)

    ; General preferences
    M111 S0 ; Debugging off
    G21 ; Work in millimetres
    G90 ; Send absolute coordinates…
    M82 ; ...but relative extruder moves
    M555 P2 ; Set firmware compatibility to look like Marlin
    ; Automatic saving after power loss is not enabled
    M208 X0 Y0 Z0 S1 ; Set axis minima
    M208 X200 Y200 Z400 S0 ; Set axis maxima

    ; Endstops
    M574 X2 Y1 S1 ; Set active high endstops
    M558 P1 I0(or I1) R0.4 F300 X0 Y0 Z0
    G31 X0 Y0 Z-0.1 P400
    M557 X40:140 Y40:140 S20 ; Define mesh grid

    ; Drives
    M569 P0 S1 ; Drive 0 goes forwards
    M569 P1 S1 ; Drive 1 goes forwards
    M569 P2 S1 ; Drive 2 goes forwards
    M569 P3 S1 ; Drive 3 goes forwards
    M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
    M92 X80 Y80 Z1600 E792 ; Set steps per mm
    M566 X900 Y900 Z12 E120 ; Set maximum instantaneous speed changes (mm/min)
    M203 X6000 Y6000 Z180 E1200 ; Set maximum speeds (mm/min)
    M201 X500 Y250 Z250 E250 ; Set accelerations (mm/s^2)
    M906 X1250 Y1250 Z1250 E850 I30 ; Set motor currents (mA) and motor idle factor in per cent
    M84 S30 ; Set idle timeout

    ; Heaters
    M301 H0 S1.00 P10 I0.1 D200 T0.4 W180 B30 ; Use PID on bed heater (may require further tuning)
    M305 P0 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0
    M143 H0 S120 ; Set temperature limit for heater 0 to 120C
    M305 P1 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 1
    M143 H1 S280 ; Set temperature limit for heater 1 to 280C

    ; Tools
    M563 P0 D0 H1 ; Define tool 0
    G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
    G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C

    ; Fans
    M106 P0 S0.3 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
    M106 P1 S1 I0 F500 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
    M106 P2 S1 I0 F500 H1 T45 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on

    ; Custom settings are not configured

    Home all.g:
    ; homeall.g
    ; called to home all axes
    ; generated by RepRapFirmware Configuration Tool on Fri Feb 02 2018 00:49:23 GMT+0100 (W. Europe Standard Time)
    G91 ; relative positioning
    G1 Z5 F6000 ; lift Z relative to current position
    G1 S1 X205 Y-205 F2400 ; move quickly to X and Y axis endstops and stop there (first pass)
    G1 X-5 Y5 F6000 ; go back a few mm
    G1 S1 X205 Y-205 F360 ; move slowly to X and Y axis endstops once more (second pass)
    G1 S1 Z-205 F2400 S1 ; move Z down stopping at the endstop
    G90 ; absolute positioning
    G92 Z0 ; set new Z position
    ;G1 Z5 F100 ; uncomment this line to lift the nozzle after homing

  • Argh i forgot to list my steppers.

    Well all of my axis steppers are NEMA 17 1.8 degrees rated on 2.5 A
    My Extruder is a half size NEMA 17 0.9 degrees rated on 1.2 A

    And im using 8x2 leadscrews and G2T belts.

  • Dont forget to change your wifi password too, unless you munged it above etc..
    I see you defining the Probe (M558) but not assigning it as the Z stop (X0 Y0 Z0) or setting it as a endstop with the M574.

    If I understad this correctly; The home.g will therefore use the endstop switch rather than the probe when you home. All the symptoms you have imply you are printing too high/low. I'd start by assigning the probe as the Z endstop and working from that, rather than probing with one, but homing with the other.
    Edit:expand, add a link.

  • administrators

    Hi Geert

    I think it would be helpful if you could break down the issues you are having and we can help with them one by one. So far i see you are having problems with bed adhesion but you don't talk about what you have done with bed coating . you mention this worked on RAMPS so i would check your bed - nozzle distance after you have homes and probed the bed. Also to start with try with out mesh bed compensation. Another thing to try is playing with the bed temperature - and also check that you have the thermistor details for your bed correct and try a range of bed temperatures.

  • Prints sticking to the bed have nothing to do with the fact you have a RAMPS or a duet board running the printer.
    First layer height is all that matters.
    In that retrospect, I see problems with your setup, the G92 Z0 line in you home file is suspect.
    You must install the piezo as a probe, not as an endstop.

    if you have the piezo v1 board then the line

    M558 P1 I0(or I1) R0.4 F300 X0 Y0 Z0

    must become

    M558 P8 I0 R0.8 F300 X0 Y0 Z1 // use probe for Z axis (change to I1 for v2 board)

    In your home.z and homeall files, remove the lines:

    G1 S1 Z-205 F2400 S1 ; move Z down stopping at the endstop
    G90 ; absolute positioning
    G92 Z0 ; set new Z position

    and replace them with a single G30 command.
    Make sure you wire the probe onto the Probe connector and not the endstop connector as outlined here: (look for mode5 which is the same as mode8)

  • Right guys… I guess i was a little too hasty with making this post making it kind off a mess..

    Hmm i didn't realize that the settings had to be changed in the home files too.. seems logical at hindsight. Ill change them now and see if that helps. And for the bed adhesion i know that it's not related to the controller probably just the issue of my probe not working as it should.

    The main problem that i have right now is that with that config i posted above i was able to print ( somehow ) but for example when i print the famous treefrog from thingiverse it really messes up the infill since it's moving so "slow" i guess i have problems explaining this but the way it's setup now the carriages pick up speed while they move and they decelerate earlier to comparison to the ramps which is just high speed up to the point it stops. Atleast i think thats the issue but as u probably noticed i am very new to this stuff.

  • administrators

    are you using the same acceleration settings as you did on your RAMPS (look at the M201 command in your config) These look quite low so check what you had them set to in your previous configuration.

  • Ok Thanks for all the advice so far. I'm almost there i think.. So i've changed what whosrdaddy commented.
    Probe works and I've changed the acceleration according to my marlin file thx to Tony. It looks better now.

    Just one thing anyone who's using cura and using a precision piezo what is ur start/end script in cura?

    Because right now when im starting a print it probes but then starts printing around 3 mm's above the printbed while the probing went fine.

    Thanks in advance!

  • administrators

    Does your Z endstop switch trigger at exactly Z=0, which is what your home all.g file implies?

  • I Already figured it out from another post on this forum, thx again for all the help guys.. the community is amazing!

Log in to reply