# OpenMV N6 and P7 used as imput dosen't work as expected

**URL:** <https://forums.openmv.io/t/openmv-n6-and-p7-used-as-imput-dosent-work-as-expected/11914>\
**Category:** OpenMV Boards\
**Created:** [October 29, 2026, 8:09am UTC](https://forums.openmv.io/t/openmv-n6-and-p7-used-as-imput-dosent-work-as-expected/11914 "2026-10-29T08:09:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bob63](https://avatars.discourse-cdn.com/v4/letter/b/e274bd/32.png) [@bob63](https://forums.openmv.io/u/bob63)\
**Post date:** [October 29, 2026, 8:09am UTC](https://forums.openmv.io/t/openmv-n6-and-p7-used-as-imput-dosent-work-as-expected/11914/1 "2026-10-29T08:09:48Z")

</div>

Hi,  
on my N6 I’m trying to use P7 as input pin , but reading the pin return always 0 also if connected to 3,3v and is configured with PULL\_DOWN. The same script using P8 works fine and P7 used as ouput works fine .  
Are there imitation in the usage of P7 as input on N6 camera ?  
tks Roberto.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [October 29, 2026, 7:33pm UTC](https://forums.openmv.io/t/openmv-n6-and-p7-used-as-imput-dosent-work-as-expected/11914/2 "2026-10-29T19:33:01Z")

</div>

Hi, there should be no issues with using that pin as an input. It works as expected with pull down and up and reads the voltage correctly.

```python
from pyb import Pin

# Connect a switch to pin 0 that will pull it low when the switch is closed.
# Pin 1 will then light up.
pin0 = Pin("P7", Pin.IN, Pin.PULL_DOWN)
import time

while True:
    print(pin0.value()) # Print the value of pin 0 (1 = high, 0 = low).
    time.sleep_ms(100) # Wait for 100 milliseconds.

```

And

```python
from pyb import Pin

# Connect a switch to pin 0 that will pull it low when the switch is closed.
# Pin 1 will then light up.
pin0 = Pin("P7", Pin.IN, Pin.PULL_UP)
import time

while True:
    print(pin0.value()) # Print the value of pin 0 (1 = high, 0 = low).
    time.sleep_ms(100) # Wait for 100 milliseconds.

```

Both work.

---

<div class="post-metadata">

**Author:** ![bob63](https://avatars.discourse-cdn.com/v4/letter/b/e274bd/32.png) [@bob63](https://forums.openmv.io/u/bob63)\
**Post date:** [October 29, 2026, 10:34pm UTC](https://forums.openmv.io/t/openmv-n6-and-p7-used-as-imput-dosent-work-as-expected/11914/3 "2026-10-29T22:34:31Z")

</div>

Hi , I’ve tryed both version on p7 and dosen’t works , while with P8 are both ok.

Using the below code P7 as output works fine and if I swap P7 with P8 not.  
At this point I can just suppose that I’ve damaged the P7 in such way , also if I’m sure to have provided input voltage not above 3,3 volts. 🤔

```python
# Pin Control Example

from machine import Pin

pin0 = Pin("P8", Pin.IN, Pin.PULL_UP)
pin1 = Pin("P7", Pin.OUT)

while True:
    pin1.value(not pin0.value())

```

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [October 29, 2026, 10:47pm UTC](https://forums.openmv.io/t/openmv-n6-and-p7-used-as-imput-dosent-work-as-expected/11914/4 "2026-10-29T22:47:21Z")

</div>

The N6 is not 5V tolerant. So, if you did provide 5V then the I/O is damaged.
