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

    One wire communication

    Scheduled Pinned Locked Moved Solved
    Duet Hardware and wiring
    2
    3
    390
    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.
    • akhilrajuundefined
      akhilraju
      last edited by

      Hi all,

      Is it possible to control devices like UCS1903 which uses one wire communication with duetwifi?

      Thanks in advance. ☺

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

        The problem with 1-wire communication protocols is that they require precise timing, which generally means that the processor can't do anything else at the same time - in particular, generate steps for the stepper motor, or respond to input from the UART, USB or network. In some cases it is possible to program an SPI or I2S controller to DMA the data out, but it needs large buffers. In the case of the UCS1903 it might be possible to use SPI but it would need 5 SPI bits for each bit of data.

        If you want to drive addressable LEDs then I suggest you use the Adafruit DotStar. It uses regular SPI protocol, so driving it is straightforward. It's already supported in RepRapFirmware, but disabled by default because the current Duet hardware doesn't include the buffers it needs to level-shift the signals to 5V and protect the Duet against mis-wiring. It can be enabled using the SUPPORT_DOTSTAR option, but to use it on a regular Duet it would need to be modified to use the SharedSPI subsystem.

        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

        akhilrajuundefined 1 Reply Last reply Reply Quote 0
        • akhilrajuundefined
          akhilraju @dc42
          last edited by

          @dc42 Thank you.

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