Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    New beta firmware 1.20.1RC2 and DuetWiFiServer 1.20+1

    Scheduled Pinned Locked Moved
    Firmware installation
    13
    68
    9.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dc42undefined
      dc42 administrators
      last edited by

      I'm sorry, I forgot what that bit of code looked like. The a, b and limit parameters of function GetExtrusionCoefficients are already passed by reference, because they are declared as reference parameters in the declaration of GetExtrusionCoefficients. This is a C++ feature not available in C.

      Duet WiFi hardware designer and firmware engineer
      Please do not ask me for Duet support via PM or email, use the forum
      http://www.escher3d.com, https://miscsolutions.wordpress.com

      1 Reply Last reply Reply Quote 0
      • burtoogleundefined
        burtoogle
        last edited by

        Hi David, as I said, I'm not familiar with the RRF code so these may be dumb questions but in this code snippet, why are you multiplying totalDistance by dv and not fabsf(dv) and why do that multiply at all? Isn't dv a distance also?

        const float averageExtrusionSpeed = (dda.totalDistance * dv * DDA::stepClockRate)/dda.clocksNeeded;

        1 Reply Last reply Reply Quote 0
        • dc42undefined
          dc42 administrators
          last edited by

          Variable dv is the proportion of totalDistance that applies to the current drive, that's why totalDistance is multiplied by it. It shouldn't matter whether we multiply by dv or fabsf(dv) because nonlinear extrusion is only applied to extruding moves, for which dv is positive.

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          1 Reply Last reply Reply Quote 0
          • burtoogleundefined
            burtoogle
            last edited by

            Understood - thanks.

            1 Reply Last reply Reply Quote 0
            • Captain_squndefined
              Captain_sq
              last edited by

              @dc42
              May I ask what development IDE you are using, Arduino or Atmel Studio (or other)?

              Custom made Kossel Mini - Duet WiFi / Modded Tronxy X5S - Duet WiFi / Prusa i3 MKIII


              Embedded systems designer, RC Pilot, maker and Gadget-o-holic

              1 Reply Last reply Reply Quote 0
              • dc42undefined
                dc42 administrators
                last edited by

                @Captain_sq:

                @dc42
                May I ask what development IDE you are using, Arduino or Atmel Studio (or other)?

                We use Eclipse, see the BuildInstructions.md file in github.

                Arduino is great for getting novices into programming microcontrollers, but truly awful for large scale firmware development. Atmel Studio is OK and I use it for the IR sensor and filament sensor firmware, but it offends those who think that only open source tools should be used or who want to develop under Linux.

                Duet WiFi hardware designer and firmware engineer
                Please do not ask me for Duet support via PM or email, use the forum
                http://www.escher3d.com, https://miscsolutions.wordpress.com

                1 Reply Last reply Reply Quote 0
                • Guyarosundefined
                  Guyaros
                  last edited by

                  I use VisualMicro - Its an add-on to Visual Studio that enables to program and upload code for Arduino.
                  I found it a very good environment for programming.

                  http://www.visualmicro.com/

                  1 Reply Last reply Reply Quote 0
                  • Captain_squndefined
                    Captain_sq
                    last edited by

                    I'm familiar with it. I just can't come to terms with Atmel Studio. Professionally I use a derivative of Eclipse; Atollic True Studio which is hard to beat feature-wise.

                    Custom made Kossel Mini - Duet WiFi / Modded Tronxy X5S - Duet WiFi / Prusa i3 MKIII


                    Embedded systems designer, RC Pilot, maker and Gadget-o-holic

                    1 Reply Last reply Reply Quote 0
                    • burtoogleundefined
                      burtoogle
                      last edited by

                      Hi David, I think I have discovered why I am seeing underextrusion when I use M592 on my Kossel XL fitted with a flex3drive extruder. With A and B set to 0, the x/y motion and the extruder activity start/stop at the same time (as close as I can tell by eye/ear). When I set non-zero values (e.g A=0.015 and B=0.0012) I notice that the extruder stops before the x/y movement stops. The faster the feedrate, the more obvious the gap becomes.

                      Here's the relevant config lines:

                      [[language]]
                      M350 I1 X16 Y16 Z16 E16			; all axes use x16 microstepping with interpolation (steps/mm will get adjusted automatically)
                      M92 X160 Y160 Z160			; Set axis steps/mm (20 tooth pulleys, 0.9deg/step motors)
                      M906 X1000 Y1000 Z1000 E1000 I60	; Set motor currents (mA)
                      M201 X3000 Y3000 Z3000 E400		; Accelerations (mm/s^2)
                      M203 X18000 Y18000 Z18000 E1200		; Maximum speeds (mm/min)
                      M566 X300 Y300 Z300 E10			; Maximum instant speed changes
                      
                      M92 E4320				; Set extruder steps per mm (flex3drive)
                      
                      
                      1 Reply Last reply Reply Quote 0
                      • garyd9undefined
                        garyd9
                        last edited by

                        There was a report earlier about DWC "layer X of Y" showing the wrong numbers for dual extrusion prints. I have a similar issue with the start (only) of a single layer print. At the end of this message, I'll include a link to the gcode file being referenced, but let me describe what is going on:

                        When the print starts (waiting for tools to heat), the DWC shows layer 0 of 111.

                        When the print moves to the part of the gcode that displays a message "Purging and Wiping T1", the DWC shows layer 2 of 111. This part of my startup code does two Z movements before moving on to the real print.

                        When the print moves on the build plate and actually starts printing the first layer (identified in the gcode with the comment "; layer 1, Z = 0.162"), DWC still shows "layer 2 of 111" and the head position Z is correctly noted as 0.16

                        When the print moves to the next layer (identified in the gcode with the comment "; layer 2, Z = 0.342"), DWC still shows "layer 2 of 111", and the head position Z is correctly noted as 0.34

                        Finally, when the print moves to the next layer (identified in the gcode with the comment "; layer 3, Z = 0.522"), DWC finally catches up showing "layer 3 of 111."

                        My WAG is that my startup gcode that does the "purge and wipe" is confusing the duet because of multiple Z moves up and down. However, if that's the case, I don't understand how it "catches up" at layer 3. If my guess is correct, is there something I can include in my gcode to let the duet know that "here is where the actual print starts, so reset the layer to 1"?

                        gcode file: https://drive.google.com/file/d/1MWXt1cxYU0ZMMG2RMMgH25-8_ynrjyHl/view?usp=sharing

                        Thanks
                        Gary

                        "I'm not saying that you are wrong - I'm just trying to fit it into my real world simulated experience."

                        1 Reply Last reply Reply Quote 0
                        • dc42undefined
                          dc42 administrators
                          last edited by

                          @burtoogle:

                          Hi David, I think I have discovered why I am seeing underextrusion when I use M592 on my Kossel XL fitted with a flex3drive extruder. With A and B set to 0, the x/y motion and the extruder activity start/stop at the same time (as close as I can tell by eye/ear). When I set non-zero values (e.g A=0.015 and B=0.0012) I notice that the extruder stops before the x/y movement stops. The faster the feedrate, the more obvious the gap becomes.

                          Here's the relevant config lines:

                          [[language]]
                          M350 I1 X16 Y16 Z16 E16			; all axes use x16 microstepping with interpolation (steps/mm will get adjusted automatically)
                          M92 X160 Y160 Z160			; Set axis steps/mm (20 tooth pulleys, 0.9deg/step motors)
                          M906 X1000 Y1000 Z1000 E1000 I60	; Set motor currents (mA)
                          M201 X3000 Y3000 Z3000 E400		; Accelerations (mm/s^2)
                          M203 X18000 Y18000 Z18000 E1200		; Maximum speeds (mm/min)
                          M566 X300 Y300 Z300 E10			; Maximum instant speed changes
                          
                          M92 E4320				; Set extruder steps per mm (flex3drive)
                          
                          

                          Thanks, I look into it.

                          Duet WiFi hardware designer and firmware engineer
                          Please do not ask me for Duet support via PM or email, use the forum
                          http://www.escher3d.com, https://miscsolutions.wordpress.com

                          1 Reply Last reply Reply Quote 0
                          • dc42undefined
                            dc42 administrators
                            last edited by

                            I found the problem. I'll get a new 1.20.1RC out soon with a fix.

                            Duet WiFi hardware designer and firmware engineer
                            Please do not ask me for Duet support via PM or email, use the forum
                            http://www.escher3d.com, https://miscsolutions.wordpress.com

                            1 Reply Last reply Reply Quote 0
                            • burtoogleundefined
                              burtoogle
                              last edited by

                              A new 1.20.1RC would be most welcome!

                              1 Reply Last reply Reply Quote 0
                              • burtoogleundefined
                                burtoogle
                                last edited by

                                Any chance of a new RC? I am keen to try out the fixed M592.

                                1 Reply Last reply Reply Quote 0
                                • dc42undefined
                                  dc42 administrators
                                  last edited by

                                  I am working through bug reports at the moment, trying to get some fixes implemented before I release it. However, there is a pre-release Duet Wifi build at https://www.dropbox.com/s/8pvnkzaf0hqxf7x/DuetWiFiFirmware.bin?dl=0.

                                  Duet WiFi hardware designer and firmware engineer
                                  Please do not ask me for Duet support via PM or email, use the forum
                                  http://www.escher3d.com, https://miscsolutions.wordpress.com

                                  1 Reply Last reply Reply Quote 0
                                  • burtoogleundefined
                                    burtoogle
                                    last edited by

                                    Thanks, I'm trying it now…

                                    1 Reply Last reply Reply Quote 0
                                    • burtoogleundefined
                                      burtoogle
                                      last edited by

                                      Appears to work as expected, testing PETG at 240C, 0.4mm v6, flex3drive extruder. Preliminary results indicate A=0.05, B=0.004 work well up to 3.5mm/S. From 4mm/S upwards, compensation not really effective which doesn't surprise me as I've never been able to reliably get much more than approx 6 mm^3/S out of the v6. Will continue to test but it's looking good so far.

                                      1 Reply Last reply Reply Quote 0
                                      • dc42undefined
                                        dc42 administrators
                                        last edited by

                                        Thanks for the feedback. I have not tested whether increasing the spring tension on my Titan affects the amount of nonlinearity.

                                        Duet WiFi hardware designer and firmware engineer
                                        Please do not ask me for Duet support via PM or email, use the forum
                                        http://www.escher3d.com, https://miscsolutions.wordpress.com

                                        1 Reply Last reply Reply Quote 0
                                        • burtoogleundefined
                                          burtoogle
                                          last edited by

                                          The flex3drive extruder doesn't appear to have any means of adjusting the "grip" - hasn't been a problem so far except for some TPU like stuff I have which is only 1.55 dia and so I have to add some packing to the over-centre lever otherwise the filament slips. The extruder works OK but it's a shame that it doesn't have any means of adjusting for filament diameters that aren't close to 1.75.

                                          1 Reply Last reply Reply Quote 0
                                          • burtoogleundefined
                                            burtoogle
                                            last edited by

                                            Done some prints with M592 active and they look very good. I believe the quality in terms of extrusion amounts has been improved. Here's a couple of images…

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA