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

    hobby servo motor

    Scheduled Pinned Locked Moved
    Filament Monitor
    2
    7
    524
    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.
    • Duet_loverundefined
      Duet_lover
      last edited by Duet_lover

      Re: Hobby servo motor.

      I have configured a servo motor with the code

      M950 P0 C"exp.heater6" Q250
      

      Giving command as

      M280 P0 S60
      

      to rotate it 60 degree.

      the code is fine as it working in my other printer with duet2 Wi-Fi. but it is not working in duet2 ethernet board.
      for

      M950 P0 C"exp.heater6" Q250
      

      there was no movement, and for

      M950 P0 C"exp.heater6" Q500
      

      ,there was little movement (Approx 10 degree), but not 60 degree.

      can any one tell me how to fix it.

      droftartsundefined 1 Reply Last reply Reply Quote 0
      • droftartsundefined
        droftarts administrators @Duet_lover
        last edited by

        @India What firmware version? What kind of servo are you connecting? Are the two servos the same? The two codes you showed for the ethernet board are the same. What M280 command are you sending?

        If it is a small hobby servo, most of these expect a PWM frequency of 50Hz. Either set Q50, or define the output as a servo output by using S instead of P, eg:

        M950 S0 C"exp.heater6" ; defined as servo output, default PWM frequency 50Hz
        

        See also https://docs.duet3d.com/User_manual/Connecting_hardware/Motors_servos

        Ian

        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

        Duet_loverundefined 1 Reply Last reply Reply Quote 0
        • Duet_loverundefined
          Duet_lover @droftarts
          last edited by Duet_lover

          @droftarts
          Firmware version: 3.2.0
          Servo motor : Hobby servo motor which has torque capacity of 35 Kg.cm with voltage input of 8.4 volt.

          Are the two servos the same ?
          I am using only one servo for both cases so I can say both servo are same.

          The two codes you showed for the ethernet board are the same
          Actually it is different in term of Q value as

          M950 P0 C"exp.heater6" Q250 ;  working in duet Wi-Fi board 
          
          M950 P0 C"exp.heater6" Q500 ; working in duet with ethernet but not moving to desired position , only small movement was there.
          

          @droftarts said in hobby servo motor:

          What M280 command are you sending?

          I am sending the code to move for 60 degree angle and comeback it its initial position i.e. o degree.

          code is

          M280 P0 S60
          G4 P200
          M280 P0 S0
          
          droftartsundefined 1 Reply Last reply Reply Quote 0
          • droftartsundefined
            droftarts administrators @Duet_lover
            last edited by

            @India Try setting the servo as:

            M950 P0 C"exp.heater6" Q50
            

            or

            M950 S0 C"exp.heater6"
            

            Do you have a link to the servo motor datasheet? I assume you are powering the motor from an external power supply, not the Duet? It will draw too much current from the Duet and may damage it.

            Ian

            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

            Duet_loverundefined 1 Reply Last reply Reply Quote 2
            • Duet_loverundefined
              Duet_lover @droftarts
              last edited by Duet_lover

              @droftarts thank you for your kind response

              @droftarts said in hobby servo motor:

              Do you have a link to the servo motor datasheet?

              Yes sir, Please find it.

              https://robokits.co.in/motors/rc-servo-motor/ultra-torque-metal-gear-35kgcm-coreless-stainless-steel-pinion-standard-servo-motor

              @droftarts said in hobby servo motor:

              I assume you are powering the motor from an external power supply, not the Duet?

              Yes , I am using external power source with common ground. and connection is good as motor is working for duet2 Wi-Fi.

              Duet_loverundefined 1 Reply Last reply Reply Quote 0
              • Duet_loverundefined
                Duet_lover @Duet_lover
                last edited by

                @India
                I have update the firmware to latest version, Now the problem is resolved.
                but i am not able to edit config file as the cursor is not showing , I have checked the my mouse as well as keyboard.

                **Is there is any bug in latest version 3.4.6 ? **
                earlier in old version i am able to edit line as well column in config file.

                if it is then how to resolve this, please guide me for the same

                thanks.

                droftartsundefined 1 Reply Last reply Reply Quote 0
                • droftartsundefined
                  droftarts administrators @Duet_lover
                  last edited by

                  @India Make sure you have updated DWC to the same version as the firmware.

                  Ian

                  Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

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