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

    Info leds…. it's possible?

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    8
    14
    2.6k
    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.
    • peirofundefined
      peirof
      last edited by

      Hi,

      Ask if this is possible …

      I have a Tevo Little Monster printer, in the original assembly, there are two LEDs that light, one when the bed has reached the temperature and another when the Nozzle reaches the temperature.

      Is there any way to get this or similar with the Duet board?

      1 Reply Last reply Reply Quote 0
      • T3P3Tonyundefined
        T3P3Tony administrators
        last edited by

        Not without adding additional LEDs.to your system. May I ask why you need this?

        www.duet3d.com

        1 Reply Last reply Reply Quote 0
        • DjDemonDundefined
          DjDemonD
          last edited by

          I think its a great idea, simple visual cues to remind people to take certain actions or to quickly be able to assess the status of a machine at a glance are great, would be amazing in a printer farm.

          You could have

          Red Bed heated
          Yellow hotend heated
          Green print complete

          In any case you can attach LEDs in various ways (fan headers on Duet or Duex2/5 boards) and use gcode to turn them on/off when you want them to.

          Simon. Precision Piezo Z-Probe Technology
          www.precisionpiezo.co.uk
          PT1000 cartridge sensors NOW IN, just attach to your Duet board directly!

          1 Reply Last reply Reply Quote 0
          • T3P3Tonyundefined
            T3P3Tony administrators
            last edited by

            Yeah i can see why it could be useful in a printfarm type environment especially if you did not want to add a screen to each printer.

            Well spare IO pins can be controlled with the M42 Gcode

            https://duet3d.com/wiki/Using_servos_and_controlling_unused_I/O_pins

            So connecting a small LED +resistor to limit current to one of those pins and then use M42 within a macro or your start gcode/finish gcode to switch the LED on /off.

            www.duet3d.com

            1 Reply Last reply Reply Quote 0
            • peirofundefined
              peirof
              last edited by

              How can know the resistor I must use?

              1 Reply Last reply Reply Quote 0
              • oleeundefined
                olee
                last edited by

                It depends on supply voltage applied to LED and LED's type. If you are going to attach LEDs to FAN headers then Vs = Vin (Duet supply voltage 12V or 24V). For LED you need forward voltage drop Vf and working current Id. Then R = (Vs-Vf)/Id. If voltages is in Volts and currents in mA then R would be in kOhms. Forward voltage drops for LEDs typically are: red - 1.8V, green - 2.2V, blue/white - 3.5V. Working currents are about 10-20mA (the greater current the brighter LED lights). For example, Vs =24V, red LED, Id = 10mA then R = (24-1.8)/10 = ca. 2.2kOhm. You can check how bright LED lights simply connecting it in series with choosen resistor directly to board power supply. HTH

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

                  If you are using a spare I/O pin on the expansion connector, then connect the LED with series resistor between the pin and ground. The voltage will be 3.3V, so base your resistor value on that. You won't be able to get more than about 4mA from the output.

                  If you have any spare fan and/or heater outputs on the Duet, you can use those, and the voltage will be VIN (12V or 24V).

                  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
                  • Phil_AEundefined
                    Phil_AE
                    last edited by

                    when using LED stripes they are controlled with ground (+12V, R, G, B)

                    are there any pins i can use to switch ground on/off with a G command?
                    I have the duetwifi+duet5x

                    as i under stand i have to use

                    M106 P3 I-1 ; disable Fan on duet5x
                    M106 P4 I-1 ; disable Fan on duet5x
                    M106 P5 I-1 ; disable Fan on duet5x

                    does it switches ground to or just the + pin?

                    regards

                    Phil

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

                      @phil_ae said in Info leds…. it's possible?:

                      when using LED stripes they are controlled with ground (+12V, R, G, B)

                      are there any pins i can use to switch ground on/off with a G command?
                      I have the duetwifi+duet5x

                      as i under stand i have to use

                      M106 P3 I-1 ; disable Fan on duet5x
                      M106 P4 I-1 ; disable Fan on duet5x
                      M106 P5 I-1 ; disable Fan on duet5x

                      does it switches ground to or just the + pin?

                      regards

                      Phil

                      That's correct. The FAN- pin is switched to ground.

                      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
                      • Phil_AEundefined
                        Phil_AE
                        last edited by

                        thank you have it working, switching on/off the colors using M106 Px I1 or i0,
                        added some lines to the code in cura to turn on all colors when start printing und turn off blue and red when finished (green light indicated print finished)

                        but i am looking for initial heating but cant find it in the config.g over the system editor.

                        can you tell me where to find the code for the initial heating?

                        thank you

                        Philipp

                        1 Reply Last reply Reply Quote 0
                        • BenDieselundefined
                          BenDiesel
                          last edited by

                          How about rgbw neopixel? Is that pissable?

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

                            The Neopixel is almost impossible to drive efficiently because the processor can't do anything else while the data is being sent. The DotStar is a better option because it uses standard SPI protocol.

                            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

                            jmlundefined 1 Reply Last reply Reply Quote 0
                            • jmlundefined
                              jml @dc42
                              last edited by

                              @dc42 Speaking of DotStars, is there support for them yet? (M150)

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

                                @jml said in Info leds…. it's possible?:

                                @dc42 Speaking of DotStars, is there support for them yet? (M150)

                                So far this is only supported on a board that we made for an OEM customer that has a dedicated output connector for these LEDs. It would be possible to support them on the Duet WiFi using the shared SPI channel, but you would need some external hardware (half a 74HCT32 chip, or one 74HCT02 I think) to gate the clock and level shift the signals to 5V.

                                Also bear in mind that a strip of DotStars draws up to 60mA per LED, so if you have more than about 20 then you should use a separate 5V power supply.

                                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
                                • First post
                                  Last post
                                Unless otherwise noted, all forum content is licensed under CC-BY-SA