How about use Distance Sensor on your 3D printer

it detects the distance from the nozzle to bed and then adjust Z axis height in real time.

Similar projects worth following
This is a high resolution inductive Bed Distance Sensor, it can measure the distance from bed to nozzle with distance resolution 0.01mm.
there is now no distance sensor used on the 3D printer for it's high price with this high resoluion for example IWFK20Z8704,all the bed level sensor used now on 3D printer is proximity e.g. the BLTouch.


  1. with this sensor the printer can adjust the z axis in real time if the bed plate is not flat in every point,also no need to do probe points before every print.not only the plate not flat itself but also the high and uneven temperature will also cause the plate to expand and contract.

  2. you can do mesh bed leveling like normal proximity sensor but much faster with this sensor, because it's no z axis down and up at every probe you can do more probe points in short time.

 Distance resolution:0.01mm 

 Operating Range:5mm

 Repeatability:+/- 0.005mm

 Communication port: I2C 

 Connection| only 4 wires: GND,5V,I2C_Data,I2C_Clk   


Send gcode M102 to Calibrate, we need to calibrate this sensor before first use or the bed plate have been changed to different materials, Because different metal plates are made of different materials, they may have different electromagnetic properties. normally this process will take about within one minute in 3D printer 

Here is the data diagram of this sensor, we can see that the distance resolution can be 0.005 to 0.01mm below the 5mm

View all 11 project logs

Enjoy this project?



IT-Wizard wrote 06/14/2022 at 07:15 point

I am wondering how you connect this sensor to the printer. Does it need a special port ? Is it only for a certain type/brand of printer ?

  Are you sure? yes | no

mark wrote 06/14/2022 at 07:32 point

this sensor use the I2C, so any board have 2 free gpios can connect to it.

  Are you sure? yes | no

mark wrote 06/14/2022 at 04:00 point

Thank you very much!

  Are you sure? yes | no

Patrick McCreanor wrote 06/10/2022 at 15:20 point

Excellent. I look forward to trying one out.

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates