Auto bed leveling with IR Sensor

Hello guys,


I have a question.

I have a "Mini Differential IR height sensor" for my JGAURORA A5S. The wiring is not the problem.

But how can I use the sensor? I have the Marlin 2.0D Firmware and use Cura 4.5.0.

Must I change the start G-Code on Cura with G29 or what is the best way to use a IR Sensor?

I think, the best way is, when the Printer check the Z-high (leveling) for every print.


Auto Leveling is a new project for me and I have no experience with it.

I hope, someone can help me.







  • Samuel PinchesSamuel Pinches Posts: 2,586Administrator
    Mat_kar, can you explain exactly how you have wired it? Are you using the IR sensor to replace the Z endstop (z-min pin) or have you added it to another port (e.g. z-max).
  • Laser8302Laser8302 Posts: 151Member, 🌟 Super Member 🌟
    There are some videos available on the subject but you will need to modify the firmware to do ABL. There are a few types:

    Unified <- I use this one

    You have to set up the number of points, how many times to probe the same point, and a mesh insert to keep the probe inside the bounds of the print area.

    As far as I know, the only leveling that can be stored to EEPROM is unified so you don't have to do a full leveling before each print. I do this one and issue a "G29 J" command before each print. This will cause the printer to probe 3 points around the bed to tilt the measured mesh on the plane of the 3 measured points. I only re-level my bed once in a great while with this method, mostly when I update firmware.
    Thanked by 1Samuel Pinches
  • mat_karmat_kar Posts: 5Member
    @ Sam:
    I want to wire it up as user willxy described. He explained it very good with pictures.

    Thanks for your support and informations.
    I hope, I can make some test next weekend. 

Sign In or Register to comment.