Przeglądaj źródła

✨ Support for BIQU B1-SE-Plus strain gauge probe (#23101)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
BigTreeTech 2 lat temu
rodzic
commit
07befb545b
No account linked to committer's email address

+ 9
- 0
Marlin/Configuration.h Wyświetl plik

1221
 #endif
1221
 #endif
1222
 
1222
 
1223
 /**
1223
 /**
1224
+ * Probe Enable / Disable
1225
+ * The probe only provides a triggered signal when enabled.
1226
+ */
1227
+//#define PROBE_ENABLE_DISABLE
1228
+#if ENABLED(PROBE_ENABLE_DISABLE)
1229
+  //#define PROBE_ENABLE_PIN -1   // Override the default pin here
1230
+#endif
1231
+
1232
+/**
1224
  * Multiple Probing
1233
  * Multiple Probing
1225
  *
1234
  *
1226
  * You may get improved results by probing 2 or more times.
1235
  * You may get improved results by probing 2 or more times.

+ 3
- 0
Marlin/src/module/endstops.cpp Wyświetl plik

392
 #if HAS_BED_PROBE
392
 #if HAS_BED_PROBE
393
   void Endstops::enable_z_probe(const bool onoff) {
393
   void Endstops::enable_z_probe(const bool onoff) {
394
     z_probe_enabled = onoff;
394
     z_probe_enabled = onoff;
395
+    #if PIN_EXISTS(PROBE_ENABLE)
396
+      WRITE(PROBE_ENABLE_PIN, onoff);
397
+    #endif
395
     resync();
398
     resync();
396
   }
399
   }
397
 #endif
400
 #endif

+ 9
- 0
Marlin/src/pins/pinsDebug_list.h Wyświetl plik

1439
 #if PIN_EXISTS(Z_MIN_PROBE)
1439
 #if PIN_EXISTS(Z_MIN_PROBE)
1440
   REPORT_NAME_DIGITAL(__LINE__, Z_MIN_PROBE_PIN)
1440
   REPORT_NAME_DIGITAL(__LINE__, Z_MIN_PROBE_PIN)
1441
 #endif
1441
 #endif
1442
+#if PIN_EXISTS(PROBE_ACTIVATION_SWITCH)
1443
+  REPORT_NAME_DIGITAL(__LINE__, PROBE_ACTIVATION_SWITCH_PIN)
1444
+#endif
1445
+#if PIN_EXISTS(PROBE_ENABLE)
1446
+  REPORT_NAME_DIGITAL(__LINE__, PROBE_ENABLE_PIN)
1447
+#endif
1448
+#if PIN_EXISTS(PROBE_TARE)
1449
+  REPORT_NAME_DIGITAL(__LINE__, PROBE_TARE_PIN)
1450
+#endif
1442
 #if PIN_EXISTS(I_ATT)
1451
 #if PIN_EXISTS(I_ATT)
1443
   REPORT_NAME_DIGITAL(__LINE__, I_ATT_PIN)
1452
   REPORT_NAME_DIGITAL(__LINE__, I_ATT_PIN)
1444
 #endif
1453
 #endif

+ 3
- 1
Marlin/src/pins/stm32f1/pins_BTT_SKR_CR6.h Wyświetl plik

71
 // Probe
71
 // Probe
72
 //
72
 //
73
 #define PROBE_TARE_PIN                      PA1
73
 #define PROBE_TARE_PIN                      PA1
74
-#define PROBE_ACTIVATION_SWITCH_PIN         PC2   // Optoswitch to Enable Z Probe
74
+#if ENABLED(PROBE_ACTIVATION_SWITCH)
75
+  #define PROBE_ACTIVATION_SWITCH_PIN       PC2   // Optoswitch to Enable Z Probe
76
+#endif
75
 
77
 
76
 //
78
 //
77
 // Steppers
79
 // Steppers

+ 4
- 1
Marlin/src/pins/stm32f1/pins_CREALITY_V452.h Wyświetl plik

34
 #define HEATER_0_PIN                        PA1   // HEATER1
34
 #define HEATER_0_PIN                        PA1   // HEATER1
35
 #define HEATER_BED_PIN                      PA2   // HOT BED
35
 #define HEATER_BED_PIN                      PA2   // HOT BED
36
 #define FAN_PIN                             PA0   // FAN
36
 #define FAN_PIN                             PA0   // FAN
37
-#define PROBE_ACTIVATION_SWITCH_PIN         PC6   // Optoswitch to Enable Z Probe
37
+
38
+#if ENABLED(PROBE_ACTIVATION_SWITCH)
39
+  #define PROBE_ACTIVATION_SWITCH_PIN       PC6   // Optoswitch to Enable Z Probe
40
+#endif
38
 
41
 
39
 #include "pins_CREALITY_V45x.h"
42
 #include "pins_CREALITY_V45x.h"

+ 4
- 1
Marlin/src/pins/stm32f1/pins_CREALITY_V453.h Wyświetl plik

34
 #define HEATER_0_PIN                        PB14  // HEATER1
34
 #define HEATER_0_PIN                        PB14  // HEATER1
35
 #define HEATER_BED_PIN                      PB13  // HOT BED
35
 #define HEATER_BED_PIN                      PB13  // HOT BED
36
 #define FAN_PIN                             PB15  // FAN
36
 #define FAN_PIN                             PB15  // FAN
37
-#define PROBE_ACTIVATION_SWITCH_PIN         PB2   // Optoswitch to Enable Z Probe
37
+
38
+#if ENABLED(PROBE_ACTIVATION_SWITCH)
39
+  #define PROBE_ACTIVATION_SWITCH_PIN       PB2   // Optoswitch to Enable Z Probe
40
+#endif
38
 
41
 
39
 #include "pins_CREALITY_V45x.h"
42
 #include "pins_CREALITY_V45x.h"

+ 7
- 0
Marlin/src/pins/stm32f4/pins_BTT_SKR_V2_0_common.h Wyświetl plik

133
 #endif
133
 #endif
134
 
134
 
135
 //
135
 //
136
+// Probe enable
137
+//
138
+#if ENABLED(PROBE_ENABLE_DISABLE)
139
+  #define PROBE_ENABLE_PIN            SERVO0_PIN
140
+#endif
141
+
142
+//
136
 // Filament Runout Sensor
143
 // Filament Runout Sensor
137
 //
144
 //
138
 #define FIL_RUNOUT_PIN                      PC2   // E0DET
145
 #define FIL_RUNOUT_PIN                      PC2   // E0DET

Ładowanie…
Anuluj
Zapisz