Welcome! Log In Create A New Profile

Advanced

Need to add delay into my Auto Bed Level

Posted by Brotherbrown831 
Need to add delay into my Auto Bed Level
December 24, 2015 04:36PM
I am attempting to swap over to an opto switch plunger design for my auto bed level. I have the code setup and it works with one major issue. When the servo is in the 'up" position the Z-min endstop is obviously triggered. No big deal, when I run a G28 or G29 the servo drops the plunger and the Z axis moves until the plunger trips the opto switch. Here is my issue. when I issue a G28 the servo moves to the lowered position, but marlin reads the opto before the plunger has had time to fall. I need to add a 3-5 millisecond delay between the time the servo actuates to the time marlin reads the switch value.

Any thoughts?


Re: Need to add delay into my Auto Bed Level
December 25, 2015 02:06AM
If you use automatic probe retraction, you could send the servo down a bit , before you do G28/G29 in start code.

Or adjust the probe parking position a bit lower, so the switch won't be triggered but the probe is above the nozzle.
-Olaf
Re: Need to add delay into my Auto Bed Level
December 25, 2015 02:55PM
Turns out this is the very reason for the servo disarm delay. I added 300 milliseconds to the delay and my problem is gone. Its working perfectly..
Sorry, only registered users may post in this forum.

Click here to login