[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/diy/ - Do It Yourself

Search:


View post   

>> No.2769256 [View]
File: 494 KB, 1025x1342, IMG_0020.jpg [View same] [iqdb] [saucenao] [google]
2769256

>>2769247
Hey bro thanks a lot. But just to clarify, this is how I should connect it, right? Pic is the z endstop of mine. Since the ground is not connected by default and there are two wires running back I should just wire the S to the PB6 and V to the VCC pins, and use the PB6 as the runout sensor pin right?
And then in marlin I'm thinking about making these changes which in my mind should get this working:
from this:
#if ENABLED(BLTOUCH)
#define SERVO0_PIN 27
#undef BEEPER_PIN
#elif ENABLED(FILAMENT_RUNOUT_SENSOR)
#ifndef FIL_RUNOUT_PIN
#define FIL_RUNOUT_PIN 27
#endif
#if FIL_RUNOUT_PIN == BEEPER_PIN
#undef BEEPER_PIN
#endif
#endif

to this:
#if ENABLED(BLTOUCH)
#define SERVO0_PIN 27
#undef BEEPER_PIN
// removing the elif block because we can have both of them connected via ICSP, not only one or the other
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
#ifndef FIL_RUNOUT_PIN
#define FIL_RUNOUT_PIN PB6
#endif
#if FIL_RUNOUT_PIN == BEEPER_PIN
#undef BEEPER_PIN
#endif
#endif

Navigation
View posts[+24][+48][+96]