collapse

Author Topic: MKS GEN L Servo Issue  (Read 5190 times)

huwmcgregor

  • Member
  • ****
  • h
  • Posts: 4
MKS GEN L Servo Issue
« on: March 02, 2018, 11:39:51 AM »
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

Smashley

  • Member
  • *
  • Posts: 68
Re: MKS GEN L Servo Issue
« Reply #1 on: March 02, 2018, 01:30:03 PM »
Based on the sanity check error it looks like it is not recognizing that one of the ABL options is selected.

From your pasted values, "#define Z_ENDSTOP_SERVO_NR_0"  seems wrong.. should be "#define Z_ENDSTOP_SERVO_NR 0"? (no underscore before the zero)

huwmcgregor

  • Member
  • ****
  • h
  • Posts: 4
Re: MKS GEN L Servo Issue
« Reply #2 on: March 03, 2018, 06:13:05 AM »
Thats great thanks for your help Smashley, The arm deployed this time, but didn't go back with the M402 code.


huwmcgregor

  • Member
  • ****
  • h
  • Posts: 4
Re: MKS GEN L Servo Issue
« Reply #3 on: March 05, 2018, 05:14:39 PM »
Im still having a bit of an issue with this servo not going back in with M402. Its deploying ok with M401. Anyone ever come across this issue? Im wondering if its the board?

Ive tested the pin and there is no signal comping out when M402 is sent. Debugging shows that M 402 is being sent to the board. Very confusing!

Smashley

  • Member
  • *
  • Posts: 68
Re: MKS GEN L Servo Issue
« Reply #4 on: March 05, 2018, 05:59:36 PM »
Sorry, my printer doesn't use a servo so I'm not sure. My googles suggest you have an open ticket with the folks on the Marlin side? I'd wait to see what they say before changing anything.

jinx

  • calling from free Europe
  • Moderator
  • Sr. Member
  • *****
  • Posts: 469
Re: MKS GEN L Servo Issue
« Reply #5 on: March 06, 2018, 03:58:34 AM »
I've not got the answer!. never used servo either  :-\BUT
when we declare the mks_base the pin.h goes on to refer to RAMPS.h, the ramps  does have issues with servo..  think I start with enabling all servo's and test each one "little reading if you not already http://forums.reprap.org/read.php?415,610621. and this http://forums.reprap.org/read.php?219,599896 seems the last comment solved it for the ramps!. Am hoping that switching headers will sort it.  " you working with the latest marlin or something supplied on an SD card? well worth keeping on top of the latest marlin release, just backup everything"

 what happens if you manually send servo commands over serial 
servo control  M280 P0 S0 then servo control  M280 P0 S70... then move the servo over to P1 do it again. " be sure to power off when unplugging anything".

Quote
Im still having a bit of an issue with this servo not going back in with M402. Its deploying ok with M401. Anyone ever come across this issue? Im wondering if its the board?
am reading  :o but is m402 the start of the bed probing routine and does it complete that? else it could just be hanging around waiting...



       
see where the servo lead connected to the second set of pins.

then in marlin
Code: [Select]
#define Z_ENDSTOP_SERVO_NR 1   // Defaults to SERVO 0 connector.
#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
towards the bottom  of config.h line #1590
Code: [Select]
#define NUM_SERVOS 3 // Servo index starts with 0 for M280 command
servo responds as expected with M280 P1 S70-S0
« Last Edit: March 06, 2018, 08:51:31 AM by jinx »
I build bots

cmptrguy1

  • Member
  • ****
  • c
  • Posts: 1
Re: MKS GEN L Servo Issue
« Reply #6 on: March 14, 2019, 01:18:28 AM »
 :)
This save my butt.  Thanks
Seems this Servo0 problem still exists on the MKS Gen L and Marlin 1.1.9 bug fix 1.
Beat myself up wondering why no signal was being sent.
Set #define NUM_SERVOS 3 and then set the
#define Z_PROBE_SERVO_NR 1

And Presto the Dang BLTouch started working perfectly
Thanks for pointing me in the correct direction wish I found it 3 days earlier

Reywas

  • Member
  • ****
  • R
  • Posts: 4
Re: MKS GEN L Servo Issue
« Reply #7 on: April 22, 2019, 09:10:08 PM »
I did not have any issue using Servo0 (Marlin 1.1.9 bugfix, MKS GEN L board) for .  I did have a problem when enabling the DEACTIVATE_SERVOS_AFTER_MOVE and the symptoms were exactly like those described in the above post.  It took me two days to figure out that my Servo_Delay of 100mS (recommended by a post in another forum) was too short for the servo I was using (same servo cmptrguy1 is using).   

 

* Search


* Recent Topics

"1984 Nixie Time" by Gareth
[August 22, 2019, 05:59:29 AM]


Just wanted to say Hi. by ErwinCanto
[August 18, 2019, 10:11:28 PM]


SDR (Software Defined Radio) by Gareth
[August 14, 2019, 01:12:21 PM]


It may be dangerous to work in the virtual realm by fritsl
[August 09, 2019, 09:52:05 AM]


PLX-DAQ by AmandaG
[August 06, 2019, 01:58:42 PM]


DIY Yellow Servo by AmandaG
[August 06, 2019, 01:08:09 PM]


Comp? :o by Impala
[August 02, 2019, 07:32:20 PM]


Website to do list by Killer Angel
[August 02, 2019, 05:38:30 AM]


I Like the new front page! by James
[July 31, 2019, 12:29:53 AM]


Pictures on the front page! by tinhead
[July 30, 2019, 05:17:20 AM]


4x5 Macro Keypad by James
[July 28, 2019, 08:30:41 PM]


My name is Frits and I am Making a Game called TIXITAXI by Killer Angel
[July 08, 2019, 04:01:58 AM]


Coding a Nano i2c Slave by AmandaG
[June 11, 2019, 02:48:03 PM]


repetierHost 2.1.6 not working? by MEgg
[June 09, 2019, 03:11:34 PM]


Servo Calibrator by Bajdi
[May 24, 2019, 04:01:10 AM]

* Recent Posts

Re: "1984 Nixie Time" - Update 20190822 by Gareth
[August 22, 2019, 05:59:29 AM]


Re: "1984 Nixie Time" - Update by Gareth
[August 20, 2019, 11:15:36 AM]


Re: "1984 Nixie Time" by Bajdi
[August 20, 2019, 09:35:39 AM]


Just wanted to say Hi. by ErwinCanto
[August 18, 2019, 10:11:28 PM]


Re: "1984 Nixie Time" by viswesh
[August 18, 2019, 01:48:07 AM]


Re: "1984 Nixie Time" by James
[August 16, 2019, 06:37:11 AM]


"1984 Nixie Time" by Gareth
[August 15, 2019, 06:16:37 AM]


Re: SDR (Software Defined Radio) by Gareth
[August 14, 2019, 01:12:21 PM]


Re: SDR (Software Defined Radio) by fritsl
[August 09, 2019, 09:54:11 AM]


It may be dangerous to work in the virtual realm by fritsl
[August 09, 2019, 09:52:05 AM]


Re: PLX-DAQ by AmandaG
[August 06, 2019, 01:58:42 PM]


Re: DIY Yellow Servo by AmandaG
[August 06, 2019, 01:08:09 PM]


SDR (Software Defined Radio) by Gareth
[August 06, 2019, 11:12:09 AM]


Comp? :o by Impala
[August 02, 2019, 07:32:20 PM]


Re: Website to do list by Killer Angel
[August 02, 2019, 05:38:30 AM]