# Help with Blade detect please!

**URL:** <https://crucible.hubbe.net/t/help-with-blade-detect-please/3135>\
**Category:** ProffieOS\
**Created:** [March 24, 2023, 10:56pm UTC](https://crucible.hubbe.net/t/help-with-blade-detect-please/3135 "2023-03-24T22:56:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javierd07](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/javierd07/32/3295_2.png) [@Javierd07](https://crucible.hubbe.net/u/Javierd07)\
**Post date:** [March 24, 2023, 10:56pm UTC](https://crucible.hubbe.net/t/help-with-blade-detect-please/3135/1 "2023-03-24T22:56:37Z")

</div>

Hello guys! First time posting here. I am begging for hep please. I finished a build and everything works except for the blade detect. Whenever I power on the saber with a blade in it’ll play the blade in font but then instantly revert to the no blade font even though there is a blade inserted.

config included below. Thanks in advance guys. Love this forum and your work on os7

[javiergraflex2022.h](https://crucible.hubbe.net/uploads/short-url/i0W8gEyakzzH1M34A1W9OQiIBDf.h) (109.3 KB)

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [March 25, 2023, 1:03am UTC](https://crucible.hubbe.net/t/help-with-blade-detect-please/3135/2 "2023-03-25T01:03:04Z")

</div>

What does the serial monitor show when this happens?

---

<div class="post-metadata">

**Author:** ![baldusi](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/baldusi/32/70_2.png) [@baldusi](https://crucible.hubbe.net/u/baldusi)\
**Post date:** [March 25, 2023, 1:22am UTC](https://crucible.hubbe.net/t/help-with-blade-detect-please/3135/3 "2023-03-25T01:22:01Z")

</div>

Do you have the wiring diagram? Because you have defined the Blade Present pin as pin 17 (Data3), but you also defined your third blade (a 1 element Pixel, I assume your switch) as using blade3Pin, which happens to be the same pin. So, either the config or the wiring is unsync.

---

<div class="post-metadata">

**Author:** ![Javierd07](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/javierd07/32/3295_2.png) [@Javierd07](https://crucible.hubbe.net/u/Javierd07)\
**Post date:** [March 25, 2023, 2:01am UTC](https://crucible.hubbe.net/t/help-with-blade-detect-please/3135/4 "2023-03-25T02:01:25Z")

</div>

Oh man /: I hope I won’t need to rewire. Blade 1 wired to Data 1. Neopixel PCB (Blade 2) wired to Data 2. Crystal chamber LED (Blade 3) wired to Data 3 and Blade Detect wired to Data 4 pin. If that’s still confusing I can make a diagram. Thanks for your response btw Really appreciate it

---

<div class="post-metadata">

**Author:** ![Javierd07](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/javierd07/32/3295_2.png) [@Javierd07](https://crucible.hubbe.net/u/Javierd07)\
**Post date:** [March 25, 2023, 2:02am UTC](https://crucible.hubbe.net/t/help-with-blade-detect-please/3135/5 "2023-03-25T02:02:50Z")

</div>

I have never used the serial monitor. I’ll give it a try and let you know. Thanks!

---

<div class="post-metadata">

**Author:** ![baldusi](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/baldusi/32/70_2.png) [@baldusi](https://crucible.hubbe.net/u/baldusi)\
**Post date:** [March 25, 2023, 2:11am UTC](https://crucible.hubbe.net/t/help-with-blade-detect-please/3135/6 "2023-03-25T02:11:00Z")

</div>

Then you only need to change the line:

`#define BLADE_DETECT_PIN 17`

For

`#define BLADE_DETECT_PIN blade4Pin`

---

<div class="post-metadata">

**Author:** ![Javierd07](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/javierd07/32/3295_2.png) [@Javierd07](https://crucible.hubbe.net/u/Javierd07)\
**Post date:** [March 25, 2023, 2:26am UTC](https://crucible.hubbe.net/t/help-with-blade-detect-please/3135/7 "2023-03-25T02:26:05Z")

</div>

WOW. You sir, are a life safer. You just made my day and Ill forever be in your debt.
