The origins of a good 3D print begin with a level bed. Your methods of achieving this are either manually adjusting the bed corner mounts with thumbscrews and screwdrivers, or using ABL. (automatic bed leveling)

ABL relies on Z height readings from hardware that is interpreted by a compatible firmware for the 3D printer, ie no more fiddling with wingnuts and screwdrivers.

While there may be others, I know that Marlin and Skynet3D support ABL using a RC servo deploying a microswitch.

There has been much debate over whether an inductive or capacitive sensor is a better choice and it largely depends on whether you have a glass or metal bed.

A deployed microswitch doesn't care what the bed material is made of and there is no risk of it accidentally catching on the print layers.

ZennmasterM has a series of 3 videos on ABL using the rc servo method and even though its 3 years old, its definitely worth a watch.

Setting up ABL with ZennmasterM

I'm going to be diving into the business end of the hardware in a search for better resolution.

Step 1: Lineup of the Suspects

While rummaging around my parts boxes, I collected a range of lever style switches from mini to sub-micro.

  1. The first one was a large 30mm 2A 250V AC model with a lever and it was entirely unsuitable due to its blade spring action.
  2. The 2nd was a molded NC (normally closed) only version with a nice smooth action which provided some useful insights.
  3. The 3rd was an old endstop from a 1980's telex machine that I rescued from the bin for parts.
  4. Lastly, I bought a few sub-micro switches from a local electronics shop to use as endstops on another project and I thought these would do the trick.

It occurred to me that the plunger on all of the switches acts on some sort of a spring to provide a fast snapping action for positive electrical contact.

However, for use as a Z probe, we are only concerned with a "break" of a normally closed contact to inform us that the bed has been probed.

I figured that by moving the plunger closer to the contact point, it would make for a more mechanical break than a spring loaded one, ie finer resolution with repeatability.

<p>The problem you are going to run into with all mechanical switches is something called, &quot;contact bounce&quot;. Which is switch contacts rapidly opening, and closing, as they make, and break contact. Humans cannot perceive it, but digital electronics interpret is as what it is, the switch opening, and closing many times. Which can cause unwanted signal generation. There are circuits that eliminate this, called, &quot;de-bouncing circuits&quot;. They basically latch on the first make, break, and maintain the state of the signal, as opposed to letting the switch send all of those make, and break signals. Some software &quot;de-bounces&quot; switches too, but it is done through time delay. That can reduce sensitivity.</p><p>In any event it is a subject you should investigate further yourself if your goal is reliable switching. Which reading your article appears to be the case to me. Certain pursuits just land you in arcane territories. What you're up to now is one of those times too. As switch bounce normally is not an issue for people. But with machines it is another matter entirely.</p><p>A quality mechanical switch is a good start, but to go the whole route you have to electronically filter switches too. I was first exposed to the concept myself in a book called, &quot;The TTL Cookbook&quot; by Don Lancaster. But I've run into the topic other places as well. There's information available about it. Circuits like &quot;electronic dice&quot; rely on switch bounce to generate random output. It's that bad. What you want seems to be a more controlled output though?</p><p>I just figured I'd mention it in passing. Good luck.</p>
<p>IMO its more a side dish of the make cycle, than the break cycle that I'll be using.</p><p>Thomas Salanderer did a sensor shootout and recorded a standard deviation of less than 3 microns.</p><p>He didn't dwell on the microswitch as much as the BLtouch, however his chart shows the microswitch as a better performer.</p><p>Bear in mind that he is using an unmodified switch, so I'm betting my modified version will be better performance.</p><p><a href="https://www.youtube.com/watch?v=il9bNWn66BY">https://www.youtube.com/watch?v=il9bNWn66BY</a> @11:37</p>
cool! welcome to instructables!

About This Instructable




Bio: general bloke type of tinkering
More by petercd:Hack a microswitch for better 3D prints. (ABL) Laser center finder. (drill press and mill) Make a Custom Box mod (e-cig) 
Add instructable to: