# Open circuit on IO pins oscillates reading

**URL:** <https://forum.electromage.com/t/open-circuit-on-io-pins-oscillates-reading/4658>\
**Category:** Troubleshooting\
**Created:** [March 11, 2026, 9:28pm UTC](https://forum.electromage.com/t/open-circuit-on-io-pins-oscillates-reading/4658 "2026-03-11T21:28:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ag\_design](https://forum.electromage.com/user_avatar/forum.electromage.com/ag_design/32/3277_2.png) [@ag\_design](https://forum.electromage.com/u/ag_design)\
**Post date:** [March 11, 2026, 9:28pm UTC](https://forum.electromage.com/t/open-circuit-on-io-pins-oscillates-reading/4658/1 "2026-03-11T21:28:57Z")

</div>

I’m using a button on an IO pin to trigger an effect in my pattern.  
When I read the HIGH/LOW (1/0) off the pin, I’ve noticed when the circuit is open, the reading oscillates quickly between 1 and 0, while the closed reading is a constant 1. That can lead to false reads on the 1. I can solve this by using a normally closed button and watching for a zero (although it seems to introduce a small delay while it waits for the zero oscillation) but it completely rules out using a normally open button because it sends false 1s. I’d prefer to use the normally open button if I can. Did I wire something wrong? The circuit looks like this: 3v3 → button → IO17 (currently, though I’ve tried other pins and get the same result — also have tried different NO buttons to the same effect). Anyone have any ideas?

---

<div class="post-metadata">

**Author:** ![ag\_design](https://forum.electromage.com/user_avatar/forum.electromage.com/ag_design/32/3277_2.png) [@ag\_design](https://forum.electromage.com/u/ag_design)\
**Post date:** [March 12, 2026, 4:28am UTC](https://forum.electromage.com/t/open-circuit-on-io-pins-oscillates-reading/4658/2 "2026-03-12T04:28:26Z")

</div>

Ok, just answered my own question. I needed to be using the INPUT\_PULLUP / INPUT\_PULLDOWN pin modes. You learn something new every day!

---

<div class="post-metadata">

**Author:** ![system](https://forum.electromage.com/uploads/default/original/1X/98123d16088a5451b5a585e24c0f2a40dd76061e.png) [@system](https://forum.electromage.com/u/system)\
**Post date:** [July 10, 2026, 4:28am UTC](https://forum.electromage.com/t/open-circuit-on-io-pins-oscillates-reading/4658/3 "2026-07-10T04:28:30Z")

</div>

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.
