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

    Problem on io7.in

    Scheduled Pinned Locked Moved
    General Discussion
    3
    16
    440
    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.
    • Tinchusundefined
      Tinchus
      last edited by

      Hi. Im trying to use a normal switch, it is a normallly closed one. I have connected 1 of its pins to GND on IO7, and the other pin to IO7.IN
      Config is:
      M950 J4 C"io7.in"
      M581 P4 T3 S1 R0

      I have triple checked, there in no other J4, P4 or any other ssignment pint to number 4, the same with the P4 assignment.

      I manually activate / deactivate the swich and the board cant detect it. If I unplug the connector FROM the board, the status of the input changes ans it wopuld have been activated (I see it in the object model)

      Ideas about what could be wrong?

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

        @Tinchus something to check then would be the switch with a multimeter to see if you can see it switching ?

        www.duet3d.com

        Tinchusundefined 1 Reply Last reply Reply Quote 0
        • Tinchusundefined
          Tinchus @T3P3Tony
          last edited by Tinchus

          @T3P3Tony checked, it is ok. Looks like it is the board, i checked the same sensor on another board and it worked. I will check again the crimps... but could io7.in be damaged, io7.out works ok, it is just that pin. The one "failing# is a board 1.01, the one working ok is a board 1.02. I read docimentation to check if there is any difference, look like it doesn´t

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

            @Tinchus if the board is seeing the disconnection from the switch on a plug/unplug, that indicates that the input pin is seeing something. A simple switch in NC mode is electrically no different pressing the switch to plugging/unplugging it.

            Please try with IO6 on the same board, obvious changing the config as well.

            www.duet3d.com

            Tinchusundefined 1 Reply Last reply Reply Quote 0
            • Tinchusundefined
              Tinchus @T3P3Tony
              last edited by

              @T3P3Tony thnaks for the quick answer. Changed to io6.in and it is working, unplugging the switch on i7.in shown no change on the object model value (it is showing always a value of "1")
              Anything I can do to check on the board. Everything else on the board is working ok, this one in paricular has been working for 2 years aI think, it is just now that it came yo my mind use io7.in

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

                @Tinchus ahh right, I misread what you said previously, i thought it was detecting the plug/unplug event. Which board is it?

                www.duet3d.com

                Tinchusundefined 2 Replies Last reply Reply Quote 0
                • Tinchusundefined
                  Tinchus @T3P3Tony
                  last edited by

                  @T3P3Tony it is a duet3, version 1.01

                  1 Reply Last reply Reply Quote 0
                  • Tinchusundefined
                    Tinchus @T3P3Tony
                    last edited by Tinchus

                    @T3P3Tony have a surprise jajajaja. Since I dont know what to measure on the board to check if the pin is faulty or not, I tried on another board, this one is a v1.02. This board has the same exact configuration and the sensor BUT io7.in was being used, so in this case I had io5.in free so I connected the sensor there... and it doesnt work, exactly the same failure like with the other board.

                    I modified the config in order to use io7.in... and the sensor works perfect.

                    I go again to the V1.01 board, change config to use io5.in... and works!

                    This is very strange!
                    Update: I have tested a third board, V1.01b, in this one io7.in is also failing

                    Is there any value I can measure on the board or something ??

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

                      @Tinchus with nothing connected to io7 you could measure the voltage between io7_in and ground using a multimeter. It should read 3.3V if the pullup resistor is present.

                      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

                      Tinchusundefined 1 Reply Last reply Reply Quote 0
                      • Tinchusundefined
                        Tinchus @dc42
                        last edited by

                        @dc42 thanks , will chek that . As an alternative: I dont have any other free io.in pin, reading docs says I can have 32 gpin ports. Is that number taking into consideration the use of expansion board or I can transfor and .OUT pin into an .IN pin?

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

                          @Tinchus on the 6HC (but not the Duet 3 Mini) you can use an io.out pin as an input. Use the ^ symbol in the pin name string to enable the pullup resistor.

                          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

                          Tinchusundefined 1 Reply Last reply Reply Quote 0
                          • Tinchusundefined
                            Tinchus @dc42
                            last edited by Tinchus

                            @dc42 thanks, I this this would be the last: if I use ou7.in for a swich and out.out for the other swith, both will share GRND, right. Any problem with that config?

                            In formware would be
                            M950 J4 C"!io7.in"
                            M950 J7 C"^io7.out"

                            With this config something is wrong: I connect both switches and the status on the boject model changes. If I activate (manually) the switches, there is no response. Both switches are NC

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

                              @Tinchus if the switches are NC then you should use "^!io7.out" as the pin name for the second one. You should see the value change in the object model when you press the switches.

                              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

                              Tinchusundefined 2 Replies Last reply Reply Quote 0
                              • Tinchusundefined
                                Tinchus @dc42
                                last edited by

                                This post is deleted!
                                1 Reply Last reply Reply Quote 0
                                • Tinchusundefined
                                  Tinchus @dc42
                                  last edited by

                                  @dc42 Solved. Will check later to see if I can measure what is happening on io7.in and i5.in on those 2 boars, to see if I can measure the values you told me to measure. SHpuld I create a new post or stay here with an update later?

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

                                    @Tinchus I suggest you post an update here because it will relate to the original issue that you posted about.

                                    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