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

    Babystepping and 12864 goes crazy

    Scheduled Pinned Locked Moved
    General Discussion
    7
    30
    1.4k
    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.
    • izemanundefined
      izeman @jay_s_uk
      last edited by

      @jay_s_uk Thanks. Yes, that's were I found it as well. Didn't realize that it was moved though, and thought I was using the "old" structure, whereas in fact I was already using the new one 🙂

      droftartsundefined jay_s_ukundefined 2 Replies Last reply Reply Quote 1
      • droftartsundefined
        droftarts administrators @izeman
        last edited by

        @izeman I've updated the documentation to show a couple of other user-submitted menu systems, https://duet3d.dozuki.com/Wiki/Duet_2_Maestro_12864_display_menu_system#Section_Configuration. Have a look to see how they have implemented baby-stepping. I don't have a 12864 display to check myself, unfortunately.

        Ian

        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

        1 Reply Last reply Reply Quote 1
        • jay_s_ukundefined
          jay_s_uk @izeman
          last edited by

          @izeman i use the ultimate menu files https://github.com/jadonmmiller/UltimateDuetMenuSystem
          I believe babystepping works ok on that one

          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

          1 Reply Last reply Reply Quote 1
          • izemanundefined
            izeman
            last edited by

            Thanks guys. My goal is to understand how to write code for menu myself, so I digged a little into it, and I will check the other menu examples as well 🙂

            izemanundefined 1 Reply Last reply Reply Quote 1
            • izemanundefined
              izeman @izeman
              last edited by

              @dc42 have to bring that topic up again as I don't manage to make it work.
              Felt adventurous yesterday and tried it during a print and turned the know by ONE notch and the nozzle dropped down by like 7(!)mm in a instant and crashed into the bed really hard.

              This is the code, and it's got N521 in it, and babystepping is set to ZERO when I want to alter the value.

              button R0 C0 F0 T" BACK " A"return"
              text T" "
              image R11 C0 L"hline.img"
              text R26 C8 F0 T"Baby Step Adjust"
              alter C88 D2 N521 
              image R51 C0 L"hline.img"
              

              Nothing I see here that I could change. It seems to me that the N521 command is handled hundreds of times instead of only once?!
              N521 is working though. As long as the printer IS NOT IN STATE PRINTING everything works perfectly fine and I can alter the value as granular as it's set in the webfrontend.

              pkosundefined 1 Reply Last reply Reply Quote 0
              • pkosundefined
                pkos @izeman
                last edited by

                @izeman Could you paste how you configure the screen in config.g?

                Voron 2.4 (Duet 3 6HC + 3HC standalone), Voron SW (Duet 3 mini 5+ standalone), Voron Trident (Duet 3 mini 5+ standalone), Voron 0.1

                izemanundefined 1 Reply Last reply Reply Quote 0
                • izemanundefined
                  izeman @pkos
                  last edited by

                  @pkos sorry. Not sure what you mean?!
                  Do you want to see code? Or photo of the screen? Or video of me altering the value?

                  pkosundefined 1 Reply Last reply Reply Quote 0
                  • pkosundefined
                    pkos @izeman
                    last edited by

                    @izeman In order for the screen to work, you have to first configure it with M918 gcode.
                    I'd like to see how you have the parameters set for it 😉

                    Voron 2.4 (Duet 3 6HC + 3HC standalone), Voron SW (Duet 3 mini 5+ standalone), Voron Trident (Duet 3 mini 5+ standalone), Voron 0.1

                    izemanundefined 1 Reply Last reply Reply Quote 0
                    • izemanundefined
                      izeman @pkos
                      last edited by

                      @pkos The screen is working fine. And babystepping is working fine as well - AS LONG as the printer is not in state PRINTING.

                      This is the output of M918:

                      M918
                      Direct connect display: 128x64 mono graphics with ST7567 controller, 2.00MHz, 2 encoder pulses per click
                      
                      pkosundefined 1 Reply Last reply Reply Quote 0
                      • pkosundefined
                        pkos @izeman
                        last edited by

                        @izeman Yes, I asked for your specific line configuring the screen in config.g

                        Reading from the output - change encoder pulses per click from 2 to 4. This should help you, although it will take more rotations of the wheel to make it work properly - not sure if this is something for @dc42 to take a look at - but I had the exact same issue as you did on two different screens and two different duet 3 mini 5+'s (one wifi, one ethernet).

                        Voron 2.4 (Duet 3 6HC + 3HC standalone), Voron SW (Duet 3 mini 5+ standalone), Voron Trident (Duet 3 mini 5+ standalone), Voron 0.1

                        izemanundefined 1 Reply Last reply Reply Quote 0
                        • izemanundefined
                          izeman @pkos
                          last edited by

                          @pkos Ok. Got it. It's "M918 P2 E2"

                          I will try, but I highly doubt that it will help. As mentioned: I workes perfectly fine as long as the printer is not printing. I can go inside the bedleveling "menu" and alter the nozzle just as you would expect it to work.

                          But as soon as it's printing, and this is when you really need the feature as it's laying down the first layer and you want to adjust the squish: You go to babystepping, it shows 0.00, and you turn the encoder BY A SINGLE CLICK and the nozzle moves like 5(!!)mm not 0.01mm as set in configuration. So like 50(!) times as much as it should move. Turning it on step back makes it move like 2mm, 3mm, 5mm ... whatever. It's not consistent.
                          So completely unusable.

                          Using the webfrontend and clicking the icons to alter the BS works perfectly fine all the time of course.

                          pkosundefined 1 Reply Last reply Reply Quote 0
                          • pkosundefined
                            pkos @izeman
                            last edited by

                            @izeman I know. I am saying I had exactly the same thing and messed up a couple PEI sheets because of it 😉 The change from 2 to 4 fixed it for me.

                            Voron 2.4 (Duet 3 6HC + 3HC standalone), Voron SW (Duet 3 mini 5+ standalone), Voron Trident (Duet 3 mini 5+ standalone), Voron 0.1

                            izemanundefined 1 Reply Last reply Reply Quote 0
                            • izemanundefined
                              izeman @pkos
                              last edited by

                              @pkos said in Babystepping and 12864 goes crazy:

                              @izeman I know. I am saying I had exactly the same thing and messed up a couple PEI sheets because of it 😉 The change from 2 to 4 fixed it for me.

                              Good to note that I'm not alone. I destroyed THREE perfectly fine PEI sheets by playing with babystepping. Not idea why I refused to learn .... 😉
                              I now ordered a FR4 epoxy plate. Just need to find a way to attach it properly to a stainless steel plate.

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

                                @izeman which firmware version are you using?

                                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

                                izemanundefined 1 Reply Last reply Reply Quote 0
                                • izemanundefined
                                  izeman @dc42
                                  last edited by

                                  @dc42 said in Babystepping and 12864 goes crazy:

                                  @izeman which firmware version are you using?

                                  RepRapFirmware for Duet 2 WiFi/Ethernet 3.4.0beta6 (2021-11-06)

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

                                    @izeman please check whether 3.4.0rc1 has the same issue. You can print several mm above the bed to avoid risk of damage. I recall doing a fix to the 12864 but I can't remember the details.

                                    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

                                    izemanundefined 1 Reply Last reply Reply Quote 0
                                    • izemanundefined
                                      izeman @dc42
                                      last edited by

                                      @dc42 Sure. Will do so when back home. Thanks

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

                                        @izeman also, please check that the cables to the 12864 display don't go anywhere near any stepper motor wires. One possibility is that it is interference to the signals from the rotary encoder that is causing the problem.

                                        I will also run some tests here.

                                        EDIT: I've tested in on a simple non-extruding print job on a Duet Maestro, and babystepping is working correctly for me. The menu entry I am using is:

                                        ; babystepping
                                        text V4 R52 C0 "Baby step "
                                        alter V4 N521 D2
                                        

                                        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

                                        izemanundefined 1 Reply Last reply Reply Quote 0
                                        • izemanundefined
                                          izeman @dc42
                                          last edited by

                                          @dc42 is there a difference between:

                                          alter C88 D2 N521
                                          alter V4 N521 D2

                                          Well apart from the obvious positioning 😉 I guess it shouldn't make a difference if D2 comes before or after N521 ?!

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

                                            @izeman correct, it should not make a difference.

                                            Interference from stepper motor wires seems a likely cause to me.

                                            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

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