Best Pin setup

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Best Pin setup

#1 Post by Dylantje » 09 Feb 2016, 22:04

Dear...
i flashed version 78..
Looks nice...

What is the best pin setup, so i can use the max options of my esp.
What is the best setup voor the 2 hardware pins?
And what are all the others pins i can use..

I use now gpio 2 and 10 for the "hardware"
GPIO 4,5,12,13,14 for 5 devices. [ they work fine ]

Only can i use more pins, is my question... [ i need 2 pins more for my pelletstove ]

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: Best Pin setup

#2 Post by tozett » 10 Feb 2016, 08:19

what about this from the wiki:

Code: Select all

The number of GPIO pins on the ESP module can be expanded with a IO Expander. We will use the MCP23017 that provides 16 more pins that can be used as input or output. This way it becomes possible to control a 16 channel relay board.
http://www.esp8266.nu/index.php/MCP23017

or the pro-mini extender?
http://www.esp8266.nu/forum/viewtopic.p ... mini#p3354
https://github.com/ESP8266nu/ESPEasy/tr ... roExtender
(a wiki-entry missing, i guess :cry:

dont know it this is the best for more pins, but maybe a start?..

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: Best Pin setup

#3 Post by costo » 10 Feb 2016, 15:11

GPIO_pins 0,2,10 and 15 can only be used with limited useability.
Some of them need a well defined state during boot_up (0,2 & 15)
GPIO-10 is connected to the write_protect pin of the flash memory.
Using this pin probably brings the risk of corrupting the flash memory.

So indeed like tozett states it might be easyer to use a port expander.

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Best Pin setup

#4 Post by Dylantje » 10 Feb 2016, 22:54

mmm

And why are 9 and 16 not working?

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: Best Pin setup

#5 Post by costo » 10 Feb 2016, 23:26

Dylantje wrote:mmm

And why are 9 and 16 not working?
On most boards GPIO 6,7,8,9,10 & 11 are connected to the flash chip and cannot be used as input or output.
9 is the hold signal for the flash chip, that needs to stay high.
GPIO-16 is the pin that generates a resetpulse to wake-up the esp from sleep. But I guess it is possible to use GPIO-16 as input or output.

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: Best Pin setup

#6 Post by Dylantje » 14 Feb 2016, 11:38

My pin setup....
I think i use the max pins:
GPIO 0 D3 IDX 4110 contact
GPIO 2 D4 Antenne SLC/Hardware
GPIO 4 D2 IDX 4071 Temp en hum
GPIO 5 D1 IDX 3720 On off
GPIO 9 SDA/ Hardware
GPIO 10 Do not use
GPIO 12 D6 IDX 4074 & 4081 DS18B20 2x
GPIO 13 D7 IDX 4082 Temp +
GPIO 14 D5 IDX 4083 Temp -
GPIO 15 D8 not in use…?
GPIO 16 D0 IDX 4085 Power +

Some have a other setup???

I am happy with this..
With this setup i can control my pelletstove.....

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: Best Pin setup

#7 Post by tozett » 20 Feb 2016, 08:51

interessing information about pins und pullups here:

http://www.forward.com.au/pfod/ESP8266/ ... magic.html

manjh
Normal user
Posts: 516
Joined: 08 Feb 2016, 11:22

Re: Best Pin setup

#8 Post by manjh » 06 Apr 2016, 17:12

Planning to build my first "real" NodeMCU units.
One is easy, simply connect three DS18B20 sensors, I think to GPIO12.

The second will have one DS18B20, a PIR sensor (hardware connected, simple on/off), and a rain detector (also simple on/off).
I am planning to connect this way:
GPIO 0 PIR sensor
GPIO 5 rain detector
GPIO 12 DS18B20's

Any comments?

rtenklooster
Normal user
Posts: 320
Joined: 15 Apr 2015, 14:17

Re: Best Pin setup

#9 Post by rtenklooster » 07 Apr 2016, 00:33

manjh wrote:Planning to build my first "real" NodeMCU units.
One is easy, simply connect three DS18B20 sensors, I think to GPIO12.

The second will have one DS18B20, a PIR sensor (hardware connected, simple on/off), and a rain detector (also simple on/off).
I am planning to connect this way:
GPIO 0 PIR sensor
GPIO 5 rain detector
GPIO 12 DS18B20's

Any comments?
Have a simular setup running, for some reason my pir sensors give a lot of false positives, can't realy tell whether this is a esp or pir issue though.
I'm curious if your setup as behaving as expected.
Richard - Groningen (NL) - Image

manjh
Normal user
Posts: 516
Joined: 08 Feb 2016, 11:22

Re: Best Pin setup

#10 Post by manjh » 07 Apr 2016, 08:45

rtenklooster wrote:
manjh wrote:Planning to build my first "real" NodeMCU units.
One is easy, simply connect three DS18B20 sensors, I think to GPIO12.

The second will have one DS18B20, a PIR sensor (hardware connected, simple on/off), and a rain detector (also simple on/off).
I am planning to connect this way:
GPIO 0 PIR sensor
GPIO 5 rain detector
GPIO 12 DS18B20's

Any comments?
Have a simular setup running, for some reason my pir sensors give a lot of false positives, can't realy tell whether this is a esp or pir issue though.
I'm curious if your setup as behaving as expected.
Well, I am using sensors that have been in use for quite a while with my Nodo setup, and they are quite reliable.

I have two kinds: a handful of cheap Chinese units that send out a signal on 433MHz, and a few DIY units that are currently wired to a Nodo.

The 433MHz units are already on Domoticz and work OK (after a few hickups). The wired units are now going to be connected to a NodeMCU.

NietGiftig
Normal user
Posts: 103
Joined: 16 Sep 2015, 20:32

Re: Best Pin setup

#11 Post by NietGiftig » 07 Apr 2016, 10:09

rtenklooster wrote: for some reason my pir sensors give a lot of false positives, can't realy tell whether this is a esp or pir issue though.
Do you use this kind of PIR (HC-SR501) :
http://www.ebay.com/itm/5PCS-IR-Pyroele ... Swl9BWMer1

What voltage do you use for Vin.
These PIR's have a 3.3v converter onboard, so you can (must?) use 5V in.
The output can used without problem to your ESP.
At least with my PIR's, I have 5 units working for a couple of months.
Not a single false reading as far as I have seen

Post Reply

Who is online

Users browsing this forum: No registered users and 46 guests