Page 1 of 1

changing GPIO36 pins as INPUT or OUTPUT

Posted: Mon Sep 03, 2018 2:36 pm
by Bhuvan
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.

Re: changing GPIO36 pins as INPUT or OUTPUT

Posted: Mon Sep 03, 2018 3:04 pm
by Roberthh
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

Re: changing GPIO36 pins as INPUT or OUTPUT

Posted: Mon Sep 03, 2018 3:18 pm
by loboris
GPIO 34-39 are input only.

Re: changing GPIO36 pins as INPUT or OUTPUT

Posted: Tue Sep 04, 2018 6:40 am
by Bhuvan
[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 :)

Re: changing GPIO36 pins as INPUT or OUTPUT

Posted: Tue Sep 04, 2018 6:41 am
by Bhuvan
[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.

Re: changing GPIO36 pins as INPUT or OUTPUT

Posted: Mon Sep 10, 2018 4:15 am
by liudr
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).