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

    Gpio pins duet wifi

    Scheduled Pinned Locked Moved
    General Discussion
    5
    14
    974
    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.
    • davidvh86undefined
      davidvh86
      last edited by davidvh86

      would i need to put use M307 H4 A-1 C-1 D-1 to make heater 4 pin available first then reassign it to a fan? sorry this is all very new to me.

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

        @davidvh86 said in Gpio pins duet wifi:

        would i need to put use M307 H4 A-1 C-1 D-1 to make heater 4 pin available first then reassign it to a fan? sorry this is all very new to me.

        Yes if using RRF 2.05.1. No if using RRF 3.1.1.

        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

        davidvh86undefined 1 Reply Last reply Reply Quote 0
        • davidvh86undefined
          davidvh86 @dc42
          last edited by

          @dc42

          So no need for an m307

          M950 F3 C"heater4" Q500

          So would putting this code turn heater 4 pin into a fan?

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

            @davidvh86 said in Gpio pins duet wifi:

            @dc42

            So no need for an m307

            M950 F3 C"heater4" Q500

            So would putting this code turn heater 4 pin into a fan?

            Yes.

            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

            davidvh86undefined 1 Reply Last reply Reply Quote 0
            • davidvh86undefined
              davidvh86 @dc42
              last edited by

              @dc42
              awesome thanks for your help.

              1 Reply Last reply Reply Quote 0
              • A Former User?
                A Former User
                last edited by

                In case it wasn't clear, the pins can only sink it source a tiny current. So you'll most likely need to buffer it with a transistor of sorts of you want to control a relay (unless it's a ssr with a turn on current of about 2mA or less). Some pins may be able to do a little more, ref datasheet page 1350++ or so.

                davidvh86undefined 1 Reply Last reply Reply Quote 0
                • davidvh86undefined
                  davidvh86 @A Former User
                  last edited by

                  @bearer
                  well thats gonna be an issue lol. So it only has approx 2 ma of current?

                  1 Reply Last reply Reply Quote 0
                  • davidvh86undefined
                    davidvh86
                    last edited by

                    I got a Optocoupler Relay that has the has a separate power and signal input. hopefully it triggers properly.

                    1 Reply Last reply Reply Quote 0
                    • A Former User?
                      A Former User
                      last edited by

                      you might be okay if its a darlington optocoupler, otherwise 2ma might be pushing limits. i'd either look up specs or measure the input current at 3.3v supply and add a series resistor to get below 2ma and see if it still works if needed.

                      1 Reply Last reply Reply Quote 0
                      • Gianlucaundefined
                        Gianluca
                        last edited by

                        I need help for setting up a relay in my Duet 2 wifi.
                        I connected the relay as in the picture, but it doesn't work ...
                        Commands assigned in config.g:

                        TEST HEATER7
                        M950 P6 C "exp.heater7" Q500; allocate GPIO port 0 to heater3 on expansion connector, 500Hz
                        ; M42 P6 S1; set 100% PWM on GPIO port 0 (Turn ON)
                        ; M42 P6 S0; set 0% PWM on GPIO port 0 (Turn OFF)
                        WIRE.jpg
                        Thanks.

                        Phaedruxundefined 1 Reply Last reply Reply Quote 0
                        • Phaedruxundefined
                          Phaedrux Moderator @Gianluca
                          last edited by Phaedrux

                          @gianluca Perhaps best to start a new thread with some more details.

                          Z-Bot CoreXY Build | Thingiverse Profile

                          1 Reply Last reply Reply Quote 0
                          • Gianlucaundefined
                            Gianluca
                            last edited by

                            I made a new post.
                            https://forum.duet3d.com/topic/23202/duet-2-wifi-relay-control-via-gpio

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