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

    PWM INPUT PIN

    Scheduled Pinned Locked Moved
    General Discussion
    3
    7
    237
    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.
    • Marco Bonaundefined
      Marco Bona
      last edited by

      Hi everyone, I need to connect some overtravel sensors to an external Arduino board in order to send the signal to a single pin as there are no more ports available on the 6HC board and I don't want to buy another expansion board. The idea is to send a signal from the Arduino to the 6HC board in order to activate the emergency when the overtravel sensors are activated.
      I wanted to understand if it is possible to manage the signal with different frequencies in order to display a warning message with the axis in error based on the frequency sent by Arduino.
      I do the same thing on output using the PWM port of the 6HC board but I couldn't find any help in the documentation.
      The only thing that comes to mind is to create an additional Z probe in order to collect the signal, then with a macro I generate the warning based on the value of the signal. Do you think this is possible?

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

        @Marco-Bona the firmware doesn't have a facility to read and decode a PWM signal.

        Are you really using all the pins on the 6HC, including the four temperature daughterboard CS pins, all the IO_IN and IO_OUT pins and the fan tacho pins?

        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

        Marco Bonaundefined 1 Reply Last reply Reply Quote 0
        • Marco Bonaundefined
          Marco Bona @dc42
          last edited by

          @dc42 No, I'm just using all the IO_IN pin and the CS pins are occupied by the accelerometer.

          T3P3Tonyundefined dc42undefined 2 Replies Last reply Reply Quote 0
          • T3P3Tonyundefined
            T3P3Tony administrators @Marco Bona
            last edited by

            @Marco-Bona so wy can you not connect the overtravel sensors to IO_1,2,3 on the 6HC?

            www.duet3d.com

            Marco Bonaundefined 1 Reply Last reply Reply Quote 0
            • Marco Bonaundefined
              Marco Bona @T3P3Tony
              last edited by

              @T3P3Tony because they are occupied by the limit switch sensors.
              I would like to add additional overtravel sensors but I only have one input available and I wouldn't want to buy an expansion card just to manage a couple more inputs.
              Having said this, I send a single signal from Arduino in order to activate the emergency without using PWMs to identify the error. That's how it should work.

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

                @Marco-Bona you can use IO_OUT pins as digital inputs too, just be careful because they don't have over-voltage protection.

                The accelerometer only uses 2 of the 4 CS pins on the daughterboard connector. You can use the remaining 2 as inputs; but again they don't have any over-voltage protection.

                The tacho inputs on three of the OUT ports can also be used as inputs, and they do have protection.

                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

                Marco Bonaundefined 1 Reply Last reply Reply Quote 0
                • Marco Bonaundefined
                  Marco Bona @dc42
                  last edited by

                  @dc42 thanks, I hadn't thought of this option.

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