Navigation

    Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Unconventional use of heater outputs

    Duet Hardware and wiring
    2
    3
    402
    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.
    • LewisB
      LewisB last edited by

      Hi guys! I'm using a Duet Ethernet to control a fluid printer that uses a solenoid valve to control air pressure. My initial thought was to use the extruder heater outputs as the control and essentially make a macro that would consist of "if-printing, turn on, if not, turn off" with no heat-up time. Is there anyone with experience around the manipulation of the heater output or who has done something similar?

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

        You can turn unused heater outputs into general purpose output pins with M307, then use M42 to control them. That might be easier. Or if you only want the solenoid on during extruding moves, use M571.

        Remember to connect a flyback diode in parallel with the solenoid.

        1 Reply Last reply Reply Quote 0
        • LewisB
          LewisB last edited by

          @dc42:

          You can turn unused heater outputs into general purpose output pins with M307, then use M42 to control them. That might be easier. Or if you only want the solenoid on during extruding moves, use M571.

          Remember to connect a flyback diode in parallel with the solenoid.

          Thanks for the reply! It sounds like M571 is the most direct route, so I think I'll give that a spin first. To make the extruders on would I include something in the firmware like:

          M571 E0 F0

          I'm not sure how the PWM should behave or if I can exclude the F variable entirely in this case. Also, thanks for the heads up on the flyback diode. I totally overlooked that and will definitely be including that going forward.

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