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

Getting Servo Working

Scheduled Pinned Locked Moved
Duet Hardware and wiring
3
5
722
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
    St Taw
    last edited by 10 Jan 2019, 17:17

    0_1547140344325_2019-01-10 17.08.48.jpg
    Working on getting a servo, driven from Duex 5 board.
    Servo is a Tower Pro MG995. Simple hobby servo.

    Using commands

    M307 H7 A-1 C-1 D-1 To disable heater.

    Then tried

    M280 P7 S100 To move servo

    Followed by various S angle.

    However nothing happens. Have scoped the output pin but nothing doing.

    The photo colours are not so good. Its Brown, Red then orange on plug.

    Am I plugged into correct chanel?

    Thanks for any help

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by 11 Jan 2019, 09:31

      1. If you put the M307 H7 command in config.g, check whether there is another M307 H7 command in config-override.g that is overriding it. You can send M307 H7 with no additional parameters to check whether heater 7 is disabled.

      2. Confirm that you have VIN power applied and the Duet's 5V regulator is enabled. A USB power source probably doesn't provide enough current to move a servo.

      HTH David

      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
        fma
        last edited by 11 Jan 2019, 09:39

        I strongly suggest you use a dedicated 5V input power supply, on the 5V EXT connector, as a MG995 can sink a lot of current...

        Frédéric

        1 Reply Last reply Reply Quote 0
        • undefined
          St Taw
          last edited by 11 Jan 2019, 11:01

          The commands I used were in the console.
          I can confirm 5v was on connector. It is all power from a 24V supply. No separate 5V supply.

          Power machine up again this morning and it worked? If I scoped could see pulses and if plugged in servo it moved (as per picture). I had not made any physical changes or programmed changes.

          Using M307 H7 it reported disabled. Thinking this action was causing it to work I reset machine and tried without it and still works. It also works without homing.

          So no real explanation and appologies for wasting time.

          Incidentally where is the H7 if used as a heater? Cannot see it on Duex5 - v0.8 diagram.

          Viv

          1 Reply Last reply Reply Quote 0
          • undefined
            dc42 administrators
            last edited by 11 Jan 2019, 19:32

            H7 heater output is on the 10-way terminal block next to the VIN terminal block. It's labelled E6 on the PCB.

            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 ardenpm referenced this topic 29 Nov 2021, 10:52
            2 out of 5
            • First post
              2/5
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA