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

3.3V Logic for 5V Servomotor Optocouplers

Scheduled Pinned Locked Moved
Duet Hardware and wiring
2
6
1.2k
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
    NitroFreak
    last edited by NitroFreak 2 May 2019, 07:16 5 Feb 2019, 07:14

    Hi,

    I am using a 180W Servo for my Y axis.
    Today i tested the setup and ran into a small problem, the Y axis seems to layer shift. It looks like missed steps, but that is impossible. The pulleys are also very solidly mounted.

    alt text
    alt text
    alt text

    This should be a benchy.

    Then i printed a 20x20x60mm tower to avoid "curves" in the gcode, it turned out like this
    alt text
    alt text
    alt text

    Now i am strongly suspecting the optocouplers in the servo are not receiving clean signals.
    I checked the datasheet and they want 5v or 24v, with a High of 3.5v.
    At the moment i am running the servo directly from the board at 3.3v without the expansion board.

    The weird thing is that when i move 100mm in the menu, it moves pretty much bang on 100mm.

    Now, would i need to get the expansion header breakout board which outputs it to 5v?
    Or can i also get one of those level converters?
    https://www.exp-tech.de/module/stromspannung/5410/sparkfun-pegelwandler-bidirektional?gclid=EAIaIQobChMI49eEvOKi4AIVFM53Ch2hSwjDEAQYBCABEgIMM_D_BwE&fbclid=IwAR1Tsu0Aza-6VgJB0Lqm2HQxC1V-anbKJmK7ibih1uIFOxwAeWAseFykFOc

    Thank you
    Max

    1 Reply Last reply Reply Quote 0
    • undefined
      NitroFreak
      last edited by 6 Feb 2019, 01:19

      I have now ordered the expansion board.
      But is it theoretically also possible to hook the servo up to the 5V pin? Or, what would happen if i did that?

      Thank you
      Max

      1 Reply Last reply Reply Quote 0
      • undefined
        dc42 administrators
        last edited by dc42 2 Jul 2019, 10:16 7 Feb 2019, 10:15

        No you mustn't use the 5V pin, you might damage the outputs if you do.

        Did you use M569 with the T parameter to extend the step pulse timing for your servo drives?

        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 7 Feb 2019, 12:16 Reply Quote 0
        • undefined
          NitroFreak @dc42
          last edited by 7 Feb 2019, 12:16

          @dc42
          Yes i did not use the 5V pin.
          Yes i set the pulse timing to a min of 3 microseconds, the manufacturer recommends 2.5 microseconds.
          I have ordered the breakout board just in case the 3.3v are not enough.
          Do you recommend shielded cables or are they not necessary?

          Thank you
          Max

          1 Reply Last reply Reply Quote 0
          • undefined
            dc42 administrators
            last edited by 7 Feb 2019, 12:31

            You don't need to use shielded cables to connect the servo drives.

            Check the DIR to STEP setup time of your servo drives. It may be longer than 3us. That would account for an occasional layer shift.

            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
            • undefined
              NitroFreak
              last edited by 8 Feb 2019, 15:44

              I am pleased to let you know,
              that the Breakout board solved the problem!
              So it seems to have been the optocouplers.
              alt text
              alt text
              The 3 microseconds seems to be enough for my speeds at the moment, i will let you know how it turns out when i push it.

              Thank you
              Max

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