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

    Support for I2C during Tool Changing

    Scheduled Pinned Locked Moved Solved
    Duet Hardware and wiring
    2
    5
    382
    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.
    • NR12undefined
      NR12
      last edited by

      Hi,
      I am using i2c to communicate with an arduino as an external controller. I use the M260 command to send bits to trigger the arduino controller. I also use M400 before this line as I realized i2c would not trigger somwtimes in the cgode without the M400.
      I am able to get this setup working with Tool1. But during a print where I have two tools, after I change tools from Tool2 to Tool1, the i2c command never issues. I found this happens only after tool changing.
      I have to restart the machine for i2c to be working again.

      Running Firmware 2.03 on a duet2+duex2 board setup.

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

        Please test again with 2.04RC1 - although to be honest, I don't expect any change.

        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

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

          PS - also:

          • Are you just sending bytes using M260, or receiving them as well?
          • After selecting Tool1, if you deselect it using T-1, are you able to select it again?
          • What makes you sure that the I2C command isn't being sent, and it isn't a problem at the Arduino end?
          • What are the i2C error counts reported by M122 after selecting tool 1, and again after you try to select tool 2?

          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

          NR12undefined 1 Reply Last reply Reply Quote 0
          • NR12undefined
            NR12 @dc42
            last edited by

            @dc42
            Hey, thanks for getting back, There was an M107 in the gcode file, which the slicer added and it disabled all the fan ports. one of these fan ports was powering the Arduino.

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

              @nr12 said in Support for I2C during Tool Changing:

              @dc42
              Hey, thanks for getting back, There was an M107 in the gcode file, which the slicer added and it disabled all the fan ports. one of these fan ports was powering the Arduino.

              M107 should only disable the fan assigned as the print cooling fan, which is Fan 0 unless you specify different fans in your M563 tool definition commands.

              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