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.
forM950 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.
-
@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
-
@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 asM950 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
-
@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
-
@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.
@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.
-
@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.
-
@India Make sure you have updated DWC to the same version as the firmware.
Ian