reprap:anet:a8:improvement:autobedleveling

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
reprap:anet:a8:improvement:autobedleveling [2018/03/17 08:05] skydwellerreprap:anet:a8:improvement:autobedleveling [2021/01/20 02:50] – Updated Soft Endstop info zylean
Line 18: Line 18:
 ^ Sensor name  ^ Type    ^glass bed^Distance^comment^cost^link^voltage^oc^sig*^ ^ Sensor name  ^ Type    ^glass bed^Distance^comment^cost^link^voltage^oc^sig*^
 |ROKO SN04-N|NPN|no|<3mm|the "official" Anet sensor|4-15USD||10-30V(5V)|no| |ROKO SN04-N|NPN|no|<3mm|the "official" Anet sensor|4-15USD||10-30V(5V)|no|
-|tx|NPN|no|<3mm|the "official" Anet sensor|4-15USD||10-30V(5V)|no|+|TRONYX XY-08N|NPN|no|8mm|With Support|[[https://www.aliexpress.com/item/TRONXY-3D-Printer-Auto-Leveling-Sensor-with-Auto-Feature-3D-Touch-Free-shipping/32841886247.html?spm=2114.search0104.3.9.291a3140JZABX2&ws_ab_test=searchweb0_0,searchweb201602_3_10152_10065_10151_10344_10068_10130_10324_10342_10547_10325_10343_10546_10340_10548_10341_10545_10696_10084_10083_10618_10307_5711215_10313_10059_10534_100031_10103_10624_10623_443_10622_5711315_10621_10620_10810_10811_5722415,searchweb201603_2,ppcSwitch_5&algo_expid=4192894e-00f9-4347-9929-ef14e0fdf7c4-1&algo_pvid=4192894e-00f9-4347-9929-ef14e0fdf7c4&transAbTest=ae803_4&priceBeautifyAB=0|12USD]]||6-38V(5V)|no| 
 +|**HallON**|Hall effect|yes|On any surface|With Connector for Anet|[[http://hallon.garage-makezone.eu/|10-16Euro]]|[[https://www.thingiverse.com/thing:2838259|PnP and DIY kits]]|5V|no|no
 |LJ18A3-8-Z/BX | NPN inductive    |no|8mm |[[http://www.ebay.co.uk/itm/192036463186|with connector]]|[[https://www.aliexpress.com/item/Promotion-LJ18A3-8-Z-BX-8mm-Approach-Sensor-NPN-NO-Switch-DC-6-36V/32623086326.html|3USD]]| |6-36V(5V)|no|3.2µm|    |LJ18A3-8-Z/BX | NPN inductive    |no|8mm |[[http://www.ebay.co.uk/itm/192036463186|with connector]]|[[https://www.aliexpress.com/item/Promotion-LJ18A3-8-Z-BX-8mm-Approach-Sensor-NPN-NO-Switch-DC-6-36V/32623086326.html|3USD]]| |6-36V(5V)|no|3.2µm|   
 |**LJ18A3-8-Z/BX-5V** | NPN inductive    |no|8mm ||[[https://aliexpress.com/item/M18-8mm-sensing-DC-5V-NPN-NO-LJ18A3-8-Z-BX-5V-cylinder-inductive-proximity-sensor/32719316657.html|6USD]]| |5V|no|3.0µm|    |**LJ18A3-8-Z/BX-5V** | NPN inductive    |no|8mm ||[[https://aliexpress.com/item/M18-8mm-sensing-DC-5V-NPN-NO-LJ18A3-8-Z-BX-5V-cylinder-inductive-proximity-sensor/32719316657.html|6USD]]| |5V|no|3.0µm|   
 |LJC18A3-H-Z/BX |NPN capacitive|yes|1-10mm||5USD||6-36V||0.6µm@25°C 9@60°C| |LJC18A3-H-Z/BX |NPN capacitive|yes|1-10mm||5USD||6-36V||0.6µm@25°C 9@60°C|
 |LJ12A3-4-Z/BX|NPN Inductive|no|4mm| |2USD||6-36V| |LJ12A3-4-Z/BX|NPN Inductive|no|4mm| |2USD||6-36V|
-|LJ12A3-4-Z/BX-5V|NPN Inductive|no|4mm| |3USD| |5V| +|LJ12A3-4-Z/BX-5V|NPN Inductive|no|4mm| |3USD| |5V|    
-|Pibot| Optical |||||||[[https://www.youtube.com/watch?v=ISOQTDFHyG4|video]]        + 
 +    
  
 If (5V) is mentioned on the sensor, it has been tested that it works on the 5V provided by the Z-switch connector, but officially it need a higher voltage therefore it might not work reliably. See "wiring chapter" to connect it to the 12V power supply. If (5V) is mentioned on the sensor, it has been tested that it works on the 5V provided by the Z-switch connector, but officially it need a higher voltage therefore it might not work reliably. See "wiring chapter" to connect it to the 12V power supply.
Line 54: Line 56:
 | |ROKO SN04-N|A8|http://www.thingiverse.com/thing:1874774|||| | |ROKO SN04-N|A8|http://www.thingiverse.com/thing:1874774||||
 | |ROKO SN04-N/XY-08N|A8|https://www.thingiverse.com/thing:2319403|-21mm|-43mm|| | |ROKO SN04-N/XY-08N|A8|https://www.thingiverse.com/thing:2319403|-21mm|-43mm||
 +| |**HallON A8**|A8 |[[https://www.thingiverse.com/thing:2838259]]|19mm|42mm|
 | |LJC18A3-H-Z/BX|A6| [[http://www.thingiverse.com/thing:1785616|A6]]| | | |LJC18A3-H-Z/BX|A6| [[http://www.thingiverse.com/thing:1785616|A6]]| |
 | |**LJ18A3-8-Z/BX**|A8|[[http://www.thingiverse.com/thing:1911146]]|65mm|-36mm| | |**LJ18A3-8-Z/BX**|A8|[[http://www.thingiverse.com/thing:1911146]]|65mm|-36mm|
 | |**18mm capacitive sensor**|A8|http://www.thingiverse.com/thing:1883473| | |**18mm capacitive sensor**|A8|http://www.thingiverse.com/thing:1883473|
 | |12mm inductive sensor| |http://www.thingiverse.com/thing:1884118| | |12mm inductive sensor| |http://www.thingiverse.com/thing:1884118|
-| | |Bowden A8|http://www.thingiverse.com/thing:1812366|0mm|-35mm| +
-| |Pibot|A8 |http://www.thingiverse.com/thing:1873989|+
 The offset in X,Y, and Z are the values defined in the firmware (In Marlin Configuration.h). The value for X and Y can be quite coarse. Z has to be accurate and has to be adjusted quite accurately. This value you can set also via display (Marlin): Menu->Control-> Motion->Z-Offset. Procedure to get this value: The offset in X,Y, and Z are the values defined in the firmware (In Marlin Configuration.h). The value for X and Y can be quite coarse. Z has to be accurate and has to be adjusted quite accurately. This value you can set also via display (Marlin): Menu->Control-> Motion->Z-Offset. Procedure to get this value:
   - Set a large Z-offset value (i.e. 2mm)   - Set a large Z-offset value (i.e. 2mm)
   - Autohome your printer   - Autohome your printer
   - place a sheet of paper beneath the nozzle (make sure it is clean)   - place a sheet of paper beneath the nozzle (make sure it is clean)
 +  - Go into Prepare -> Move Axis and disable Soft Endstops
   - move Z-axis down by steps of 0.1 until it touches the paper.   - move Z-axis down by steps of 0.1 until it touches the paper.
   - note the Z value (i.e 0.7mm) and subtract it from the initial value (2mm-0.7mm).   - note the Z value (i.e 0.7mm) and subtract it from the initial value (2mm-0.7mm).
   - Set the value as Z-offset (1.3mm)   - Set the value as Z-offset (1.3mm)
 +
 +**HallON** Only Sensor with ready to use predefined firmware, and full project support. 
 +
 +**HallON Youtube channel:** [[https://www.youtube.com/channel/UCdCgbAW-DJVNAqVUW8MlNqA|Installation and user guide]]
  
  
Line 83: Line 90:
 As most sensors need a voltage larger than the 5V provided by the connector there are two options: As most sensors need a voltage larger than the 5V provided by the connector there are two options:
   - Purchase a pre made board:   - Purchase a pre made board:
-       * [[https://www.aliexpress.com/item/1-Channel-Optocoupler-Isolation-Module-Input-12V-No-Din-Rail-Holder-PLC-Processors-80KHz-PC817-EL817/32719957788.html?spm=a2g0s.9042311.0.0.BpOXWJ|OctoCoupler]]+       * [[https://www.aliexpress.com/item/1-Channel-Optocoupler-Isolation-Module-Input-12V-No-Din-Rail-Holder-PLC-Processors-80KHz-PC817-EL817/32719957788.html?spm=a2g0s.9042311.0.0.BpOXWJ|OptoCoupler]]
   - For **5V sensors or for some 6-36V sensors ** use the 5V supply of the connector. Anet and Skynet uses this option for their sensor and it works for the LJ18A3-8-Z/BX. According to some users the low voltage acceptable for the "orange" sensors. But the this might lead to unreliable readings as it is not designed for this voltage.   - For **5V sensors or for some 6-36V sensors ** use the 5V supply of the connector. Anet and Skynet uses this option for their sensor and it works for the LJ18A3-8-Z/BX. According to some users the low voltage acceptable for the "orange" sensors. But the this might lead to unreliable readings as it is not designed for this voltage.
   - If you have an **open collector NPN** sensor (see above) than you may connect the brown wire to the the 12V input of your board and the blue to the ground and finally the black wire to the Z switch (the board should have an internal pull up).   - If you have an **open collector NPN** sensor (see above) than you may connect the brown wire to the the 12V input of your board and the blue to the ground and finally the black wire to the Z switch (the board should have an internal pull up).
   - If you have an sensor **with an internal pull up resistor**(see above) than you may connect the Brown wire to the the 12V input of your board and the blue to the ground. There are the following options:   - If you have an sensor **with an internal pull up resistor**(see above) than you may connect the Brown wire to the the 12V input of your board and the blue to the ground. There are the following options:
     - Than add a resistor between the black(signal) and the blue(ground) wire to reduce the resulting voltage from 12V to 5V. The best way is to test it with different resistors and measure the voltage between the signal(black) and ground (blue). Best to start with is 10k, for me it worked with 5k. Increase the resistance if the voltage is to low, decrease if it is to high. When you found the correct resistor you can connect the signal pin (black) to the signal pin of the z-probe plug as shown on the picture.      - Than add a resistor between the black(signal) and the blue(ground) wire to reduce the resulting voltage from 12V to 5V. The best way is to test it with different resistors and measure the voltage between the signal(black) and ground (blue). Best to start with is 10k, for me it worked with 5k. Increase the resistance if the voltage is to low, decrease if it is to high. When you found the correct resistor you can connect the signal pin (black) to the signal pin of the z-probe plug as shown on the picture. 
-    - The disadvantage of using resistors is that it depends on the power supply voltage and a change of this voltage my damage your printer. This can be avoided by **using diodes see [[https://lookaside.fbsbx.com/file/Sensor_options.pdf?token=AWxGQ7nQAVr_wfL8mndMLMeJyh6yCpGox-gSFE5Tmk3foBDFtKCoLtzxloudIi-tqaAKKCugY7pUu-eq1pGAxd62l3_Uja0RxfVvAAW65AMNjoonT9Uf50f6Kt_wiUA5oyhy18l8dyo-q_Tz5ufEVTZ-duy-QBgHl2BY4c24nxrrAw|here]]**. Method nr. 3 is the recommended one, just be careful with the polarity of the diode.+    - The disadvantage of using resistors is that it depends on the power supply voltage and a change of this voltage my damage your printer. This can be avoided by **using a diode**. Assuming a typical NPN normally-open (NO) sensor, connections can be made as in the schematic below (be careful with the polarity of the diode). See Method 3 [[https://github.com/thijsk/Skynet3d/blob/master/Documentation/diagrams%20and%20images/Sensor_options.pdf|here]] and [[https://mertarauh.com/2017/01/18/dont-trust-the-internet-and-how-to-add-an-inductive-proximity-sensor-to-your-3d-printer-the-proper-and-easiest-way|this post]] for more details. 
 +      {{:reprap:anet:a8:improvement:a8_diode_sensor_12v.png?400|}}
   - Some tutorials recommend to use **two resistors**. But this is **only for PNP-sensors and for high-active inputs**. In our case this would lead to errors. When the sensor switches to 0V and the Atmega internal pull up is activated there would be about 2,5V on the signal pin which is not recognized as low by the AVR.   - Some tutorials recommend to use **two resistors**. But this is **only for PNP-sensors and for high-active inputs**. In our case this would lead to errors. When the sensor switches to 0V and the Atmega internal pull up is activated there would be about 2,5V on the signal pin which is not recognized as low by the AVR.
   - last but not least there is the universal/safe way for your NPN-Sensor. Putting the optocoupler in:    - last but not least there is the universal/safe way for your NPN-Sensor. Putting the optocoupler in: 
Line 138: Line 146:
 In the case that the sensor is outside of the plate after homing the Y and X axis, use Z safe homing (applies if you are using a sensor support with a negative Y-offset: In the case that the sensor is outside of the plate after homing the Y and X axis, use Z safe homing (applies if you are using a sensor support with a negative Y-offset:
     #define Z_SAFE_HOMING     #define Z_SAFE_HOMING
 +    
 +Enable the Soft Endstops option in the menu by uncommenting:
 +    #define SOFT_ENDSTOPS_MENU_ITEM
  
 ===== Slicer settings ===== ===== Slicer settings =====
Line 145: Line 156:
 ==== Gcode (only needed if there is no configuration file available for download) ==== ==== Gcode (only needed if there is no configuration file available for download) ====
 === Auto home === === Auto home ===
-Before homing of the Z axis the probe has to be positioned above the heat bed. When the code G28 is send to the printer this is done automatically. But if "G28 Z" is send it is not. This is the case for some Cura 2.1 json files.+Before homing of the Z axis the probe has to be positioned above the heat bed. When the code G28 is sent to the printer this is done automatically. But if "G28 Z" is sent it is not. This is the case for some Cura 2.1 json files.
 === Auto level === === Auto level ===
 The G code G29 starts the autolevel procedure. It should be executed after the G28 command The G code G29 starts the autolevel procedure. It should be executed after the G28 command
Line 163: Line 174:
 {{ :reprap:anet:a8:improvement:flattness_of_aluminium_hb.png?direct&500 |}} {{ :reprap:anet:a8:improvement:flattness_of_aluminium_hb.png?direct&500 |}}
 A online tool can be found [[http://www.maui-3d.com/cgi-bin/plotG29|here]] (send G-code "G29 T P7 V4" to your printer to get the output) A online tool can be found [[http://www.maui-3d.com/cgi-bin/plotG29|here]] (send G-code "G29 T P7 V4" to your printer to get the output)
 +
 +Only works with at least a 7x7 Matrix! If you use a smaller matrix, use the link below
  
 Another, more interactive online tool can be found [[http://lokspace.eu/3d-printer-auto-bed-leveling-mesh-visualizer/|here]] - paste the same output as above. Another, more interactive online tool can be found [[http://lokspace.eu/3d-printer-auto-bed-leveling-mesh-visualizer/|here]] - paste the same output as above.
Line 234: Line 247:
 For ABL to work correctly it is **essential** that the printer knows the exact offset from the nozzle to the probe, otherwise any correction is not going to be applied in the right place, and it may look like the printer isn't correcting at all. For ABL to work correctly it is **essential** that the printer knows the exact offset from the nozzle to the probe, otherwise any correction is not going to be applied in the right place, and it may look like the printer isn't correcting at all.
  
-If you downloaded SkyNet3D and used one of the example configurations, it probably came with some pre-configured probe offsets and a recommended sensor mount for you to print.  It is absolutely vital that you check the sensor offsets once your probe is installed, and update the values in configuration.h accordingly.  +If you downloaded SkyNet3D (now obsolete) or Marlin Firmware and used one of the example configurations, it probably came with some pre-configured probe offsets and a recommended sensor mount for you to print.  It is absolutely vital that you check the sensor offsets once your probe is installed, and update the values in configuration.h accordingly.  
  
 These are the relevant lines: These are the relevant lines:
Line 260: Line 273:
   - Reset the existing Z-offset to zero <code>M851 Z0</code>   - Reset the existing Z-offset to zero <code>M851 Z0</code>
   - Home all axes <code>G28</code>   - Home all axes <code>G28</code>
-  - Move the nozzle to the middle<code>G1 X110 Y110</code>+  - Move the nozzle to the middle of the bed <code>G1 X110 Y110</code> (if your bed is 220 x 220)
   - Turn off the software endstops with <code>M211 S0</code>   - Turn off the software endstops with <code>M211 S0</code>
   - Move the nozzle down so it is just gripping a piece of standard printer paper   - Move the nozzle down so it is just gripping a piece of standard printer paper
   - Set the Z-offset to the displayed value. E.g. if the printer displays a Z-Value of -1.23 enter <code>M851 Z-1.23</code>   - Set the Z-offset to the displayed value. E.g. if the printer displays a Z-Value of -1.23 enter <code>M851 Z-1.23</code>
-  - Store it to the EEPROM<code>M500</code> +  - Store it to the EEPROM <code>M500</code> 
-  - **Important** Enable the endstops again with <code>M211 S1</code> or the printer head will collide with the bed on the next G28 command+  - **Important notice!** Enable the endstops again with <code>M211 S1</code> or the printer head will collide with the bed on the next <code>G28</code> command
  
  
  • reprap/anet/a8/improvement/autobedleveling.txt
  • Last modified: 2023/11/02 00:35
  • by fdll