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

Duet3 Neopixel Wiring

Scheduled Pinned Locked Moved
Duet Hardware and wiring
8
40
3.3k
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.
  • undefined
    dc42 administrators @QuintBrand
    last edited by 11 Aug 2020, 06:37

    @QuintBrand said in Duet3 Neopixel Wiring:

    Dumb question, but why neopixel if the duet3 supports Dotstar?

    Duet 3 supports Neopixel directly as well now.

    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 1
    • undefined
      nriviera
      last edited by 11 Aug 2020, 09:09

      I think the real advantage of the neopixel system by Claus is that it makes connecting them a bit easier and puts no extra strain on the duet. It's a bit easier to connect to as to do a similar thing with the dotstar port you have to chain them while the neopixel system let's you set up a bunch of separate neopixel units. I have one inside my toolchanger/x gantry for parts lightning and then another 5 for status/bed temp/chamber temp/ and print heads. There's even a modified version that someone did that put all the info onto a bunch of cheap OLED screens using the same system.

      1 Reply Last reply Reply Quote 0
      • undefined
        QuintBrand
        last edited by 11 Aug 2020, 15:10

        Thanks for the replies; I makes neopixel might be best, but both are supported now anyways. That's nice!

        Thx

        1 Reply Last reply Reply Quote 0
        • undefined
          MartinNYHC
          last edited by MartinNYHC 14 Aug 2020, 13:12

          In the meantime I'm thingking about the following: set up the Neopixels with the Arduino as shown in the drawing for Duet 2. Connecting the "data in" pin from the Arduino in parallel to the Paneldue "in pin" to sniff the data which is used by the Ardu9ino sketch to get the current status of the job, bed temp and hotend temp. I see the advantage that I don't need to feed the Neopixels via GCODE. The existing rduino sketch is doing that automatically.

          Would that be an option? Just connected everything, Paneldue is still working, Neopixels are operationak but don't show the current status (which can be the result of the need to adapt the Arduino sketch). So the main question to me is: the Paneldue data connection is serial. What kind of connection is the pin10/utxd0 connector on the Duet 2?

          undefined 1 Reply Last reply 14 Aug 2020, 13:22 Reply Quote 0
          • undefined
            dc42 administrators @MartinNYHC
            last edited by dc42 14 Aug 2020, 13:22

            @MartinNYHC said in Duet3 Neopixel Wiring:

            What kind of connection is the pin10/utxd0 connector on the Duet 2?

            Standard async serial with 3.3V signal levels. Do not feed 5V into the Duet URXD pin (or UTXD).

            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 1
            • undefined
              MartinNYHC
              last edited by 14 Aug 2020, 13:30

              Since it's the same kind of connection the Arduino sketch should work without modifiction. Thanks for the info!

              I don't have any TX connection, just reading the data which is send to the Paneldue.

              1 Reply Last reply Reply Quote 0
              • undefined
                MartinNYHC
                last edited by 18 Aug 2020, 05:38

                I decided to connect the Neopixel to the Duet 3 Dotstart connector. Will write a script that gets the data and controls the Neopixel via software framework. A first version is already running but I need to finish the printer buid first because it's hard to test without running active print jobs 😉

                1 Reply Last reply Reply Quote 0
                • undefined
                  MartinNYHC
                  last edited by 21 Aug 2020, 18:45

                  I think i need some more help.

                  Wired three Neopixel rings (WS2812) to the Dotstar connector:

                  neopixel-duet3.png

                  Doesn't matter what I do,only the first ring is working.

                  For example:

                  M150 X1
                  M150 R255 P128 S20

                  Each ring has 16 LED's. So I would assume that the first 4 LED's of ring two are lighting up.

                  Even if I do a

                  M150 X1
                  M150 R255 P128 S48

                  only the first ring is working.

                  Am I'm doing it totally wrong?

                  undefined 1 Reply Last reply 21 Aug 2020, 18:54 Reply Quote 0
                  • undefined
                    whopping pochard @MartinNYHC
                    last edited by 21 Aug 2020, 18:54

                    @MartinNYHC So in both of these cases, all of the LEDs on the first ring and none of the LEDs on the second ring are lighting?

                    This is very silly, but in your drawing the 5V and GND are flipped on rings two and three relative to one... That's not the case in the actual rings, right?

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      MartinNYHC
                      last edited by 21 Aug 2020, 18:57

                      Yes, exactly. Doens't matter what I do, only the first ring is working.

                      And the 5V GND flip is only an on the drawing 😉

                      undefined 1 Reply Last reply 21 Aug 2020, 18:59 Reply Quote 0
                      • undefined
                        whopping pochard @MartinNYHC
                        last edited by 21 Aug 2020, 18:59

                        @MartinNYHC I only asked because if it was me there would be an at least 50% chance that I wired them backwards. 😛

                        Have you tried swapping which physical ring is first in the series to make sure it's not a hardware problem with the Neopixels?

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          MartinNYHC
                          last edited by 21 Aug 2020, 19:01

                          Haha...to be honest, I just double checked 😛

                          Yes, already did that. All rings seems to be fine.

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            dc42 administrators
                            last edited by 21 Aug 2020, 19:11

                            It sounds like the data out to data in connection is not working. This could be caused by the ground connection between the rings not being good enough.

                            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

                            undefined 1 Reply Last reply 22 Aug 2020, 17:41 Reply Quote 1
                            • undefined
                              MartinNYHC @dc42
                              last edited by 22 Aug 2020, 17:41

                              @dc42 said in Duet3 Neopixel Wiring:

                              It sounds like the data out to data in connection is not working. This could be caused by the ground connection between the rings not being good enough.

                              Re-soldered verything and now it's working 😉

                              I plan to use a Python API module to sniff the data. Or is there any UNIX socket where to get the data from?

                              undefined 1 Reply Last reply 22 Aug 2020, 17:53 Reply Quote 0
                              • undefined
                                dc42 administrators @MartinNYHC
                                last edited by 22 Aug 2020, 17:53

                                @MartinNYHC said in Duet3 Neopixel Wiring:

                                I plan to use a Python API module to sniff the data. Or is there any UNIX socket where to get the data from?

                                Are you running with an attached Raspberry Pi, or in standalone mode? If you have an attached Pi then you can use the Duet Software Framework API.

                                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

                                undefined 1 Reply Last reply 22 Aug 2020, 23:28 Reply Quote 0
                                • undefined
                                  MartinNYHC @dc42
                                  last edited by 22 Aug 2020, 23:28

                                  @dc42 said in Duet3 Neopixel Wiring:

                                  @MartinNYHC said in Duet3 Neopixel Wiring:

                                  I plan to use a Python API module to sniff the data. Or is there any UNIX socket where to get the data from?

                                  Are you running with an attached Raspberry Pi, or in standalone mode? If you have an attached Pi then you can use the Duet Software Framework API.

                                  Yes, that's the plan. Using the framework API on the SBC. Just wanted to know if that's the best way to go.

                                  1 Reply Last reply Reply Quote 0
                                  • undefined
                                    Nuramori @I_Jedi
                                    last edited by 25 Aug 2020, 08:33

                                    @I_Jedi

                                    Sorry about being tardy. Real life has been a real b*tch, and answering questions has been sidelined. I’ll try and get you the revised code I did (because of the particular arduino I was using - adafruit mini) and the wiring. The wiring itself is far simpler than it was for the duet2, and connects to the io0 port. Keep in mind I still use the panel due, which generates the serial traffic, but the new settings that push data should negate the need for the panel due if you are so inclined to ditch it.

                                    undefined 1 Reply Last reply 25 Aug 2020, 18:03 Reply Quote 0
                                    • undefined
                                      I_Jedi @Nuramori
                                      last edited by 25 Aug 2020, 18:03

                                      @Nuramori You are the best! And no worries, take care of life on your end. I'm still screwing around trying to get the printer running after a continuous stream of part tweaking and modifications to fit my non-standard build (hey, it seemed a good idea at the time 🙂 )

                                      1 Reply Last reply Reply Quote 0
                                      • undefined
                                        whopping pochard
                                        last edited by 25 Aug 2020, 18:12

                                        Solid "3D printing to build printers instead of building printers to 3D print" energy in this thread. 😜

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