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

    CNC style Pendant

    Scheduled Pinned Locked Moved
    Hardware wishlist
    28
    155
    19.7k
    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've updated the code and the readme file at https://github.com/Duet3D/CNC-Pendant-Firmware to support Arduino Pro Micro as well as Arduino Nano.

      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
      • FelixHundefined
        FelixH
        last edited by FelixH

        Well, today I found the time to put that together and it doesn't work all that well.

        I wired the Pendant with the Arduino Nano (clone) and a level shifter (the one in the photo above) for both Arduino pins (Rx and Tx). The Pendant works fine, it does what it has to do and it's great. However, when I plug it together with the display, the display does not get info from the Duet. It doesn't retrieve the location, macros, files, etc.

        I flashed the latest firmware.

        Any tips on troubleshooting?

        EDIT: I re-checked the wiring and everything looks as it should...

        dc42undefined 1 Reply Last reply Reply Quote 0
        • Danalundefined
          Danal
          last edited by

          I ordered a pendant just BEFORE Dave wrote his Arudino code. Which is great! Freed me up to take it in a slightly different direction:

          YAP - Yet Another Pendant

          YAP is a wireless (WiFi Network) or wired (PanelDue port) pendant based on the ESP32 (about $5 in the US). Also, the ambition is to have a small OLED display with XYZ showing.

          Progress reports will be in the other thread.

          Delta / Kossel printer fanatic

          1 Reply Last reply Reply Quote 1
          • tntjetundefined
            tntjet
            last edited by

            Thank you all for your contribution! I have my cnc pendant working.

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

              @FelixH said in CNC style Pendant:

              Well, today I found the time to put that together and it doesn't work all that well.

              I wired the Pendant with the Arduino Nano (clone) and a level shifter (the one in the photo above) for both Arduino pins (Rx and Tx). The Pendant works fine, it does what it has to do and it's great. However, when I plug it together with the display, the display does not get info from the Duet. It doesn't retrieve the location, macros, files, etc.

              I flashed the latest firmware.

              Any tips on troubleshooting?

              EDIT: I re-checked the wiring and everything looks as it should...

              Did you correct the wiring according to my previous post? Please provide a diagram showing how you have connected the parts together.

              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

              FelixHundefined 1 Reply Last reply Reply Quote 0
              • FelixHundefined
                FelixH @dc42
                last edited by

                @dc42 here is what I wired, I think I did not miss anything, but I'm known to miss that sort of things, so...

                Also, today I plugged the display (only display as usual) after the Duet on my CNC was turned on, and it did not respond either, just like with the pendant. I had to boot again. Could it have something in common with the problem?

                IMG_0770.jpg

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

                  Have you a datasheet on the level shifter you are using? I'm wondering whether your level shifter might not be able to drive the load on the Nano RX pin.

                  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

                  FelixHundefined 1 Reply Last reply Reply Quote 0
                  • FelixHundefined
                    FelixH @dc42
                    last edited by

                    @dc42 I don't find any datasheet, but it is this one...

                    https://www.amazon.de/XCSOURCE®-Logisches-Konverter-Bi-Direktional-TE291/dp/B0148BLZGE/ref=sr_1_9?dchild=1&keywords=Logic+Level+Converter&qid=1590256177&sr=8-9

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

                      Unfortunately that design of logic level converter doesn't provide any current amplification, so it has the same problem as a PanelDue driving the RX pin of the Nano directly.

                      You could make the modification(s) to the Nano that I described in my post; or substitute an Arduino Pro Micro for the Nano.

                      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

                      FelixHundefined 1 Reply Last reply Reply Quote 0
                      • FelixHundefined
                        FelixH @dc42
                        last edited by FelixH

                        @dc42 so in other words, the logic converter I got, doesn't convert any logic... well, that's a disappointment...

                        What throws me back from doing the modification to the Nano is forgetting about it and having problems in the future because of that. On the other hand, if I ever open the pendant again in the future and I see a logic converter, I will know what's up. Is a sort of future proofing the whole thing.

                        I guess I will try to find a better logic converter...

                        thanks!

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

                          It's probably easier to get an Arduino Pro Micro. I would have designed the pendant around that originally, had I known that it existed.

                          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
                          • FelixHundefined
                            FelixH
                            last edited by

                            just like this one??

                            https://www.amazon.de/KeeYees-ATmega32U4-Entwicklerboard-Arduino-Leonardo/dp/B07FQJW2KN/ref=sr_1_3?dchild=1&keywords=Arduino+Pro+Micro&qid=1590259813&quartzVehicle=184-492&replacementKeywords=arduino+micro&sr=8-3

                            I just want to be sure...

                            dc42undefined 1 Reply Last reply Reply Quote 0
                            • A Former User?
                              A Former User
                              last edited by

                              btw https://www.arduino.cc/en/Reference/softwareSerial is good for 57600baud might also solve some issues?

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

                                @FelixH said in CNC style Pendant:

                                just like this one??

                                https://www.amazon.de/KeeYees-ATmega32U4-Entwicklerboard-Arduino-Leonardo/dp/B07FQJW2KN/ref=sr_1_3?dchild=1&keywords=Arduino+Pro+Micro&qid=1590259813&quartzVehicle=184-492&replacementKeywords=arduino+micro&sr=8-3

                                I just want to be sure...

                                Yes, that's the one. I already have one on order to use for testing, to make sure that the changes I made for the Pro Micro are correct.

                                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 dc42

                                  I have converted my CNC pendant to use an Arduino Pro Micro and updated the firmware at https://github.com/Duet3D/CNC-Pendant-Firmware. I've also added a wiki page about CNC pendants at https://duet3d.dozuki.com/Wiki/CNC_Pendant.

                                  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

                                  CNCModellerundefined 1 Reply Last reply Reply Quote 3
                                  • tntjetundefined
                                    tntjet
                                    last edited by

                                    Is it possible to control a 4th axis in position 4?

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

                                      Yes, the pendant firmware is set up to control the U axis.

                                      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
                                      • tntjetundefined
                                        tntjet
                                        last edited by

                                        Thank you David !

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

                                          If you had the 6-axis version, it would control the V and W axes too. You can change which axes positions 4, 5 and 6 control in the firmware. It's an Arduino sketch, so easy to change and upload.

                                          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
                                          • tntjetundefined
                                            tntjet
                                            last edited by

                                            Thats awsome David , if wanted to change the increments on the rotary encoder feed switch to .01, .1, 1 what would I need to change?

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