Rambo board, extending and retracting Z probe with servo

edited May 2016 in Extruder & Bed
Can somone please confirm if this is the correct way to
A - set up a servo on a Rambo 1.3 pin 5 (PWM extension)
B - extend and retract the servo before and after z probing? (the PWM values are not important at this point)


#define FEATURE_SERVO 1
#define SERVO0_PIN 5
#define SERVO1_PIN -1
#define SERVO2_PIN -1
#define SERVO3_PIN -1
#define SERVO0_NEUTRAL_POS  -1
#define SERVO1_NEUTRAL_POS  -1

--------------------------------------------------------------


#define Z_PROBE_XY_SPEED 150
#define Z_PROBE_SWITCHING_DISTANCE 1
#define Z_PROBE_REPETITIONS 1
#define Z_PROBE_HEIGHT 40
#define Z_PROBE_START_SCRIPT "M340 P1 S500"
#define Z_PROBE_FINISHED_SCRIPT "M340 P1 S2400"
#define Z_PROBE_REQUIRES_HEATING 0
#define Z_PROBE_MIN_TEMPERATURE 150
#define FEATURE_AUTOLEVEL 1

Comments

  • M34 duration P should be longer. I doubt it just takes one millisecond to position especially knowing that position signal has 50Hz only. Try 300 or 500 and it should work. Rest looks good.
  • I thought P was the servo number?
    Anyway I just got it working by using P0, presumably the first servo is P0?

    Does the Z PROBE START SCRIPT only get run when you start the print?
  • You are right. P0 means servo 0 which you used.

    What I meant is add R300 or R500 so the servo turns off after a while or it drags power and jitters all the time.

    Start/end scripts get run when you do G32 at start and end. It has nothing to do with a print. Autolevel functions run them to activate/deactivate probes. G30 can also do it with P parameter
    P1 = start and measure
    P2 = measure + end
    P3 = start + measure + stop

Sign In or Register to comment.