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

    Lighting up my AM8. Will this work?

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    2
    3
    655
    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.
    • Pierre52undefined
      Pierre52
      last edited by

      I would like to add a strip of RGB LEDs (12v common anode) to the frame of my AM8 (Duet Wifi) so that I can see what is happening to in progress prints. I would also like to change the colour of the LEDs at various stages such as Bed heating (Red) Printing (White) and Print complete (Blue).

      I plan on using a ULN 2803 Darlington array and a separate 12v dc power supply as an interface between the Duet board and the LED strip as per the attached schematic:
      0_1537848144011_LED Diagram.jpg

      I plan on using Heater Pins 4, 5 and 6 to switch each of the RGB colours on or off and assume this will require an
      M307 H# A-1 C-1 D-1 command in Config.H for each of the 3 pins.

      I have seen examples of people using an M42 command to turn the various LEDs on/off in the Start and End G-code in Cura but I am unsure of how to achieve a change from Red to White when the Bed and Hot End reach temperature and the print begins.
      So (noting that my electronics expertise is somewhat limited) some questions:

      1. Is there a smarter way of achieving this with the Duet WiFi board?
      2. Should the M42 commands belong in Start and End G codes or in a macro in the Duet online monitor?
      3. How do I get the LEDs to change colour when the heaters reach temperature?
      4. Is it wise to issue an M400 command before each series of M42 commands?

      My thanks in anticipation
      Peter

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

        That looks OK to me. I assume your LED strips have the series resistors built in - if they are 12V then they should.

        To get the colour changes, I think the best option is to control the heating yourself in the slicer start GCode script (most slicers let you do this) and put the M42 commands in that script.

        There is no need to use M400 before the M42 commands because M42 uis synchronised to the movement command queue, except in very old firmware.

        HTH David

        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
        • Pierre52undefined
          Pierre52
          last edited by

          Thanks David I will give that a try. Just need to build the board and then test it.

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