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

    Running neopixels on mini5 sbc

    Scheduled Pinned Locked Moved
    General Discussion
    4
    18
    672
    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.
    • jay_s_ukundefined
      jay_s_uk @carcamerarig
      last edited by

      @carcamerarig well as the limit is current 60, and i doubt it will be increased to 178, you'll have to look at controlling the neopixels with the pi directly.
      of course the next question will be how do you get the commands from one to the other?
      there are a couple of API's available and you may be able to use execonmcode to run some custom code on the pi.

      Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

      carcamerarigundefined 2 Replies Last reply Reply Quote 0
      • carcamerarigundefined
        carcamerarig @jay_s_uk
        last edited by

        @jay_s_uk said in Running neopixels on mini5 sbc:

        @carcamerarig well as the limit is current 60, and i doubt it will be increased to 178, you'll have to look at controlling the neopixels with the pi directly.
        of course the next question will be how do you get the commands from one to the other?
        there are a couple of API's available and you may be able to use execonmcode to run some custom code on the pi.

        Right ok thanks, just for clarity what is defining the limit, memory allocation?
        for now if just use the 60/178 addressable I could choose the 60 i want right? and as long as its the 60 im good? So im thinking I could use 25 each on the Z frames and 10 on the top cross bar for white illumination and then a 60 pixel random pattern of illumination for status lights. That'd work for now I guess until I read up on the API's you suggested.
        What do you think @jay_s_uk?

        1 Reply Last reply Reply Quote 0
        • carcamerarigundefined
          carcamerarig @jay_s_uk
          last edited by

          @jay_s_uk said in Running neopixels on mini5 sbc:

          @carcamerarig well as the limit is current 60, and i doubt it will be increased to 178, you'll have to look at controlling the neopixels with the pi directly.
          of course the next question will be how do you get the commands from one to the other?
          there are a couple of API's available and you may be able to use execonmcode to run some custom code on the pi.

          Who could possibly help me with this execonmcode then?

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

            You mean this?

            https://forum.duet3d.com/topic/13194/dsf-extension-exec-on-mcode-was-shutdown-sbc?_=1615844148559

            Z-Bot CoreXY Build | Thingiverse Profile

            carcamerarigundefined 1 Reply Last reply Reply Quote 0
            • carcamerarigundefined
              carcamerarig @Phaedrux
              last edited by

              @Phaedrux said in Running neopixels on mini5 sbc:

              You mean this?

              https://forum.duet3d.com/topic/13194/dsf-extension-exec-on-mcode-was-shutdown-sbc?_=1615844148559

              Hiya well yes but either method really.
              execonmcode for sending printer states for neopixel to the Pi, pretty sure I can install it on the sbc ok but what i'd have to do afterwards would be a mystery to me, ill need to get or make a library on the Pi I know that much.
              I put 32 pixels on the neo port on the mini earlier but struggled as M150 is bugged in 3.3b2 (@jay_s_uk pointed it out)

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

                The issue is that with Neopixels, you need to send the data to the whole string on one go. Additionally, to avoid tying up the processor for the whole time taken to send the data, the data has to be stored in a buffer so that it can be send by DMA. Each Neopixel in the string needs 24 bits of data, and each bit of data takes up 4 bits of data in the DMA buffer. So 1 Neopixel = 12 bytes of data. I chose to support a string of 60 because that's a full Neopixel ring, and 60 * 12 = 720 bytes of DMA buffer is already quite a lot of memory to use up for this purpose

                You could drive multiple strings of up to 60 Neopixels each with the data inputs connected in parallel.

                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
                • dc42undefined
                  dc42 administrators @carcamerarig
                  last edited by dc42

                  @carcamerarig said in Running neopixels on mini5 sbc:

                  I put 32 pixels on the neo port on the mini earlier but struggled as M150 is bugged in 3.3b2 (@jay_s_uk pointed it out)

                  M150 should work correctly with Neopixels in 3.3b2 if you leave out the X parameter. It won't work with DotStar LEDs, which are only supported on Duet 3.

                  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

                  carcamerarigundefined 1 Reply Last reply Reply Quote 0
                  • carcamerarigundefined
                    carcamerarig @dc42
                    last edited by carcamerarig

                    @dc42 Could you add support for the (RGBW) W component to the FW and increase the DMA buffer to 864 bytes please?

                    Assuming the missing W component is causing this issue:
                    M150 R255 P64 S10
                    https://drive.google.com/file/d/1j5PdbD0kTev6zpldqQvOruVhVltT3sxH/view?usp=sharing

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

                      @carcamerarig said in Running neopixels on mini5 sbc:

                      @dc42 Could you add support for the (RGBW) W component to the FW and increase the DMA buffer to 864 bytes please?

                      Assuming the missing W component is causing this issue:
                      M150 R255 P64 S10
                      https://drive.google.com/file/d/1j5PdbD0kTev6zpldqQvOruVhVltT3sxH/view?usp=sharing

                      Already on the firmware wishlist.

                      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

                      carcamerarigundefined 1 Reply Last reply Reply Quote 0
                      • carcamerarigundefined
                        carcamerarig @dc42
                        last edited by carcamerarig

                        @dc42 said in Running neopixels on mini5 sbc:

                        @carcamerarig said in Running neopixels on mini5 sbc:

                        @dc42 Could you add support for the (RGBW) W component to the FW and increase the DMA buffer to 864 bytes please?

                        Assuming the missing W component is causing this issue:
                        M150 R255 P64 S10
                        https://drive.google.com/file/d/1j5PdbD0kTev6zpldqQvOruVhVltT3sxH/view?usp=sharing

                        Already on the firmware wishlist.

                        Excellent, do you think it'll make 3.3? looks like its been on the to do list for a while.

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

                          RGBW Neopixels are now supported in the 3.3 source code, so release 3.3beta3 will support them.

                          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

                          carcamerarigundefined 1 Reply Last reply Reply Quote 0
                          • carcamerarigundefined
                            carcamerarig @dc42
                            last edited by carcamerarig

                            @dc42 said in Running neopixels on mini5 sbc:

                            RGBW Neopixels are now supported in the 3.3 source code, so release 3.3beta3 will support them.

                            @dc42 That’s great thanks, is increasing the DMA buffer size to 864 bytes likely to happen in 3.3?

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