Welcome! Log In Create A New Profile

Advanced

Auto Bed Levelling with Servo Issue

Posted by huwmcgregor 
Auto Bed Levelling with Servo Issue
March 01, 2018 01:49PM
Hello Everyone )

I'm struggling to get auto bed levelling working correctly, and I'm getting to the limit of what Google info can help me with.
I'm trying to compile marlin Autobed levelling with a servo on my MKS Get L Processor. The problem I have is if I de-comment

#define Z_ENDSTOP_SERVO_NR_0 // Defaults to SERVO 0 connector.
#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles

I get an error:

SanityCheck.h:738: error: #error "Auto Bed Leveling requires one of these: PROBE_MANUALLY, FIX_MOUNTED_PROBE, BLTOUCH, SOLENOID_PROBE, Z_PROBE_ALLEN_KEY, Z_PROBE_SLED, or a Z Servo."
#error "Auto Bed Leveling requires one of these: PROBE_MANUALLY, FIX_MOUNTED_PROBE, BLTOUCH, SOLENOID_PROBE, Z_PROBE_ALLEN_KEY, Z_PROBE_SLED, or a Z Servo."
^
exit status 1
#error "Auto Bed Leveling requires one of these: PROBE_MANUALLY, FIX_MOUNTED_PROBE, BLTOUCH, SOLENOID_PROBE, Z_PROBE_ALLEN_KEY, Z_PROBE_SLED, or a Z Servo."

I'm obviously wanting the servo, do I need to de-comment one of the other options as well?
I can get it to compile if I de-comment:
#define FIX_MOUNTED_PROBE

I have my servo connected to the 1st row of the servos connections
servo 1

D11 = Orange
5v = Red
GND = Brown

When I test with command G401 then the z axis moves up around 500mm then nothing happens.

Help would be much appreciated

Thanks

Huw

Edited 1 time(s). Last edit at 03/02/2018 11:48AM by huwmcgregor.
Re: Auto Bed Levelling with Servo Issue
March 02, 2018 06:18PM
I have the same error. Do you maneged to fix it?
Thanks
Re: Auto Bed Levelling with Servo Issue
March 03, 2018 06:31AM
Yes, someone kindly pointed out that

#define Z_ENDSTOP_SERVO_NR_0

needs to be just 0 without the underscore.

My problem now is that the servo deploys but won't stow again.

Hope this helps you too
Re: Auto Bed Levelling with Servo Issue
October 03, 2018 10:16PM
I think I have the same problem where the servo doesn't stow after G29 but only when printing.
After the leveling is done the servo kind of resets to a random position.
If I do a G28 or G29 alone, the servo stows fine.

Is this your case too?
Sorry, only registered users may post in this forum.

Click here to login