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

    Read Voltage from Heatbed Power IN

    Scheduled Pinned Locked Moved
    General Discussion
    3
    6
    226
    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.
    • ErlerPrint3Dundefined
      ErlerPrint3D
      last edited by

      Hello everyone,
      I am looking for a way to read in an analog signal of 0-10V from a distance sensor and display it. I use the Duet 3 Mainboard 6HC and build a laser powder 3d printer. I don't need a heating bed for this and my idea is to use the free OUT 0 POWER IN for the analog signal. Is there any way to read out the voltage value. I have not found anything in the documentation.
      Thanks

      ErlerPrint3Dundefined 1 Reply Last reply Reply Quote 0
      • ErlerPrint3Dundefined
        ErlerPrint3D @ErlerPrint3D
        last edited by

        @ErlerPrint3D
        I have already tested:

        M308 S18 P "io3.in" Y "linear-analog" A "MySensor" F0

        It works well but you have to convert the voltage from 0-10V to 0-3.3V. And I would like to avoid that.

        bricorundefined 1 Reply Last reply Reply Quote 0
        • bricorundefined
          bricor @ErlerPrint3D
          last edited by bricor

          @ErlerPrint3D said in Read Voltage from Heatbed Power IN:

          M308 S18

          Ths sounds like what you need.

          Bnnn The temperature or other value when the ADC output is zero
          Cnnn The temperature or other value when the ADC output is full scale

          Reference:
          https://docs.duet3d.com/User_manual/Reference/Gcodes#m308-set-or-report-sensor-parameters

          Additional parameters for linear analog sensors

          Fn F0 = unfiltered (fast response), F1 = filtered (slower response, but noise reduced and ADC oversampling used to increase resolution). F1 is only available when using a port intended for thermistors, not when using a general input port.
          Bnnn The temperature or other value when the ADC output is zero
          Cnnn The temperature or other value when the ADC output is full scale

          ErlerPrint3Dundefined 1 Reply Last reply Reply Quote 1
          • ErlerPrint3Dundefined
            ErlerPrint3D @bricor
            last edited by

            @bricor Thanks for your answer. As I said, I have tested it with M308 and it would be a solution, but I ask myself if there is another way. For example via the free Power IN. In addition, all inputs (I0_0 to IO_8) are used for endstops. Therefore I am looking for another input.

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

              @ErlerPrint3D Out0 power in is not an input to the MCU. It's the power input for OUT0. OUT0 is switched on the ground side by the out0 pin; there are no other input/outputs available there.

              If you need more I/O, note that:

              IO output pins can be used as inputs, but are only 3.3V tolerant. IO input pins can be used as outputs, but have 10K protection resistors in series with them, so you would need to bypass these to use them as outputs.

              https://docs.duet3d.com/Duet3D_hardware/Duet_3_family/Duet_3_Mainboard_6HC_Hardware_Overview#inputoutput

              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

              ErlerPrint3Dundefined 1 Reply Last reply Reply Quote 0
              • ErlerPrint3Dundefined
                ErlerPrint3D @droftarts
                last edited by

                @droftarts okay, 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