Browse Source

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

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

+ 9
- 0
Marlin/Configuration.h View File

@@ -1221,6 +1221,15 @@
1221 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 1233
  * Multiple Probing
1225 1234
  *
1226 1235
  * You may get improved results by probing 2 or more times.

+ 3
- 0
Marlin/src/module/endstops.cpp View File

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

+ 9
- 0
Marlin/src/pins/pinsDebug_list.h View File

@@ -1439,6 +1439,15 @@
1439 1439
 #if PIN_EXISTS(Z_MIN_PROBE)
1440 1440
   REPORT_NAME_DIGITAL(__LINE__, Z_MIN_PROBE_PIN)
1441 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 1451
 #if PIN_EXISTS(I_ATT)
1443 1452
   REPORT_NAME_DIGITAL(__LINE__, I_ATT_PIN)
1444 1453
 #endif

+ 3
- 1
Marlin/src/pins/stm32f1/pins_BTT_SKR_CR6.h View File

@@ -71,7 +71,9 @@
71 71
 // Probe
72 72
 //
73 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 79
 // Steppers

+ 4
- 1
Marlin/src/pins/stm32f1/pins_CREALITY_V452.h View File

@@ -34,6 +34,9 @@
34 34
 #define HEATER_0_PIN                        PA1   // HEATER1
35 35
 #define HEATER_BED_PIN                      PA2   // HOT BED
36 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 42
 #include "pins_CREALITY_V45x.h"

+ 4
- 1
Marlin/src/pins/stm32f1/pins_CREALITY_V453.h View File

@@ -34,6 +34,9 @@
34 34
 #define HEATER_0_PIN                        PB14  // HEATER1
35 35
 #define HEATER_BED_PIN                      PB13  // HOT BED
36 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 42
 #include "pins_CREALITY_V45x.h"

+ 7
- 0
Marlin/src/pins/stm32f4/pins_BTT_SKR_V2_0_common.h View File

@@ -133,6 +133,13 @@
133 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 143
 // Filament Runout Sensor
137 144
 //
138 145
 #define FIL_RUNOUT_PIN                      PC2   // E0DET

Loading…
Cancel
Save