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

    LED nozzle light?

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    4
    264
    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.
    • handyandyundefined
      handyandy
      last edited by

      Hi, I have a few 5V LED blades designed to fit into USB ports that I think are fabulous.
      I would like to use one to illuminate the nozzle and surrounding area on my printer.
      I am using a Duet 3 mini 5+ running with a 24 V supply.
      How could I connect this, ideally being able to control it with gcode?
      Any ideas would be very welcome, especially with with some coding suggestions.

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

        You could use a spare fan port if you have one available and wire it as a fan, using a buck converter to drop the voltage.

        https://docs.duet3d.com/en/User_manual/Connecting_hardware/Fans_connecting#duet-2-using-12v-fans-when-vin-is-24v

        The example here is using 12v fans with 24v vin, but the buck converter could supply 5v all the same.

        Z-Bot CoreXY Build | Thingiverse Profile

        handyandyundefined 1 Reply Last reply Reply Quote 0
        • handyandyundefined
          handyandy @Phaedrux
          last edited by

          @Phaedrux , thanks for that.

          jwiloundefined 1 Reply Last reply Reply Quote 0
          • jwiloundefined
            jwilo @handyandy
            last edited by jwilo

            @handyandy you can configure it directly, rather than tricking Duet into thinking it is a fan.

            See my thread here, where I did exactly this to control some linear pull solenoids, and an LED ring light for a vision camera.

            This way you'll be able to control your light using

            M42 Pn S1 ; turn on your light
            M42 Pn S0 ; turn off
            

            Where n is the number you assigned to your light, via the M codes in my thread linked above.

            In my case, both the ring light and solenoid required 24V so I used OUT5 and OUT6, with the voltage select jumper set to VFUSED, as I too am supplying the board with 24V.

            Alternatively you can configure the jumper to supply 12V on these pins, if you're within current limits.

            Finally, I'd need to check the schematic to see if the outputs are just low side MOSFETS, in which case you likely can externally supply whatever voltage you need (within the drain-source breakdown limit of the FETs) and just use the ground side of the output pins, but take this last paragraph with a pinch of salt, as I've not done that check.

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