changing GPIO36 pins as INPUT or OUTPUT

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
Bhuvan
Posts: 8
Joined: Mon Sep 03, 2018 2:30 pm

changing GPIO36 pins as INPUT or OUTPUT

Post by Bhuvan » Mon Sep 03, 2018 2:36 pm

Hi All,

As mentioned in Micro python documentation for esp32 for GPIO "in most cases only pins 0, 2, 4, 5, 12, 13, 14, 15, and 16 can be used."
Can we increase or change this for eg:- I want to use GPIO36 as input or output pins ?

Thank you in advance.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: changing GPIO36 pins as INPUT or OUTPUT

Post by Roberthh » Mon Sep 03, 2018 3:04 pm

The sentence you cite applies to the ESP8266. The ESP32 GPIO can be used without limitation by MIcroPython. You have to consider however, that some GPIO Pin are Input only, like GPIO34 - GPIO39.

Edit: FIxed

loboris
Posts: 344
Joined: Fri Oct 02, 2015 6:19 pm

Re: changing GPIO36 pins as INPUT or OUTPUT

Post by loboris » Mon Sep 03, 2018 3:18 pm

GPIO 34-39 are input only.

Bhuvan
Posts: 8
Joined: Mon Sep 03, 2018 2:30 pm

Re: changing GPIO36 pins as INPUT or OUTPUT

Post by Bhuvan » Tue Sep 04, 2018 6:40 am

[quote=loboris post_id=29815 time=1535987926 user_id=923]
GPIO [b]34-39[/b] are input only.
[/quote]
Thank you I got the point now :)
Appreciate your input :)

Bhuvan
Posts: 8
Joined: Mon Sep 03, 2018 2:30 pm

Re: changing GPIO36 pins as INPUT or OUTPUT

Post by Bhuvan » Tue Sep 04, 2018 6:41 am

[quote=Roberthh post_id=29814 time=1535987091 user_id=601]
The sentence you cite applies to the ESP8266. The ESP32 GPIO can be used without limitation by MIcroPython. You have to consider however, that some GPIO Pin are Input only, like GPIO34 - GPIO39.

Edit: FIxed
[/quote]
Thank You :)
It helped.

User avatar
liudr
Posts: 211
Joined: Tue Oct 17, 2017 5:18 am

Re: changing GPIO36 pins as INPUT or OUTPUT

Post by liudr » Mon Sep 10, 2018 4:15 am

Not only is GPIO36 an input-only pin, it also does NOT feature pull-up/down resistors:
Note 2
The following pins are input-only. These pins do not feature an output driver or internal pull-up/pull-down circuitry: SENSOR_VP (GPIO36),
SENSOR_CAPP (GPIO37), SENSOR_CAPN (GPIO38), SENSOR_VN (GPIO39), VDET_1 (GPIO36), VDET_2 (GPIO36).

Post Reply