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

Duex5 i/o pins?

Scheduled Pinned Locked Moved
General Discussion
3
9
1.1k
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.
  • undefined
    rs4race
    last edited by 13 Dec 2018, 07:32

    Hello. I have a Duet Wifi and Duex5 I am using for a new build. Aside from the stepper drivers I am using two hotends with thermocouples, heated build plate w/ thermistor, chamber heater with thermocouple and fan, 12V water pump, 24V power supply, and two 12v actuators with hbridge.

    The hbridge is a l298n and requires 5v logic input, and looking for the best way to control it. On a similar build I remapped pins from the expansion header. I see that fan channels are selectable, but I'm not sure if I can use 5v and 12v at the same time. Also I'm not sure if I can use the servo connectors at the same time as 12V. I also saw there are 4 unused i/o pins, but not sure if those work while using the thermocouple boards.

    Can anyone advise what the best route would be? I have everything hooked up and working except the hbridge logic pins. I would prefer to be able to pwm these pins if possible.

    Thanks in advance!

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by dc42 13 Dec 2018, 07:36

      How many of the heater outputs on the DueX5 are you using? For any of those heater outputs that you are not using, the corresponding servo output is available. It is 5V always and PWM capable.

      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
      • undefined
        rs4race
        last edited by rs4race 21 Dec 2018, 17:01

        Thanks, I was able to remap 4 heater channels to drive the H-bridge. The only consequence I see, is that I seem to be maxed out on temperature readings now. I have two hotends, heated bed, and heated chamber. It seems that I should be able to read 4 more temperatures, but since I remapped the heaters to use PWM I can't monitor my extra thermocouples.

        Is there a way to show these temperature readings on the temperature graph and keep the 4 pwm outputs? I don't have heaters for the extra thermocouples, they are just for science.

        undefined 1 Reply Last reply 22 Dec 2018, 10:11 Reply Quote 0
        • undefined
          dc42 administrators @rs4race
          last edited by 22 Dec 2018, 10:11

          @rs4race said in Duex5 i/o pins?:

          Thanks, I was able to remap 4 heater channels to drive the H-bridge. The only consequence I see, is that I seem to be maxed out on temperature readings now. I have two hotends, heated bed, and heated chamber. It seems that I should be able to read 4 more temperatures, but since I remapped the heaters to use PWM I can't monitor my extra thermocouples.

          Is there a way to show these temperature readings on the temperature graph and keep the 4 pwm outputs? I don't have heaters for the extra thermocouples, they are just for science.

          Yes, you can create virtual heaters for them using the M305 command.

          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

          undefined 1 Reply Last reply 23 Dec 2018, 21:50 Reply Quote 0
          • undefined
            rs4race @dc42
            last edited by rs4race 23 Dec 2018, 21:50

            @dc42 Thanks! After reviewing M305 again I see virtual heaters numbered 100, 101, ....

            I will add to my config

            M305 P100 X154 T"K" ; Set thermocouple type K for heater 1

            I love how versatile this is!

            1 Reply Last reply Reply Quote 0
            • undefined
              dc42 administrators
              last edited by 24 Dec 2018, 07:29

              Virtual heaters 100, 101 and 102 have predefined meanings, so I suggest you start your additional sensors at 103.

              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
              • undefined
                rs4race
                last edited by 24 Dec 2018, 22:47

                Thanks, Will do! I noticed after adding the virtual heater it shows up under extras along with MCU. It seems as though I will need to add it to graph every time I connect to the interface. Is that true?

                undefined 1 Reply Last reply 24 Dec 2018, 23:29 Reply Quote 0
                • undefined
                  Phaedrux Moderator @rs4race
                  last edited by 24 Dec 2018, 23:29

                  @rs4race It should remember that you've added them and they should stay showing in the graph. Does that not work for you?

                  Z-Bot CoreXY Build | Thingiverse Profile

                  undefined 1 Reply Last reply 31 Dec 2018, 16:28 Reply Quote 0
                  • undefined
                    rs4race @Phaedrux
                    last edited by 31 Dec 2018, 16:28

                    @phaedrux I was wrong. They stay in the graph after reboot. Very useful. I'm using it to monitor my chamber heater, and control the heater with the chamber heater air temp.

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