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

    5V GPIO

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    6
    776
    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.
    • gcortheyundefined
      gcorthey
      last edited by

      I need to switch on and off an external device from DUET2 WIFI. which has to be done by applying +5V (OFF) or 0V (ON). How can I achieve that from DUET2 WIFI?

      markzundefined 1 Reply Last reply Reply Quote 0
      • markzundefined
        markz @gcorthey
        last edited by

        @gcorthey most of the pins are not 5V tolerant so it depends a bit on what your application is, what your VIN is, etc. What are you trying to switch? How much current will it pull?

        You can set all of the fans to 5V output, use a heater output with a voltage dropping diode or resistor, set the bed to 5V, or add an Duet2 Extender (which is 5V tolerant). The endstop inputs are 8V tolerant but I'm not sure you could turn them into outputs.

        1 Reply Last reply Reply Quote 0
        • gcortheyundefined
          gcorthey
          last edited by

          @markz thanks. I have to control a GPIO of an AT89S51 that recieves +5V or 0V.

          Therefore, I have to control the output of DUET GPIO with +5V or 0V.

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

            @gcorthey the datasheet for the ATS89S51 has this:

            0a535e00-bc41-44ae-80c9-784a93c6943a-image.png

            If it is powered from 5V then the minimum input high voltage is (0.2*5)+0.9 which is 1.9V. So 3.3V will be more than enough.

            I suggest you connect a resistor of about 1K between the Duet and the 89S51, to allow for the 89S51 being unpowered while the Duet is powered.

            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

            gcortheyundefined 1 Reply Last reply Reply Quote 0
            • gcortheyundefined
              gcorthey @dc42
              last edited by

              @dc42 thank you very much. And which pin of the DUET do you recommend me to use?

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

                @gcorthey assuming that you don't have a DueX board connected, you can use one of the endstop pins on the expansion connector, for example "exp.e2stop".

                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
                • First post
                  Last post
                Unless otherwise noted, all forum content is licensed under CC-BY-SA