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

    Configure GPIO input on Toolboard

    Scheduled Pinned Locked Moved
    Gcode meta commands
    object model gpio toolboard
    2
    4
    441
    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.
    • niocio01undefined
      niocio01
      last edited by

      I'm trying to hook up Toolboard docked detection using the microswitch on the Toolboard (v1.1)

      I've set it up my first tool as CAN address 100.
      I can see the sync LED blinking as it's suppose to, and I can read the temperature.
      So, connection issues shouldn't be the problem here.

      I'm Trying to hook the endstop input to a IO slot to read it out later.

      in the config.g I have:

      M950 J1 C"^100.io3.in"
      

      As per my understanding I should be able to see the state change in the object model plugin under sensors->gpIn->1->value.
      This is constantly '1'.
      objectModelPluginView.PNG

      This parameters in the disappears form the object model plugin, when I comment out the config line, So it must have something to do with it...

      Any pointers in what I'm doing wrong, or how I could make this easier/better?

      alankilianundefined 1 Reply Last reply Reply Quote 0
      • alankilianundefined
        alankilian @niocio01
        last edited by

        @niocio01

        How do you have the microswitch hooked up?

        SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

        niocio01undefined 1 Reply Last reply Reply Quote 0
        • niocio01undefined
          niocio01 @alankilian
          last edited by

          @alankilian I've soldered it to the designated pins on the Toolboard (IO3).

          But your input was probably enough to solve this issue. I use the switch fliped on its Head (sensor arm pointing down) so the common pin on the switch is now connected to NC.
          Off course that's not gonna work.🙄

          Nothing a bridging wire can't solve...
          I will report back in the evening.

          Thanks for the input.

          1 Reply Last reply Reply Quote 1
          • niocio01undefined
            niocio01
            last edited by

            Allright, bridging the Top Pin (NC on the PCB) to the bottom one (io3.in) did the trick.

            I had to invert the signal but other than that no changes were necessary on my firmware configuration.

            For future reference and anyone who is trying to do something similar:

            M950 J1 C"!^100.io3.in"  ; Tool1 docking detection GPIO setup
            

            Is the command I use now.

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