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

    define an analog input?

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    4
    253
    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.
    • Zsevenundefined
      Zseven
      last edited by

      Hello ,

      I have a question. How can I define an analog input? For example, it should switch when 3.2 volts are reached?

      Is there a solution ?

      o_lampeundefined 1 Reply Last reply Reply Quote 0
      • o_lampeundefined
        o_lampe @Zseven
        last edited by

        @Zseven AD conversion uses lots of interrupts and can disturb the printers main tasks.
        I recommend using a separate AD-converter (e.g. ESP32) and communicate via digital trigger input with the Duet.

        Zsevenundefined 1 Reply Last reply Reply Quote 0
        • Zsevenundefined
          Zseven @o_lampe
          last edited by

          @o_lampe
          Hello ,

          but is that basically possible ?

          droftartsundefined 1 Reply Last reply Reply Quote 0
          • droftartsundefined
            droftarts administrators @Zseven
            last edited by

            @Zseven Which Duet board? The capabilities of each pin are listed in the wiki page for each board. I think you have a Duet 3 mainboard 6XD? If so, see: https://docs.duet3d.com/Duet3D_hardware/Duet_3_family/Duet_3_Mainboard_6XD_Hardware_Overview#inputoutput-port-capabilities

            From that, you can see analogue input is supported on io3.in to io8.in. The inputs will tolerate up to 30V and have 10K series resistors. You also have differential signal, opto-isolated inputs for io5.in to io8.in, rated to 30V. Use M950 with the J parameter to define an input, see https://docs.duet3d.com/en/User_manual/Reference/Gcodes#configuration-examples-and-notes

            Once the signal is connected to the Duet, what do you want to do with it? If you want it to trigger on a high input, you can set up a trigger to do this. See https://docs.duet3d.com/en/User_manual/Tuning/Triggers

            Ian

            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

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