Gpio Pins GreyedOut

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
srihari154
New user
Posts: 6
Joined: 10 Nov 2016, 14:41

Gpio Pins GreyedOut

#1 Post by srihari154 » 12 Nov 2016, 17:56

Hi People,

I have successfully installed easyesp 120 build on NodeMCU Dev kit 1.0, based on ESP-12e.

However few pins are greyed out when trying to add a switch input device and while selecting the 1st GPIO pin.
The pins which are greyed in the dropdown are 1,3,4,5.

Can anyone suggest why these pins are greyed out?
The second question is which pin is suitable to be used as a switch input, basically to run a relay. The reason i ask is, i need a pin that does not momentarily boot as high when the ESP restarts.

A screen shot of the same has been attached/below.
Gpio Pins Dropdown list
Gpio Pins Dropdown list
GpioPins.jpg (61.03 KiB) Viewed 9691 times
Regards
Srihari

Drum
Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Gpio Pins GreyedOut

#2 Post by Drum » 13 Nov 2016, 09:29

Pins are greyed out because something else is using them, for example, 4 & 5 are usually set to i2c in the hardware tab. I have not paid much attention to the switch posts but there are a lot of them. You will probably want something more recent than 120, they are working on a new stable release but building with the arduino ide is really easy, once you figure it out.

srihari154
New user
Posts: 6
Joined: 10 Nov 2016, 14:41

Re: Gpio Pins GreyedOut

#3 Post by srihari154 » 13 Nov 2016, 19:30

Thanks for the Suggestion Drum.

I was able to free up 4 and 5 using the Hardware tab. However 1 and 3 are not available in the Hardware tab, Is it because they have been marked for TXD0 and RXD0 as per the NodeMCU pin out architecture?

Regards
Srihari

Martinus

Re: Gpio Pins GreyedOut

#4 Post by Martinus » 13 Nov 2016, 21:14

srihari154 wrote:Thanks for the Suggestion Drum.

I was able to free up 4 and 5 using the Hardware tab. However 1 and 3 are not available in the Hardware tab, Is it because they have been marked for TXD0 and RXD0 as per the NodeMCU pin out architecture?

Regards
Srihari
Used for serial. If you really need them for generic IO, you can disable serial in the tools/advanced settings.

srihari154
New user
Posts: 6
Joined: 10 Nov 2016, 14:41

Re: Gpio Pins GreyedOut

#5 Post by srihari154 » 14 Nov 2016, 09:52

Thanks for the Suggestion Martinus.

Would you be able to suggest pins that don't momentarily boot up as high during reboots?

This was causing issues in ESP-01, where pin 0 and 2 used to boot up as high during reboot and used to switch on the relay momentarily, Hence i switched to ESP-12e used with nodemcu devkit.

Any suggestions on the pins in ESP-12e that don't trigger the relay just for about 1 second during reboots.

Regards
Srihari

StevenHoogslag
New user
Posts: 3
Joined: 25 Apr 2018, 10:33

Re: Gpio Pins GreyedOut

#6 Post by StevenHoogslag » 02 May 2020, 16:48

The DS18B20 Temperature Sensor Module voor Wemos D1 has hard-wiring for GPIO4, pin D2. You won't see its serial number until you free the port. In ESPEasy Mega software, hardware tab, put the 12C interface GPIO ports to: -None-. The sensor is quite accurate so you can use a decimal setting of 2 in the device Edit, Task Settings page.

User avatar
Ath
Normal user
Posts: 3918
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Gpio Pins GreyedOut

#7 Post by Ath » 02 May 2020, 17:22

StevenHoogslag wrote: 02 May 2020, 16:48 The DS18B20 Temperature Sensor Module voor Wemos D1 has hard-wiring for GPIO4, pin D2.
What makes you think that? I haven't seen this behavior anywhere, except when you connect a sensor to a port already used/configured for something else, of course.
Usually a Wemos has enough free ports so you can easily connect to another GPIO port, and use D2 for I2C if you need that.
/Ton (PayPal.me)

StevenHoogslag
New user
Posts: 3
Joined: 25 Apr 2018, 10:33

Re: Gpio Pins GreyedOut

#8 Post by StevenHoogslag » 03 May 2020, 09:33

Hello Ath,

"What makes you think that? I haven't seen this behavior anywhere,"
You can see the copper going to D2. There is no way of intervention unless you modify the print yourself.

The 12C OLED screen module can be combined when you first disable 12C, install the Wemos DS18B20 module and then re-enable 12C.

Both modules co-operate on my Wemos triple-base.

Two pictures enclosed, I hope they show up and clarify.

Regards, Steven.
Attachments
Wemos D1 Triple Base DS18 Oled shield.jpg
Wemos D1 Triple Base DS18 Oled shield.jpg (192.79 KiB) Viewed 7214 times
Wemos D1 DS18B20 module.jpg
Wemos D1 DS18B20 module.jpg (14.56 KiB) Viewed 7214 times

User avatar
Ath
Normal user
Posts: 3918
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Gpio Pins GreyedOut

#9 Post by Ath » 03 May 2020, 10:21

Ah, that's a very inconvenient shield, I've used loose components only, so I can connect them to any GPIO.

You could cut the connection to D2, and rewire to another GPIO to avoid this issue, but it will require a bit of soldering handyness :shock:
/Ton (PayPal.me)

TD-er
Core team member
Posts: 9221
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Gpio Pins GreyedOut

#10 Post by TD-er » 03 May 2020, 10:55

Strictly speaking, it may be possible to use I2C pins along with other sensors.
But there is only a handful of those that will not interfere with the I2C bus.
So that's why I marked it as being occupied for selection.
You could change the I2C pins, add the sensor using that pin and the switch back the I2C pins in the configuration.
But be aware that it has not been tested.

StevenHoogslag
New user
Posts: 3
Joined: 25 Apr 2018, 10:33

Re: Gpio Pins GreyedOut

#11 Post by StevenHoogslag » 05 May 2020, 18:19

Time will tell but the two Wemos modules work together well for now. The Domoticz screen shot is a module with DHT11 shield. That shield is less accurate.

I'm very pleased with ESPEasy and Domoticz.
Attachments
2020-05 ESP Triple kastje-07.jpeg
2020-05 ESP Triple kastje-07.jpeg (75.47 KiB) Viewed 7170 times
2020-05 ESP Triple kastje-06.jpeg
2020-05 ESP Triple kastje-06.jpeg (43.72 KiB) Viewed 7170 times
2020-05 ESP Triple kastje-02.png
2020-05 ESP Triple kastje-02.png (290.83 KiB) Viewed 7170 times
2020-05 ESP Triple kastje-00.png
2020-05 ESP Triple kastje-00.png (148.83 KiB) Viewed 7170 times
2020-05 ESP Triple kastje-01.jpeg
2020-05 ESP Triple kastje-01.jpeg (91.81 KiB) Viewed 7170 times

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Gpio Pins GreyedOut

#12 Post by grovkillen » 05 May 2020, 18:21

Looks good! Thanks for sharing!
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 0 guests