# Digital Inputs on Shield Shield Won't PULLDOWN

**URL:** <https://community.particle.io/t/digital-inputs-on-shield-shield-wont-pulldown/33173>\
**Category:** Troubleshooting\
**Created:** [May 26, 2017, 2:02am UTC](https://community.particle.io/t/digital-inputs-on-shield-shield-wont-pulldown/33173 "2017-05-26T02:02:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tubes110](https://avatars.discourse-cdn.com/v4/letter/t/4491bb/32.png) [@Tubes110](https://community.particle.io/u/Tubes110)\
**Post date:** [May 26, 2017, 2:02am UTC](https://community.particle.io/t/digital-inputs-on-shield-shield-wont-pulldown/33173/1 "2017-05-26T02:02:18Z")

</div>

Hello there. I’m working with a Photon and a Shield Shield. I would like to use a couple inputs to monitor dry contacts. In my code I set the inputs, D2 and D3, as INPUT\_PULLDOWN. If I have the the Photon mounted in a breadboard, the inputs seem to react as expected - LOW when not connected to anything and HI when connected to 3.3v. When I mount the Photon in the Shield Shield and have it running the same program, the inputs act differently. They act as if they have no pull up or down at all. If I connect 3.3 to the input, it shows HI. When I disconnect 3.3, it stays HI until I connect the input to GND. I have tried setting the input to PULLUP and it acts the same. Is this behavior possibly caused by the voltage translators?

I know the inputs are mapped to 11 and 12 on the Shield Shield. 😉

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [May 26, 2017, 7:19am UTC](https://community.particle.io/t/digital-inputs-on-shield-shield-wont-pulldown/33173/2 "2017-05-26T07:19:54Z")

</div>

Yup, the level shifters on the Shield Shield seem to be a bit finicky and others had similar problems which should be addressed with external pull-ups on the 5V side.

---

<div class="post-metadata">

**Author:** ![Tubes110](https://avatars.discourse-cdn.com/v4/letter/t/4491bb/32.png) [@Tubes110](https://community.particle.io/u/Tubes110)\
**Post date:** [May 26, 2017, 6:52pm UTC](https://community.particle.io/t/digital-inputs-on-shield-shield-wont-pulldown/33173/3 "2017-05-26T18:52:28Z")

</div>

Thanks for the info. Would it be best to use an external pull-up or will it work properly with an external pull-down just the same?

---

<div class="post-metadata">

**Author:** ![Tubes110](https://avatars.discourse-cdn.com/v4/letter/t/4491bb/32.png) [@Tubes110](https://community.particle.io/u/Tubes110)\
**Post date:** [May 26, 2017, 6:54pm UTC](https://community.particle.io/t/digital-inputs-on-shield-shield-wont-pulldown/33173/4 "2017-05-26T18:54:19Z")

</div>

What value would you suggest as a pull up/down?

---

<div class="post-metadata">

**Author:** ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)\
**Post date:** [May 26, 2017, 7:19pm UTC](https://community.particle.io/t/digital-inputs-on-shield-shield-wont-pulldown/33173/5 "2017-05-26T19:19:31Z")

</div>

@Tubes110, 4.7K - 10K ohms should be fine.

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [May 26, 2017, 7:42pm UTC](https://community.particle.io/t/digital-inputs-on-shield-shield-wont-pulldown/33173/6 "2017-05-26T19:42:44Z")

</div>

up or down doesn’t matter, just don’t use internals at the same time - esp. not opposite 😉

---

<div class="post-metadata">

**Author:** ![Tubes110](https://avatars.discourse-cdn.com/v4/letter/t/4491bb/32.png) [@Tubes110](https://community.particle.io/u/Tubes110)\
**Post date:** [May 26, 2017, 8:49pm UTC](https://community.particle.io/t/digital-inputs-on-shield-shield-wont-pulldown/33173/7 "2017-05-26T20:49:54Z")

</div>

Thanks guys. I was planning on using 10k.

---

<div class="post-metadata">

**Author:** ![Tubes110](https://avatars.discourse-cdn.com/v4/letter/t/4491bb/32.png) [@Tubes110](https://community.particle.io/u/Tubes110)\
**Post date:** [July 24, 2017, 12:48am UTC](https://community.particle.io/t/digital-inputs-on-shield-shield-wont-pulldown/33173/8 "2017-07-24T00:48:20Z")

</div>

OK, well after coming back from a long break, I finally had a chance to test your suggestions. My conclusion is there is something wrong with my shield shield. I can not get digital or analog inputs to behave as expected. I bread-board my simple circuit and connect it directly to the Photon and it works fine. I can use pull-up or pull-down resistors. If I move the Photon to the shield shield and reconnect the input jumper to the shield shield it does not work. I have tried different inputs with same results. The input remains in whatever state it is in until it is positively grounded (turns off) or connected directly to 3.3v (turns on).

Analogs are funny too. I have not tested them thoroughly yet. What I did was use a 4.7k - 4.7k voltage divided to pull the input “high” (~2048). I then use a button to pull the center of the divider to ground. If the center of the divider is connected directly to the A2 pin on the Photon, the input reads perfectly. ~2048 with button OPEN, 0 with button CLOSED. If I run the input through the Shield Shield “Pin 2”, the reading is unreliable.

Am I crazy or is something wrong with my shield shield?

Thanks!

---

<div class="post-metadata">

**Author:** ![Tubes110](https://avatars.discourse-cdn.com/v4/letter/t/4491bb/32.png) [@Tubes110](https://community.particle.io/u/Tubes110)\
**Post date:** [July 24, 2017, 11:09am UTC](https://community.particle.io/t/digital-inputs-on-shield-shield-wont-pulldown/33173/9 "2017-07-24T11:09:41Z")

</div>

After reading another post about the same problem, I tried using a different value for the external pulldown resistor. If using 3.3v as your signal, a 2.7k seems to work well. If using 5v, 3.9k does the trick.

I still want to test the analog inputs some more…
