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

M260: i2c Send Data, M261: i2c Request Data

Scheduled Pinned Locked Moved
Firmware wishlist
3
6
1.3k
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.
  • undefined
    mremy1985
    last edited by 7 Jan 2018, 14:58

    Hi David,

    I just want to congratulate you on the fine work you have done.
    Would it be possible to also implement the M260 and M261 G codes as I (and possibly others) might want to interface the duet board with extra electronics?
    I already have 2 duet boards and would really like to interface them with some custom electronics that talk I2C and SPI.
    I would'n mind an SPI version of G codes 🙂

    Thanks, and keep up the good work.

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by 7 Jan 2018, 16:43

      I have added it to the wish list. Bear in mind that I2C is intended to work over very short distances only, normally within a single PCB. It has very low noise immunity so it is unreliable in other situations.

      RRF already allow you to connect a SX1509B device via the I2C pins to provide additional I/O.

      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
      • undefined
        mremy1985
        last edited by 7 Jan 2018, 17:02

        I was not thinking of connecting the extra hardware over long distances just close to the duet board.
        Also I was thinking of connecting other micro-controllers that have firmware running on them so more functionality could be implemented instead of just gpio expansion like the SX chip does.
        Are the extra fans (beside FAN 0, 1, 2) controlled using this SX chip on the Duet expansion board?

        1 Reply Last reply Reply Quote 0
        • undefined
          dc42 administrators
          last edited by 7 Jan 2018, 17:13

          Yes the additional fans are controlled using a SX1509B on the DueX board. However, you can also add another SX1509B to provide another 16 uncommitted I/O pins (whether you have a DueX connected or not). Currently they are output only and PWM-capable.

          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
          • undefined
            Jason K
            last edited by 8 Jan 2018, 18:26

            Id be very interested in this as well. Mremy id be happy to nerd out on this with you. I'd love the ability to set up a secondary microcontroller that can send gcode commands to the duet. I have this idea of using a raspeberry pi or ESP8266 with a secondary touchscreen that I can use to make a custom GUI where I can easily customize a list of my frequently used macros. It cant be that hard. I guess I could do it through the WIFI.

            Are there any resources or even better, tutorials, that you have run across that explain in detail how to communicate with the duet from outside sources?

            1 Reply Last reply Reply Quote 0
            • undefined
              mremy1985
              last edited by 9 Jan 2018, 21:39

              @Jason:

              Id be very interested in this as well. Mremy id be happy to nerd out on this with you. I'd love the ability to set up a secondary microcontroller that can send gcode commands to the duet. I have this idea of using a raspeberry pi or ESP8266 with a secondary touchscreen that I can use to make a custom GUI where I can easily customize a list of my frequently used macros. It cant be that hard. I guess I could do it through the WIFI.

              Are there any resources or even better, tutorials, that you have run across that explain in detail how to communicate with the duet from outside sources?

              Currently I am in the process of setting up a new PC. Once I finish installing all the tools (IDE, toolchains, etc) I will get back and see what we can do. I do prefer to run a stock firmware as I keep all the firmwares up to date on David's code. Having a dedicated Gcode command for I2C and even maybe SPI would be gold from my point of view.

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