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

    Panel Due Bad Command Error From CNC Pendant

    Scheduled Pinned Locked Moved
    Accessories and Add-ons
    2
    6
    321
    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.
    • dhusoloundefined
      dhusolo
      last edited by

      I have:
      Duet 3 with RRF 3.3 ran off a RPI 4 as SBC
      FYSETC PanelDue 7i clone with
      Arduino Nano CNC Pendant from here

      To be clear the pendant works if It's connected to a Duet 2 WiFi or Duet 3+ Mini

      When I connect the pendant to use the PanelDue pass through I receive numerous "Bad command" errors. I have it wired as the webpage says.

      Arduino TX w/ 6k8 resistor > Duet Io0.in
      Arduino RX > PanelDue DOut
      PanelDue DIn > Duet Io0.out
      1k resistor on the back replaced with 10k

      20211218_225126.jpg

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

        @dhusolo I can see a few possibilities:

        1. Do you definitely have the PanelDue set to the same baud fate as the pendant, normally 57600 baud?
        2. The Arduino Nano really needs a 5V signal level from the PanelDue, however PanelDue outputs a 3.3V signal level (that is why I reworked the pendant to use a Arduino Pro Micro or Leonardo, because those Arduinos are happy with 3.3V signal levels even when run from 5V). So perhaps the signal level is the problem. What did you mean by "1k resistor on the back replaced with 10k" ?

        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

        dhusoloundefined 1 Reply Last reply Reply Quote 0
        • dhusoloundefined
          dhusolo @dc42
          last edited by

          @dc42 Yes the Pendant is 57600 as well as the PanelDue.

          In one of the original posts I saw that with a CH340 on the Nano clones you might need to replace the 1k resistor so the PanelDue can override the RX signal from the USB.

          Sounds like I might need to incorporate a logic level shifter

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

            @dhusolo thanks, I remember now about changing the 1K resistor t 10K, in order to improve the signal level from the PanelDue data out pin into the Arduino.

            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

            dhusoloundefined 1 Reply Last reply Reply Quote 0
            • dhusoloundefined
              dhusolo @dc42
              last edited by

              @dc42 To confirm the logic level shifter is wired Paneldue side is 5v and Arduino side is 3v? or do I have that backwards.

              Also is the 1k resistor swap on a nano really needed?

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

                @dhusolo PanelDue uses 3.3V signal levels, Arduino Nano uses 5V. If you use a level shifter then you probably don't need to change the resistor.

                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
                • First post
                  Last post
                Unless otherwise noted, all forum content is licensed under CC-BY-SA