@jay_s_uk
Hi yes it will be all shared , plus we will also put in the acknowledgements and web links etc to all the other contributors

Best posts made by moth4017
-
RE: Write a plugin for DWC- solved using BtnCmd.
-
RE: M308 add a new sensor
BME connected and working , i have used spi.cs2
M308 s11 y"bme280" p"spi.cs2" A"Ambient temp"
M308 s12 y"bmepressure" p"s11.1" A"Pressure[hPa]"
M308 s13 y"bmehumidity" p"s11.2" A"Humidity[%]"A bit of info as the Pin out description on the BME not the same as Duet board
Duet Temp Daughter Board to BME 280
pin 1 .................................................. CSB
pin2 ................................................... GND
pin3
pin4.................................................... SCL
pin5 ................................................... SDA
pin6.................................................... SDO
pin7
pin8................................................... VCC
pin9
pin10 -
RE: 3.4.1 rc2 G30 turns off Z motors
@dc42, @infiniteloop ,@OwenD and all the others that have come up with ideas for this and my other issues re sensorless homing , i decided to go back to square one and rewrite all the macros and configs, i now have a machine that seems to be doing everything it should . so im posting all the files that i have working.
thes files are for a core XY , belt driven Z with a gearbox ratio 4:1
; Config.g G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"Valkyrie 3030 V003" ; set printer name M669 K1 ; core xy ; Network M552 S1 ; enable network M586 P0 S1 ; enable HTTP M586 P1 S0 ; disable FTP M586 P2 S0 ; disable Telnet ; Drives M569 P0.0 S1 D2 ; physical drive 0 goes forwards M569 P0.1 S1 D2 ; physical drive 1 goes forwards M569 P0.2 S1 ; physical drive 2 goes forwards ( blown needs replacing) M569 P0.3 S0 ; physical drive 3 extruder M569 P0.4 S1 D3 ; physical drive 4 goes forwards D3=stealthchop M569 P0.5 S0 D3 ; physical drive 5 goes backwards M569 P0.6 S1 D3 ; physical drive 6 goes forwards M584 X1 Y0 Z0.4:0.5:0.6 E3 ; set drive mapping FL,FR,RC M350 X16 Y16 I1 ; configure microstepping with interpolation M350 Z16 E16 I1 ; configure microstepping with interpolation M92 X80.00 Y80.00 Z320.00 E562.00 ; set steps per m M566 X800.00 Y800.00 Z20.00 E100.00 P1 ; set maximum instantaneous speed changes (mm/min) jerk M203 X24000.00 Y24000.00 Z4000.00 E400.00 ; set maximum speeds (mm/min) M201 X2200.00 Y2200.00 Z50.00 E250.00 ; set accelerations (mm/s^2) M906 X1000 Y1000 Z1000 E800 I50 ; set motor currents (mA) and motor idle factor in per cent M84 X Y S20 ; Set idle timeout sec ; Axis Limits M208 S1 X-28 Y5 Z0 ; set axis minima "Travel Area" M208 S0 X290 Y295 Z405 ; set axis maxima "Travel area" ; Endstops M574 X1 S4 ; configure sensorless endstop, 1 = low end, 2 = high end. S4 multipule motors M574 Y2 S4 ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin io1.in M574 Z2 S4 ; configure sensorless endstop for high end on Z, 1 = low end, 2 = high end. S4 multipule motors M671 X-20:300:150 Y0:0:280 S25 ; leadscrews at front left,front right, rear Center s= max correction factor must be in same order as M584 M558 P8 C"!io3.in" H10 F2000 T6000 R0 A2 S0.05 ; set Z probe type to unmodulated and the dive height + speeds G31 P500 Z0.5 ; set Z probe trigger value, offset and trigger height bigger the posative number the closer to the bed G31 P500 X27 Y-15 ; set x,y trigger value, offset and trigger height M557 X10:290 Y10:285 S100 ; define mesh grid ; Heaters ;Bed M308 S0 P"temp0" Y"thermistor" T100000 B3950 A"Bed T °C" ; configure sensor 0 as thermistor on pin bedtemp M950 H0 C"out0" T0 Q10 ; create bed heater output on bedheat and map it to sensor 0 M307 H0 R0.838 K0.331:0.000 D3.08 E1.35 S0.90 B0 ; PDI info for 8mm aluminium bed 700w Heater NTC 100K 3950 M140 H0 ; map heated bed to heater 0 M143 H0 S130 ; set temperature limit for heater 0 to max C ;extruder M308 S1 P"temp1" Y"pt1000" A"Extruder T °C" ; configure sensor 1 as thermistor on pin e0temp (104gt2) M950 H1 C"out1" T1 ; create nozzle heater output on e0heat and map it to sensor 1 M307 H1 R3.558 K0.357:0.000 D9.14 E1.35 S1.00 B0 V23.8 ; disable bang-bang mode for heater and set PWM limit M143 H1 S320 ; set temperature limit for heater 1 to max C ;Chamber M308 S2 P"temp2" Y"thermistor" T100000 B4267 A"Chamber T °C" ; configure sensor 2 as thermistor on pin temp2 M950 H2 C"out5" T2 ; create chamber heater output on 1.out0 and map it to sensor 2 M307 H2 B0 S1.00 ; disable bang-bang mode for the chamber heater and set PWM limit M141 H2 ; map chamber to heater 2 M143 H2 S100 ; set temperature limit for heater 2 to 280C M308 S10 Y"mcu-temp" A"MCU" ; defines sensor 10 as MCU temperature sensor M308 S11 Y"drivers" A"Duet stepper drivers" ; defines sensor 11 as stepper driver temperature sensor ; Fans M950 F0 C"out4" Q250 ; create fan 0 on pin fan0 and set its frequency M106 P0 S0 H-1 C"Part Fan" ; set fan 0 value. Thermostatic control is turned off M950 F1 C"out3" Q250 ; create fan 1 on pin fan1 and set its frequency M106 P1 S1 H1 T45 C"Extruder Fan" ; set fan 1 value. Thermostatic control is turned on ; Tools M563 P0 D0 H1 F0 ; 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 T0 ; Custom settings are not defined M98 P"/macros/home_max_Z" ;External Buttons M950 J1 C"!io2.in" ;config input pin switch NO connected to io2 and Gnd M581 P1 T0 C0 ;T0 = emergency stop on trigger; T1 = pause print; T{N} = runs the macro "sys/trigger{N}.g", rising edge S1 falling edge S0 ;M581 P1 T4 c0 ;run a macro trigger4.g M582 T0 ; Check External Trigger
; homex.g echo "start" M569 P0.0 ; Check status in console M569 P0.1 ; Check status in console G91 ; relative positioning M569 P0.0 S1 D3 V10 ; set to stealth chop M569 P0.1 S1 D3 V10 ; set to stealth chop M915 P0.0:0.1 S10 F0 R1 H200 ; Configure Z-Axis Stall Detection echo "stall detection setup" M17 X Y ; Check status in console G1 P140 ;pause to allow the drivers to characterise the motor G1 H1 X-0.2 F3000 ; move a little for cal of sensorless homing / not stalled G1 H1 Y-0.2 F3000 ; move a little for cal of sensorless homing / not stalle echo "lower motor current" M913 X70 Y70 ; Lower motor current % G4 P150 ; wait 150ms M574 X1 Y2 S4 ; Configure Z-Axis stall detection homing M569 P0.0 ; Check status in console M569 P0.1 ; Check status in console echo "home x" G1 H1 X-350 F6000 G1 H2 X10 Y10 G1 H1 X-350 F6000 ; Home Z-Axis actuators independently M569 P0.0 ; Check status in console M569 P0.1 ; Check status in console G90 ; absolute positioning G1 X150 F6000 ; move to center of bed ;revert back echo "after revert back" M913 X100 Y100 ; Reset motor current % M569 P0.0 S1 D2 ; reset motors back to spread cycle, M569 P0.1 S1 D2 ; reset motors back to spread cycle, M569 P0.0 ; Check status in console M569 P0.1 ; Check status in console
;homey.g ; Relative positioning echo "Home Y" M569 P0.0 ; check status in console M569 P0.1 ; check status in console; relative positioning G91 M569 P0.0 S1 D3 V10 ; set to stelth chop M569 P0.1 S1 D3 V10 ; set to stelth chop M915 P0.0:0.1 S10 F0 R1 H200 ; Configure Z-Axis Stall Detection echo "stall detection setup" M17 X Y G1 P140 G1 H1 X-0.5 F3000 ; move a little for cal of sensorless homing / not stalled G1 H1 Y-0.5 F3000 ; move a little for cal of sensorless homing / not stalled echo "lower motor current" M913 X70 Y70 ; Lower motor current % G4 P150 M574 X1 Y2 S4 ; Configure Z-Axis stall detection homing M569 P0.0 ; check status in console M569 P0.1 ; check status in console ; make sure everything has stopped before we make changes echo "Home Y" G1 H1 Y350 F6000 G1 H2 X-10 Y10 G1 H1 Y350 F6000 ; Home Z-Axis actuators independently M569 P0.0 ; check status in console M569 P0.1 ; check status in console G90 ; absolute positioning G1 Y150 F6000 ; move to center of bed ;revert back echo "after revert back" M913 X100 Y100 ; Reset motor current M569 P0.0 S1 D2 ; reset motors back to spread cycle, M569 P0.1 S1 D2 ; reset motors back to spread cycle, M569 P0.0 ; check status in console M569 P0.1 ; check status in console
; homez.g echo "home Z.g " G90 ; absolute positioning G1 F6000 X150 Y150 ; make sure X Y centreed G91 ; Relative positioning echo "Homing Z" G30 ; Home Z-Axis actuators independently G90 ; absolute positioning G1 Z25 F4000 ;move away a little
; home_max_Z M400 ; make sure everything has stopped before we make changes G91 ; relative positioning M569 P0.4 S1 D3 V10 ; set to stelth chop M569 P0.5 S0 D3 V10 ; set to stelth chop M569 P0.6 S1 D3 V10 ; set to stelth chop M915 P0.4:0.5:0.6 S0 F0 R1 H200 ; Configure Z-Axis Stall Detection M574 Z2 S4 ; Configure Z-Axis stall detection homing M400 ; make sure everything has stopped before we make changes G1 H1 Z-0.2 F3000 ; move a little for cal of sensorless homing / not stalled M400 ; make sure everything has stopped before we make changes M913 Z70 ; Lower motor current by 50% G1 H1 Z350 F3000 ; Home Z-Axis actuators independently M400 ; make sure everything has stopped before we make changes G92 Z290 ; set a Z height G90 ; absolute positioning ;revert back M913 Z100 ; Reset motor current M569 P0.4 S1 D2 ; reset motors back to spread cycle, M569 P0.5 S0 D2 ; reset motors back to spread cycle, M569 P0.6 S1 D2 ; reset motors back to spread cycle, M84 ; turn off motors
;3PL echo "3PL" G30 P0 X10 Y0 Z-99999 ; probe near a leadscrew G30 P1 X290 Y0 Z-99999 ; probe near a leadscrew G30 P2 X150 Y270 Z-99999 S3 ; probe near a leadscrew and calibrate 3 motors G1 X0 Y0 F6000
-
RE: need Guru on duet 3 mini5 using stall guard/sensor less homing
@oliof
thanks, that's interesting to know, ive mainly seen them on Z axis , but have also seen them on X too now and again.i suppose i could set a new sensitivity (S parameter) at the end of the homing routines .
-
RE: DWC Duet Web Control 3.4.0-rc2 no extrude or retract
Ok even though the firmware new that the tool T0 was selected adding T0 to the config seems to have fixed this issue.
-
RE: any way to pass parameters to start.g?
Would be nice on the heated chamber set chamber to 80C and not start printing untill upto temperature
-
RE: Write a plugin for DWC- solved using BtnCmd.
ok , im not sure if ill post it here but maybe on the Valkyrie Github ,
under the Drybox folder should be there in the next week or so
https://github.com/RoyBerntsenDesign/Project-Valkyrie -
RE: not able to get a good first layer using 3PL and bed mesh
Reprinting parts for new x axis going to put them on the surface table before reinstalling to check for twist .
-
RE: Independant multiple Z axis movement
@Adamfilip
you can set them up like this but i have found some other features were effectedM584 Z5 U6 V7 w8
then in dwc you can control the motors independently
Latest posts made by moth4017
-
Extruder Drives 0.0 ?
what is the information being displayed in DWC regarding "Extruder Drives"
i only ever see negative values e.g -1.2 or 0.0 never a positive value -
RE: M308 add a new sensor
BME connected and working , i have used spi.cs2
M308 s11 y"bme280" p"spi.cs2" A"Ambient temp"
M308 s12 y"bmepressure" p"s11.1" A"Pressure[hPa]"
M308 s13 y"bmehumidity" p"s11.2" A"Humidity[%]"A bit of info as the Pin out description on the BME not the same as Duet board
Duet Temp Daughter Board to BME 280
pin 1 .................................................. CSB
pin2 ................................................... GND
pin3
pin4.................................................... SCL
pin5 ................................................... SDA
pin6.................................................... SDO
pin7
pin8................................................... VCC
pin9
pin10 -
RE: Is there away to eliminate stepper motor resonance by speed?
@T3P3Tony thaks for the reply, is there much info you can get from these figures for sensorless homing as i seem to remember the the EMF voltage plays a part in this ?
-
RE: Is there away to eliminate stepper motor resonance by speed?
so which figures are good/bad , what can i learn from this?
Approximate peak back EMF due to rotation per motor: 3.3 V at 100.0 mm/s
Approximate peak back EMF due to inductance per motor: 3.6 V at 100.0 mm/s
Step pulse frequency: 8.0 kHz at 100.0 mm/s
Speed at which torque starts to drop (low slip angle): 347.5 mm/s @ 39.3 kHz
Speed at which torque starts to drop (high slip angle): 477.2 mm/s @ 54.0 kHz -
RE: Is there away to eliminate stepper motor resonance by speed?
@Dad003 do you have a link for the calculator?
-
RE: Problem with stealthChop2 driver mode in cartesian 3D printer
@ale-fdezsuarez As a quick check try D2 instead of D3 in M569
-
RE: M308 add a new sensor
@dc42 Thanks, do you have to define the CS pin like this?
if i was to use spi2 CS2
M308 S1 P"spi2.cs2" Y"BME280" A"BME280"
-
RE: M308 add a new sensor
@Exerqtor Hi the NME280 is an SPI device , so im guessing there is more to set up and im not sure which chip select pin is used.