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

    USB Accelerometer

    Scheduled Pinned Locked Moved
    Third-party add-ons
    4
    6
    447
    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.
    • marcel.kastlerundefined
      marcel.kastler
      last edited by

      Hello everyone,

      a question. I found an interesting project "KUSBA" which allows to connect an accelerometer via USB for Klipper firmware:

      https://github.com/xbst/KUSBA?_ga=2.70329625.846608309.1669791961-354117713.1669791961

      I am wondering if a Duet3D board and firmware would also support accelerometers connected via USB, which eliminates the problems with SPI. We can call it "DUSBA". 🙂

      Many thanks for everyone's help in advance!

      jay_s_ukundefined chrishammundefined 2 Replies Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @marcel.kastler
        last edited by

        @marcel-kastler I expect not. You'd need an SBC for that and most people run standalone

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        1 Reply Last reply Reply Quote 0
        • chrishammundefined
          chrishamm administrators @marcel.kastler
          last edited by chrishamm

          @marcel-kastler You could write your own SBC plugin to collect USB accelerometer data in SBC mode using a custom implementation of M955/M956 but we have no plans to support this officially. If you are concerned about SPI connectivity, you could also use a TOOL1LC with embedded accelerometer and capture accelerometer data via CAN provided you have a Duet 3.

          Duet software engineer

          marcel.kastlerundefined 1 Reply Last reply Reply Quote 1
          • marcel.kastlerundefined
            marcel.kastler @chrishamm
            last edited by

            @chrishamm: Many thanks! Yes, I also run my Duet board standalone. I am afraid that I can not code well enough to do this. Let me start connecting an accelerometer in the traditional way! THANKS!

            1 Reply Last reply Reply Quote 0
            • necroratundefined
              necrorat
              last edited by

              I'm currently running a mini with SBC and would live to be able to use the kusba with, although I have no idea where to even start with the plugin 😐

              chrishammundefined 1 Reply Last reply Reply Quote 0
              • chrishammundefined
                chrishamm administrators @necrorat
                last edited by

                @necrorat To get started with the basic structure of plugins, check out the SBC third-party docs. Currently you have two API libraries to write an SBC plugin with:

                1. .NET using DuetAPIClient
                2. Python using dsf-python

                If you go with .NET, I suggest you have a look at the DuetPiManagementPlugin to see how G-codes like M955 and M596 could be intercepted. For Python, check out the custom M-code example instead.

                Duet software engineer

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