User Tools

Site Tools


klipper_faq:eddy:bd_sensor

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
klipper_faq:eddy:bd_sensor [2025/01/12 15:37] – [Anschluss am Board] dominikklipper_faq:eddy:bd_sensor [2025/01/12 16:20] (current) – [Hinweise] dominik
Line 7: Line 7:
 \\  \\ 
  
 +===== Hinweise =====
 +Zu Beginn vielleicht ein paar Eindrücke von mir zu dem Sensor:
 +  * Unordered List ItemWenn er einmal eingestellt ist, dann funktioniert der Sensor gut und auch zuverlässig. Ich finde allerdings die Konfiguration schon ziemlich kompliziert. Mir fehlt da in der original Anleitung auch noch etwas der rote Faden. Das ist bei anderen Eddy Sensoren mitunter deutlich besser gelöst. 
 +  * Die Einstellung von second_homing_speed fand ich sehr zeitaufwendig und fehlerträchtig. Hier kann man sich schnell das Druckbett ruinieren (bei mir passiert) oder den Kopf verbiegen. Also hier sehr bedacht vorgehen und immer einen Finger am Ausschalter ... 
 +  * Die Halterung für den StealthBurner mag ich persönlich gar nicht. Die ist in meinen Augen eine Fehlkonstruktion. Man kriegt das nur mit großen Mühen korrekt eingestellt (oder ich hab zu linke Hände ;-) ). 
 +  * Der Umstand das der Sensor I2C nutzt gefällt mir auch nur so semi. Ich denke das macht es für viele User sehr kompliziert weil beim Klipper Kompilieren für das Druckerboard immer an den BD Sensor Code gedacht werden muss. Für einen Nichtentwickler mitunter etwas verwirrend. 
 +  * Mit meinem Spider V1 Board habe ich den Sensor nicht ans Laufen bekommen. Hier kamen immer I2C Fehler (Siehe ganz unten auf dieser Seite). Ich könnte das nur durch einen Board Tausch auf ein Spider H7 lösen. 
 +  * Die Anleitung hier erhebt keinen Anspruch auf Vollständigkeit. Der ganze BDSensor Umbau hat bei mir aus diversen Gründen sicherlich 3 Wochen gedauert. Gut möglich das ich hier nicht mehr alles niederschreiben konnte. Aber ich hoffe das Groh notiert zu haben. 
 +  * Ich hatte auch Probleme mit der Black Print Druckplatte. Oder sagen wir generell mit Druckplatten die eine dickere nicht metallische Oberfläche haben. Der Sensor kam bei mir damit nur selten korrekt zurecht. Erst eine normale strukturierte PEI Platte hat da Abhilfe geschaffen.   
 +  * Grundsätzlich sollte man sich vorher nochmal genau diese Seiten der original Doku ansehen: \\ https://github.com/markniu/Bed_Distance_sensor/wiki/Installing-for-Klipper \\ https://github.com/markniu/Bed_Distance_sensor/wiki/Collision-sensing \\ https://github.com/markniu/Bed_Distance_sensor/wiki/Homing-with-contactless-and-contact-probing-together \\ https://github.com/markniu/Bed_Distance_sensor/wiki/Z-move-or-not-automatically_Z_Tilt_QGL
 ===== Übersicht ===== ===== Übersicht =====
   * https://en.wikipedia.org/wiki/Eddy_current   * https://en.wikipedia.org/wiki/Eddy_current
Line 88: Line 98:
 Ich habe deshalb den Kopf immer auf 0,5mm ca. Richtung Bett gefahren (Nozzle zu Bett Abstand) und dann vorsichtig den Kopf demontiert (im bestromten Zustand). Das ist keine wirklich gute Lösung, aber so bleibt wenigstens der Kopf an der richtigen Stelle stehen.   Ich habe deshalb den Kopf immer auf 0,5mm ca. Richtung Bett gefahren (Nozzle zu Bett Abstand) und dann vorsichtig den Kopf demontiert (im bestromten Zustand). Das ist keine wirklich gute Lösung, aber so bleibt wenigstens der Kopf an der richtigen Stelle stehen.  
 ===== Konfiguration ===== ===== Konfiguration =====
-  * [BDsensor] Sektion +==== BDSensor.cfg ====
-  * Make sure there are [safe_z_home],[bed_mesh], [force_move] in your printer.cfg +
-  * [stepper_z] -> H7 +
-    * endstop_pin              : probe:z_virtual_endstop +
-    * homing_speed             : 8 +
-    * second_homing_speed      : 1.4  #set this to 3 if homing with collision +
-    * homing_retract_speed     : 2 +
-    * homing_retract_dist      : 0 +
-  * [bed_mesh] +
-    * horizontal_move_z        : 2 +
-    * probe_count              : 9,9 +
-    * zero_reference_position  : 150, 160 # Set this value to be the same as home_xy_position that is in the section safe_z_home+
  
 +Ich habe mir für meine Konfiguration eine extra CFG Datei angelegt mit folgendem Inhalt: 
 +<code | BDSensor.cfg>
 +[BDsensor] 
 +# Don't use aliases for the board pins 
 +sda_pin             : PD1
 +scl_pin             : PD0
 +#scl_pin             : MKS_THR:gpio20 # example of connecting to CAN module like MKS THR42 
 +#sda_pin             : MKS_THR:gpio11 
 +#scl_pin             : host:gpio17 # example of connecting to GPIO on RaspberryPi
 +#sda_pin             : host:gpio27
 +
 +# This speed is only for the z probe speed while doing z_tilt. not for the homing speed
 +speed               : 3
 +# This is the time period (speed)for the communication between mcu and bdsensor, that means lower value the higher communication speed.
 +delay               : 20 # you can set it 10 if the BDsensor version is >=1.2
 +# This value will be ingnored if nozzlecollision is enabled
 +z_offset            : 0 #  within -0.6 to 0.6mm
 +x_offset            : 0
 +y_offset            : 20.0
 +no_stop_probe:        # fast probe that the toolhead will not stop at the probe point,disable it by commenting out.
 +# it will stop the z axis if it measure the distance is <=1.2mm while homing z to avoid crash into the bed. and then set the z value to the actual read distance value.
 +# it will not raise nozzle 1.2mm
 +position_endstop    : 1.2 # the triggered position, recommend value is 1~2.8
 +## The Sensor is attached to the board where the Z stepper are attached, too. 
 +collision_homing    : 0 # set it 1 to enable homing with nozzle collision sensing.
 +collision_calibrate : 0 # set it 1 to enable auto calibrate BDsensor with nozzle collision sensing.
 +QGL_Tilt_Probe      : 1 # set 1 to enable probe up and down when do quad_gantry_level    
 +
 +#2. If I don´t use the Auto Calibration ... Do I need to set an Z offset so that the first layer can be printed without the nozzle touching the bed directly?
 +#Or is it position_endstop?
 +####  the only difference is that it will home z first with nozzle touching to find the 0 position if collision_calibrate:1
 +
 +#If I set second-homing-speed to high (> 1.5) my stealtburner starts to bend because the head stops to late.
 +#### this depends on the mount height and the material of the bed plate, 
 +#https://github.com/markniu/Bed_Distance_sensor/issues/91#issuecomment-1966365247
 +
 +# https://github.com/markniu/Bed_Distance_sensor/wiki/Z-move-or-not-automatically_Z_Tilt_QGL
 +[gcode_macro QUAD_GANTRY_LEVEL]
 +rename_existing: _QUAD_GANTRY_LEVEL
 +description:
 +gcode:
 +    #run z tilt with z move up and down at first
 +    BDSENSOR_SET QGL_TILT_PROBE=1 #set this 1 to enable z axis up and down
 +    BDSENSOR_SET COLLISION_HOMING=0
 +    _QUAD_GANTRY_LEVEL  horizontal_move_z=6 retry_tolerance=1
 +    G28 Z0
 +    #run z tilt with no z move up and down
 +    BDSENSOR_SET QGL_TILT_PROBE=0 #set this 0 to disable z axis up and down while probe
 +    _QUAD_GANTRY_LEVEL horizontal_move_z=1 retry_tolerance=0.04
 +    #BDSENSOR_SET COLLISION_HOMING=1 #optional
 +    G28 Z0
 +
 +# https://github.com/markniu/Bed_Distance_sensor/wiki/Homing-with-contactless-and-contact-probing-together
 +[gcode_macro G28]
 +rename_existing: G990028
 +gcode:
 +      {% if rawparams|length == 0 %}
 +           { action_respond_info("homing all") }
 +           G990028 X Y
 +           ## Homing with contactless probe with the homing_speed in [stepper_z]
 +           BDSENSOR_SET COLLISION_HOMING=0
 +           G990028 Z
 +           ## Homing with contact probe with the second_homing_speed in [stepper_z]
 +           BDSENSOR_SET COLLISION_HOMING=1
 +           G990028 Z
 +      {% else %}
 +            {% if 'x' in rawparams or 'X' in rawparams  %}
 +                 { action_respond_info("homing x") }
 +                 G990028 X
 +            {% endif %}
 +            {% if 'y' in rawparams or 'Y' in rawparams  %}
 +                 { action_respond_info("homing y") }
 +                 G990028 Y
 +            {% endif %}
 +            {% if 'z' in rawparams or 'Z' in rawparams  %}
 +                 { action_respond_info("homing z contactless") }
 +                 ## Homing with contactless probe with the homing_speed in [stepper_z]
 +                 BDSENSOR_SET COLLISION_HOMING=0
 +                 G990028 Z
 +                 { action_respond_info("homing z collision") }
 +                 ## Homing with contact probe with the second_homing_speed in [stepper_z]
 +                 BDSENSOR_SET COLLISION_HOMING=1
 +                 G990028 Z
 +            {% endif %}
 +      {% endif %}
 +</code>
 +
 +Diese Konfig beinhaltet einige Anpassungen 
 +  * Der Versuch ein paar mehr Erklärungen zu den Konfig Parametern einzubauen
 +  * G28 Erweiterung die verhindert das der erste Prob Versuch auf dem Bett erfolgt. Siehe dazu auch \\ https://github.com/markniu/Bed_Distance_sensor/wiki/Homing-with-contactless-and-contact-probing-together
 +  * Anpassung für **Quad Gantry Level**. Wenn ihr Z_TILT verwendet gibt es hier eine Alternative: \\ https://github.com/markniu/Bed_Distance_sensor/wiki/Z-move-or-not-automatically_Z_Tilt_QGL
 +  * Der **y_offset** muss korrekt eingestellt werden. Das ist der Abstand von der Nozzle Mitte zur BD Sensor Mitte. 
 +  * Wenn ihr Auto Z Probing haben wollt, dann müssen diese beiden Parameter auf 1: collision_homing & collision_calibrate. Für den Start und die erste Kalibrierung sollte das aber erstmal auf 0 stehen. 
 +
 +==== [safe_z_home] ====
 +In der Konfig sollte es ein safe_z_home geben. home_xy_position auf die Bettmitte setzen 
 +<code>
 +[safe_z_home]
 +# https://www.klipper3d.org/Config_Reference.html#safe_z_home
 +home_xy_position         : 150,150
 +speed                    : 300
 +z_hop                    : 5
 +z_hop_speed              : 10.0
 +</code>
 +
 +==== [bed_mesh] ====
 +bed_mesh muss auch angepasst werden. Hier vor allem die Anzahl der Messpunkte: 
 +
 +<code | download>
 +[bed_mesh]
 +## https://www.klipper3d.org/Config_Reference.html#bed_mesh
 +## https://docs.vorondesign.com/tuning/secondary_printer_tuning.html
 +speed                    : 200
 +horizontal_move_z        : 1
 +mesh_min                 : 10,33
 +mesh_max                 : 290,280
 +probe_count              : 9,9
 +mesh_pps                 : 3,3
 +algorithm                : bicubic
 +bicubic_tension          : 0.2
 +## relative_reference_index = (x points * y points) - 1) / 2
 +## Samples : 3x3 mesh = 4, 5x5 mesh = 12, 7x7 mesh = 24, etc
 +#relative_reference_index : 12
 +zero_reference_position  : 150, 150
 +</code>
 +
 +Zudem muss zero_reference_position auf der Bettmitte stehen und mesh_min / mesh_max muss so eingestellt sein das der Sensor über eurem Bett ist!
 +
 +==== [stepper_z] ====
 +Hier müssen einige Werte angepasst werden: 
 +
 +<code | download>
 +endstop_pin              : probe:z_virtual_endstop
 +#position_endstop         : -0.5
 +position_max             : 290
 +position_min             : -5
 +# BD Sensor
 +homing_speed             : 8 # 5,8 für Collision Detect
 +second_homing_speed      : 1.4 # 1, 1.4  #set this to 3 if homing with collision
 +homing_retract_speed     : 2
 +homing_retract_dist      : 0 # 0(Auto Level) / 5 Normal Level
 +</code>
 +
 +  * Der Endstop Pin muss auf einen virtuellen Endstop gesetzt werden. 
 +  * position_endstop auskommentieren
 +  * second_homing_speed muss man ermitteln wenn man collision Sensing machen möchte. Siehe dazu auch das Video !
 +  * homing_retract_dist muss auf 0 auf Collision Sensing (Auto Z Level) und auf 5 bei manuellem Leveln 
 +
 +==== Eintrag für Kalibrierung ====
 +Bei manueller Kalibrierung muss dieser Eintrag noch in die Konfig: 
 +
 +<code>
 +# BD Sensor
 +[force_move] 
 +enable_force_move        : true   # required by the command SET_KINEMATIC_POSITION in the calibration step below.
 +</code>
 +
 +Der Eintrag sollte nach der Kalibrierung wieder entfernt werden. 
 +===== Kalibrierung Manuell =====
 +  * Nozzle reinigen !
 +  * enable_force_move aktiviert !
 +  * Gantry ist einigermaßen gerade ausgerichtet 
 +  * ''SET_KINEMATIC_POSITION Z=200'' in der MainSail Konsole eingeben \\ Damit kann der Kopf frei bewegt werden ohne das vorher die Endstops getriggert haben müssen. **Also vorsichtig den Kopf bewegen !!**
 +  * Es ist keine dumme Idee den Kopf erstmal in die Mitte vom Bett zu fahren. Also in etwa so: \\ **G0 X150 Y150**
 +  * ''M102 S-6'' in der MainSail Konsole eingeben
 +  * Wenn der Durchgang fertig ist mal ein ''M102 S-5'' absetzen. Der erste Wert sollte unter 400 liegen. Ist er darüber, muss der Sensor tiefer! Ein empfohlener Wert wäre ca. 100. Der Folgewert muss dann auf jeden Fall größer sein (um mindestens 10 Punkte). 
 +
 +===== Endstop testen =====
 +  * M119 absetzen und das Ergebnis sollte sein \\ ''Recv: x:open y:open z:open''
 +  * Was metallisches unter den Sensor halten und nochmal ''M119'' \\ ''Recv: x:open y:open z:TRIGGERED''
 +  * Wenn das passt, dann können jetzt alle Achsen gehomt werden mit ''G28''
 +===== Kalibrierung Auto =====
 +  * Original Anleitung beachten \\ https://github.com/markniu/Bed_Distance_sensor/wiki/Collision-sensing
 +  * ''collision_homing'' and ''collision_calibrate'' am 1 setzen 
 +  * ''homing_retract_dist'' auf 0 setzen \\ Aber nur wenn man das G28 Kommando ersetzt hat (siehe oben). Ist das nicht ersetzt muss der Wert auf 5. 
 +  * ''zero_reference_position'' bei bed_mesh auf Bettmitte setzen 
 +  * Test mit ''G28 Z''
 ===== Bed Mesh ===== ===== Bed Mesh =====
 +Wenn alles eingestellt ist, kann man ganz normal ein BED_MESH_CALIBRATE starten. Der Sensor fährt dann in Bahnen über das Bett. 
 +Das Handling ist genauso wie vorher !
  
-===== Nozzle Collision Sensing ===== 
-  * https://github.com/markniu/Bed_Distance_sensor/wiki/Collision-sensing 
-  * WICHTIG -> <color #ed1c24>Retract auf 0 !!!!!</color> \\ https://github.com/markniu/Bed_Distance_sensor/wiki/Homing-with-contactless-and-contact-probing-together 
  
  
klipper_faq/eddy/bd_sensor.1736692660.txt.gz · Last modified: by dominik

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki