Browse Source

Introduce DEACTIVATE_SERVOS_AFTER_MOVE in Configuration.h

DEACTIVATE_SERVOS_AFTER_MOVE is ought to replace PROBE_SERVO_DEACTIVATION_DELAY.
But it will work on all servo moves, not only the probe servo moves.
AnHardt 10 years ago
parent
commit
40b6edcad7
1 changed files with 11 additions and 0 deletions
  1. 11
    0
      Marlin/Configuration.h

+ 11
- 0
Marlin/Configuration.h View File

774
 //
774
 //
775
 //#define NUM_SERVOS 3 // Servo index starts with 0 for M280 command
775
 //#define NUM_SERVOS 3 // Servo index starts with 0 for M280 command
776
 
776
 
777
+// If DEACTIVATE_SERVOS_AFTER_MOVE is defined, the servos will be turned on only during movement and then turned off to avoid jitter
778
+// SERVO_DEACTIVATION_DELAY is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
779
+// If your servo does not reach the requested position, enlarge the time.
780
+// You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.
781
+//
782
+#define DEACTIVATE_SERVOS_AFTER_MOVE
783
+
784
+#ifdef DEACTIVATE_SERVOS_AFTER_MOVE
785
+  #define SERVO_DEACTIVATION_DELAY 300
786
+#endif
787
+
777
 // Servo Endstops
788
 // Servo Endstops
778
 //
789
 //
779
 // This allows for servo actuated endstops, primary usage is for the Z Axis to eliminate calibration or bed height changes.
790
 // This allows for servo actuated endstops, primary usage is for the Z Axis to eliminate calibration or bed height changes.

Loading…
Cancel
Save