Retrofitting a Duet 2 wifi into Makergear M2 Rev. E

The place to discuss your hardware and software/firmware modifications...
User avatar
Farr0wn3d
Posts: 319
Joined: Tue Mar 31, 2015 4:16 am
Location: Calgary, Alberta, Canada

Re: Retrofitting a Duet 2 wifi into Makergear M2 Rev. E

Post by Farr0wn3d » Sat Nov 27, 2021 5:10 pm

Yeah that was a tricky one, as I dont think there is a way of extracting that info from the machine as-is. But rather, if download your factory firmware from the Wiki, you can go through the files and find that setting. I believe its 0.8A, which was the default in the configurator tool anyway. It’s also what I have set in my config settings that you have. My machine runs great at that amperage.

airscapes
Posts: 594
Joined: Wed Jan 31, 2018 11:36 pm

Re: Retrofitting a Duet 2 wifi into Makergear M2 Rev. E

Post by airscapes » Mon Nov 29, 2021 4:06 am

I have hit a wall. Have most things working.. can home all axis, heater works, extruder works, fans work.
But bed was stopping about 12 or 13mm from the nozzle at 0
so after much mucking around. I have the max Z set to 218 which stops it 10mm from the top of the gantry (hot end removed)
I then added M206 Z12.60 and saved with a M500, rebooted, home and still goes up to 10mm from top of gantry..
Dictionary says M206 is deprecated.. so maybe it no longer works in 3.3. If that is the case how do we set Z offset .. Baby-steps did not seem to work either.. Starting to wish I had not done this, but that always happens when I fix something that was working perfectly before I stated :-)

Code: Select all

Configuration file for Duet WiFi (firmware version 3.3)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v3.3.10 on Sun Nov 28 2021 16:12:33 GMT-0500 (Eastern Standard Time)

; General preferences
G90                                            ; send absolute coordinates...
M83                                            ; ...but relative extruder moves
M550 P"M2 Rev-E V1"                            ; set printer name

; Network
M552 S1                                        ; enable network
M586 P0 S1                                     ; enable HTTP
M586 P1 S1                                     ; enable FTP
M586 P2 S0                                     ; disable Telnet

; Drives
M569 P0 S1                                  ; physical drive 0 goes forwards
M569 P1 S1                                   ; physical drive 1 goes forwards
M569 P2 S1                                  ; physical drive 2 goes forwards
M569 P3 S0                                     ; physical drive 3 goes forwards
M584 X0 Y1 Z2 E3                               ; set drive mapping
M350 X16 Y16 Z16 E16 I1                        ; configure microstepping with interpolation
M92 X88.89 Y88.89 Z1007.7 E471.50              ; set steps per mm
M566 X900.00 Y960.00 Z30.00 E960.00            ; set maximum instantaneous speed changes (mm/min)
M203 X12000.00 Y12000.00 Z1500.00 E1500.00     ; set maximum speeds (mm/min)
M201 X2000.00 Y2000.00 Z2000.00 E2000.00       ; set accelerations (mm/s^2)
M906 X800 Y800 Z800 E500 I30                   ; set motor currents (mA) and motor idle factor in per cent
M84 S30                                        ; Set idle timeout

; Axis Limits
M208 X0 Y0 Z0 S1                               ; set axis minima
M208 X205 Y255 Z218 S0                         ; set axis maxima

; Endstops
M574 X1 S1 P"!xstop"                           ; configure switch-type (e.g. microswitch) endstop for low end on X via pin !xstop
M574 Y1 S1 P"!ystop"                           ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin !ystop
M574 Z1 S1 P"!zstop"                           ; configure switch-type (e.g. microswitch) endstop for low end on Z via pin !zstop

; Z-Probe
M558 P0 H5 F120 T6000                          ; disable Z probe but set dive height, probe speed and travel speed
M557 X15:199 Y15:195 S20                       ; define mesh grid

; Heaters
M308 S0 P"bedtemp" Y"thermistor" T100000 B4072 ; configure sensor 0 as thermistor on pin bedtemp
M950 H0 C"bedheat" T0                          ; create bed heater output on bedheat and map it to sensor 0
M307 H0 B1 S1.00                               ; enable bang-bang mode for the bed heater and set PWM limit
M140 H0                                        ; map heated bed to heater 0
M143 H0 S125                                   ; set temperature limit for heater 0 to 125C
M308 S1 P"e0temp" Y"thermistor" T100000 B4072  ; configure sensor 1 as thermistor on pin e0temp
M950 H1 C"e0heat" T1                           ; create nozzle heater output on e0heat and map it to sensor 1
M307 H1 B0 S1.00                               ; disable bang-bang mode for heater  and set PWM limit
M143 H1 S300                                   ; set temperature limit for heater 1 to 300C

; Fans
M950 F0 C"fan0" Q500                           ; create fan 0 on pin fan0 and set its frequency
M106 P0 S0 H-1                                 ; set fan 0 value. Thermostatic control is turned off
M950 F1 C"fan1" Q500                           ; create fan 1 on pin fan1 and set its frequency
M106 P1 S1 H1 T55                              ; set fan 1 value. Thermostatic control is turned on
M950 F2 C"fan2" Q500                           ; create fan 1 on pin fan1 and set its frequency
M106 P2 S1 H1 T55                              ; set fan 1 value. Thermostatic control is turned on

; Tools
M563 P0 S"hotend" 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

; Custom settings are not defined

; Miscellaneous
M501                                           ; load saved parameters from n
config override

Code: Select all

; config-override.g file generated in response to M500 at 2021-11-28 21:31
; This is a system-generated file - do not edit
; Heater model parameters
M307 H0 R2.429 C140.000:140.000 D5.50 S1.00 V0.0 B1 I0
M307 H1 R2.429 C140.000:140.000 D5.50 S1.00 V0.0 B0 I0
; Workplace coordinates
G10 L2 P1 X0.00 Y0.00 Z-12.60
G10 L2 P2 X0.00 Y0.00 Z0.00
G10 L2 P3 X0.00 Y0.00 Z0.00
G10 L2 P4 X0.00 Y0.00 Z0.00
G10 L2 P5 X0.00 Y0.00 Z0.00
G10 L2 P6 X0.00 Y0.00 Z0.00
G10 L2 P7 X0.00 Y0.00 Z0.00
G10 L2 P8 X0.00 Y0.00 Z0.00
G10 L2 P9 X0.00 Y0.00 Z0.00
Homeall

Code: Select all

homeall.g
; called to home all axes
;
; generated by RepRapFirmware Configuration Tool v3.3.10 on Sun Nov 28 2021 16:12:33 GMT-0500 (Eastern Standard Time)
G91                     ; relative positioning
;G1 H2 Z5 F6000          ; lift Z relative to current position
G1 H1 X-215 Y-260 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
G1 H2 X5 Y5 F6000       ; go back a few mm
G1 H1 X-215 Y-260 F360  ; move slowly to X and Y axis endstops once more (second pass)

G1 H1 Z215 F3600 ; move quickly to z axis endstop and stop there (first pass)
G1 H2 Z-5 F6000 ; go back a few mm
G1 H1 Z10 F360 ; move slowly to z axis endstop once more (second pass)
G92 Z218 ; set Z position to axis maximum (you may want to adjust this
G90                    ; absolute positioning

; Uncomment the following lines to lift Z after probing
;G91                    ; relative positioning
;G1 Z5 F100             ; lift Z relative to current position
;G90                    ; absolute positioning


airscapes
Posts: 594
Joined: Wed Jan 31, 2018 11:36 pm

Re: Retrofitting a Duet 2 wifi into Makergear M2 Rev. E

Post by airscapes » Tue Nov 30, 2021 4:57 pm

Hey Where did you get this value for steps per mm on Z in your config (from duet forum post) and are you using this value or did it get changed. It does not match the supposid value in the old Marlin config found on the old makergear m2 firmware site which I have listed below
Your config
M92 X88.89 Y88.89 Z1011.90 E430.00 ; set steps per mm

Marlin
#define DEFAULT_AXIS_STEPS_PER_UNIT {88.88,88.88,1007.7,471.5}

When I used that 1007.7 and the below axis max my build plate was to low for the extruder to reach. Have to have maxima set to 212 which seems wrong. Guess I will try the 1011.90 and see what that does.. god I hate fixing things that were not broke. :oops:
M208 X230 Y255 Z200 S0 ; set axis maxima

User avatar
Farr0wn3d
Posts: 319
Joined: Tue Mar 31, 2015 4:16 am
Location: Calgary, Alberta, Canada

Re: Retrofitting a Duet 2 wifi into Makergear M2 Rev. E

Post by Farr0wn3d » Tue Nov 30, 2021 6:43 pm

Airscapes, the Z axis will be another difference between our setups as I’m running an e3d titan, v6 nozzle, and a customer carriage mount for the motor. I have lost some Z axis travel as a result. I have my Z max for the printer set to the stock 200, but I fine tune the actual offset to somewhere around -3.95 to -4.25 to compensate for things like different nozzles, and different bed material thicknesses I used the m206 command for this when I was still using Marlin, but I just do it in the config.g file with RRF (My command in Marlin would look like this “M206 Z-2.95”, followed by an “M500” to save to EEPROM). This will be something you will need to sort out for yourself, and since you home at Z max and not min, you will have to mess about in the config files to make it home Z correctly while also having the desired first layer thickness.

I would also check to make sure that you have the correct steps/mm for YOUR Z motor in config.g. This might not be the issue but its worth confirming before we go forward with other adjustments.

I’m no expert, I dont have my config files in front of me, and I just had surgery yesterday so I’m not 100% on my game but here are a few things that stand out to me about your config files:

Config.g:
-are you running firmware for a wifi board on your Ethernet board?
Configuration file for Duet WiFi (firmware version 3.3)
-I’m wondering why your Z endstop is set to min when it homes at max?
M574 Z1 S1 P"!zstop" ; configure switch-type (e.g. microswitch) endstop for low end on Z via pin !

Config-override.g:
-You’re heater parameters look generic, have you performed an auto tune on your bed and nozzle heaters? If not, I assume you would be throwing error codes for heating too slow when trying to heat your bed?

Homing:
-Just a heads up, you might want to set up the Z homing to be like the X an Y so that it does a quick pass, backs off, and then does approach but much slower to improve accuracy. I found that my homing was inconsistent with this added function, and as such my first layers varied a lot. Obviously you will have to make any changes to the Home All file AND the HomeZ file.

Sorry I can’t be of more help until I’m home and can review my config files. Have you tried posting anything on the Duet forum?

Jeremy

User avatar
Farr0wn3d
Posts: 319
Joined: Tue Mar 31, 2015 4:16 am
Location: Calgary, Alberta, Canada

Re: Retrofitting a Duet 2 wifi into Makergear M2 Rev. E

Post by Farr0wn3d » Tue Nov 30, 2021 6:49 pm

airscapes wrote:
Tue Nov 30, 2021 4:57 pm
Hey Where did you get this value for steps per mm on Z in your config (from duet forum post) and are you using this value or did it get changed. It does not match the supposid value in the old Marlin config found on the old makergear m2 firmware site which I have listed below
Your config
M92 X88.89 Y88.89 Z1011.90 E430.00 ; set steps per mm
I recalibrated my Z axis steps a while back because I wasn’t getting proper sized layers, It’s been years since I did it, so I can’t really help much with the reasoning or results I found by doing it

Marlin
#define DEFAULT_AXIS_STEPS_PER_UNIT {88.88,88.88,1007.7,471.5}

When I used that 1007.7 and the below axis max my build plate was to low for the extruder to reach. Have to have maxima set to 212 which seems wrong. Guess I will try the 1011.90 and see what that does.. god I hate fixing things that were not broke. :oops:
M208 X230 Y255 Z200 S0 ; set axis maxima
I know its frustrating, but once you have it all up and running, I think you’ll be very pleased with the results

Jeremy

airscapes
Posts: 594
Joined: Wed Jan 31, 2018 11:36 pm

Re: Retrofitting a Duet 2 wifi into Makergear M2 Rev. E

Post by airscapes » Tue Nov 30, 2021 8:07 pm

Farr0wn3d wrote:
Tue Nov 30, 2021 6:49 pm
airscapes wrote:
Tue Nov 30, 2021 4:57 pm
Hey Where did you get this value for steps per mm on Z in your config (from duet forum post) and are you using this value or did it get changed. It does not match the supposid value in the old Marlin config found on the old makergear m2 firmware site which I have listed below
Your config
M92 X88.89 Y88.89 Z1011.90 E430.00 ; set steps per mm
I recalibrated my Z axis steps a while back because I wasn’t getting proper sized layers, It’s been years since I did it, so I can’t really help much with the reasoning or results I found by doing it

Marlin
#define DEFAULT_AXIS_STEPS_PER_UNIT {88.88,88.88,1007.7,471.5}

When I used that 1007.7 and the below axis max my build plate was to low for the extruder to reach. Have to have maxima set to 212 which seems wrong. Guess I will try the 1011.90 and see what that does.. god I hate fixing things that were not broke. :oops:
M208 X230 Y255 Z200 S0 ; set axis maxima
I know its frustrating, but once you have it all up and running, I think you’ll be very pleased with the results

Jeremy
Do you remember if the Z steps you had in the config you posted to the duet forum are what you are still using and how you came to that number?

User avatar
Farr0wn3d
Posts: 319
Joined: Tue Mar 31, 2015 4:16 am
Location: Calgary, Alberta, Canada

Re: Retrofitting a Duet 2 wifi into Makergear M2 Rev. E

Post by Farr0wn3d » Tue Nov 30, 2021 10:09 pm

The Z steps that are in the config that I posted to the Duet forum will be the ones that I’m using. I didn’t mess with them at all while I was getting it all up and running. I arrived on the new value by using a digital dial indicator to verify that the bed was travelling what I was instructing it to, and I also printed several test pieces of different heights to confirm that I was getting an accurate Z height no matter how many layers I printed.

Jeremy

airscapes
Posts: 594
Joined: Wed Jan 31, 2018 11:36 pm

Re: Retrofitting a Duet 2 wifi into Makergear M2 Rev. E

Post by airscapes » Tue Nov 30, 2021 11:40 pm

Farr0wn3d wrote:
Tue Nov 30, 2021 10:09 pm
The Z steps that are in the config that I posted to the Duet forum will be the ones that I’m using. I didn’t mess with them at all while I was getting it all up and running. I arrived on the new value by using a digital dial indicator to verify that the bed was travelling what I was instructing it to, and I also printed several test pieces of different heights to confirm that I was getting an accurate Z height no matter how many layers I printed.

Jeremy
Well that sounds good to me!! Not touching the thing today, fighting with other issues on other items I have neglected over the past few days!
How are you doing, things progressing as expected??

User avatar
Farr0wn3d
Posts: 319
Joined: Tue Mar 31, 2015 4:16 am
Location: Calgary, Alberta, Canada

Re: Retrofitting a Duet 2 wifi into Makergear M2 Rev. E

Post by Farr0wn3d » Tue Nov 30, 2021 11:53 pm

I assume you’re asking about my surgery? If so, it went excellent, thanks for asking. Literally everything went according to plan or better, and I expect to be back home by the end of the week. If you dont have your printer up and running by then, I’ll be in a better position to offer assistance.

Jeremy

airscapes
Posts: 594
Joined: Wed Jan 31, 2018 11:36 pm

Re: Retrofitting a Duet 2 wifi into Makergear M2 Rev. E

Post by airscapes » Wed Dec 01, 2021 5:01 am

Yes, that is great news, glad it went well!
I am going to try and ignore the elephant that is sitting on the table next to me for a couple days, I need to chill a bit.. I get rather obsessed about projects, especially when they take longer than I think they should ;-)
Thanks again!
Doug

Post Reply