Navigation

    Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Weird issue PanelDue. I think it has a bad SB diode. Ideas?

    PanelDue
    3
    23
    1966
    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.
    • dc42
      dc42 administrators last edited by

      I plan to release a new PanelDue firmware beta tomorrow, so please try that one. I suspect that the issue you are seeing is caused by a firmware bug.

      PanelDue doesn't always see the "Starting up" state of the Duet when it connects.

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

        Hi David. So this time I connected 4 probes.

        Probe 0 @ PanelDue CONN_SD Din (was easy to connect probe here)
        Probe 1 @ PanelDue CONN_SD Dout (same as above)
        Probe 2 @ DuetWiFi CONN_SD Pin10 - UTXD0 (aka Din of Panel)
        Probe 3 @ DuetWiFi CONN_SD Pin09 - URXD0 (aka Dout of Panel)

        Upon cold boot, first communication started at 1.32s and was from panel. ~7.7ms later, Duet responded.. and they then communicated back and forth every 1s. First framing error occurred 52.8 seconds from power-on. After that framing errors were prevalent every second or so. Framing errors only showed on probe 0 & 3 which are the Dout. So from my standpoint data is corrupt before it reaches the SAM chip on the DuetWiFi board.

        I have 2 good data captures with Saleae Logic. 1st one is 4MB and 2nd one is 13MB. First session shows everything working as expected up until that 52.8s point. If you want, I can send you the files. Download of Saleae Logic is free and will work in simulation mode if you don't have the analzer probe, however you can open the capture data files and check out the data yourself.

        So IMHO I think the culprit is either that SB Diode or the SAM chip on the PanelDue board. I'm out of time now, but I could put older firmware back on the boards to see if something in new firmware is causing this. PM me if you would like for me to email or upload those capture files.

        Also, I have an order of SB Diodes arriving tomorrow, so I intend on doing a replacement sometime tomorrow.

        Best regards,
        Drew

        1 Reply Last reply Reply Quote 0
        • ddt154
          ddt154 last edited by

          Ah - just saw your last post. Will hold off on the SB diode replacement until I try out your new beta code.

          Many thanks!
          -Drew

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

            A framing error suggests to me that the ATSAM is no longer transmitting correctly. Assuming you have set your logic analyser to the correct parameters (57600 baud, 1 stop bit, no parity bit) that suggests to me a firmware error or a faulty microcontroller.

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

              Probe settings confirmed. 57600, 1 stop bit, no parity. Also- you had asked what screen size I had. That would be 4.3".

              I am thinking it's a bad chip and not firmware. But- It may be a "it depends". Some SAM chips have one HW SPI port whereas others may need to be setup as SW. idk.. just thinking aloud.

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

                If you are brave, you can try the binary here: https://www.dropbox.com/s/ya3s46660yxvl1t/PanelDue-v3-4.3.bin?dl=0. I haven't tested it, but the 5" build from the same source code seems to work properly so far.

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

                  AH- that's not brave! Brave is what may come next.. SMD rework 🙂 I did try that binary and still a no-go 😞 . Going to try that SB Diode next and if that doesn't fix it.. then I'll order a few ATSAM4S4BA chips and.. see how it goes.

                  Keep you posted.
                  -dt

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

                    What happened when you tried the new binary: did it not work at all, or work but had the same issue?

                    The PanelDue board will work without that diode present. Its main purpose is to provide compatibility with 5V systems by limiting the voltage that can appear on the pins of the ATSAM.

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

                      I figured it was for that. Hmm.. I could setup some of those probes of Logic Analyzer to Analog mode an analyze voltage. Ah - I just checked the DuetWiFi. It doesn't have any protection. The DuetWiFi's URXD0 and UTXD0 pins plugs directly to pin 75 and 66 of the ATSAM4E8E. So in theory.. I could remote the diode and the 2.2K resistors on the PanelDue board. I just have to bridge over where the resistors were.

                      1 Reply Last reply Reply Quote 0
                      • ddt154
                        ddt154 last edited by

                        David - truly puzzling. I left the display disconnected for several days as I worked on other parts of the build. Today I reconnected it for cable length sizing, etc.. and it just works. Typically it would stop working after coming up on a minute of start-up, however it has been on for at least 10 mins and counting. For the record - running v1.21RC1 on DuetWiFi and 1.20b2 on DuePanel.

                        I'm trading in my CmpEn/Sci degree and going back for a degree voodoo/witch doctor.

                        -dt

                        1 Reply Last reply Reply Quote 0
                        • garyd9
                          garyd9 last edited by

                          @ddt154:

                          I'm trading in my CmpEn/Sci degree and going back for a degree voodoo/witch doctor.

                          Many would say they are already one and the same.

                          "I'm not saying that you are wrong - I'm just trying to fit it into my real world simulated experience."

                          1 Reply Last reply Reply Quote 0
                          • ddt154
                            ddt154 last edited by

                            LOL disregard. Stopped working a second ago.

                            It apparently just does not like me and is messing with me.

                            Will keep you updated. Should be received new PanelDue board in a week.

                            -dt

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

                              If the framing errors are on the PanelDue data out pin, then likely causes are:

                              1. Intermittent short between that data out pin and something else, in the cable or at the Duet;

                              2. The pin on the MCU that generates data out is not properly soldered down to the pad, or has a minute solder bridge to an adjacent pin.

                              I guess there is also the possibility of the crystal oscillator on the PanelDue not running smoothly.

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

                                interesting - I discovered panel can receive data from Duet. Using WiFi/Web interface I did a print and noticed on the panel that it is getting print status. Ie Temperature readings. But yet on the Panel, it shows I have 4x extruders, but on DuetWiFi.. it is programmed for 1. I'm going to hit the pins with soldering iron.. We'll see if that makes a difference.

                                -dt

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

                                  Another way to test data reception by the Duet is to use M117 or M300 commands.

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

                                    Status Update: fixed

                                    So hit the R4 and R5 2k2 resistors, D3 sb diode, and output pins with soldering iron. Worked for awhile and then stopped transmitting again, like before. I then removed these resistors and diode and then bridged over where the 2k2 resistors were and voila, PanelDue is working.

                                    So I tested the 2k2 resistors and they are ok, however SB diode seems to be the culprit in this case.

                                    I'll keep you posted if this arises again.
                                    Many thanks for your help
                                    -Drew

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