Duex5 i/o pins?



  • 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!


  • administrators

    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.



  • 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.


  • administrators

    @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.



  • @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!


  • administrators

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



  • 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?



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



  • @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.


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.