Best Pin setup
Moderators: grovkillen, Stuntteam, TD-er
Best Pin setup
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 ]
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 ]
Re: Best Pin setup
what about this from the wiki:
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
dont know it this is the best for more pins, but maybe a start?..
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.
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
dont know it this is the best for more pins, but maybe a start?..
Re: Best Pin setup
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.
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.
Re: Best Pin setup
mmm
And why are 9 and 16 not working?
And why are 9 and 16 not working?
Re: Best Pin setup
On most boards GPIO 6,7,8,9,10 & 11 are connected to the flash chip and cannot be used as input or output.Dylantje wrote:mmm
And why are 9 and 16 not working?
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.
Re: Best Pin setup
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.....
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.....
Re: Best Pin setup
interessing information about pins und pullups here:
http://www.forward.com.au/pfod/ESP8266/ ... magic.html
http://www.forward.com.au/pfod/ESP8266/ ... magic.html
Re: Best Pin setup
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?
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?
-
- Normal user
- Posts: 320
- Joined: 15 Apr 2015, 14:17
Re: Best Pin setup
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.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?
I'm curious if your setup as behaving as expected.
Re: Best Pin setup
Well, I am using sensors that have been in use for quite a while with my Nodo setup, and they are quite reliable.rtenklooster wrote: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.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?
I'm curious if your setup as behaving as expected.
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.
-
- Normal user
- Posts: 103
- Joined: 16 Sep 2015, 20:32
Re: Best Pin setup
Do you use this kind of PIR (HC-SR501) :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.
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
Who is online
Users browsing this forum: No registered users and 46 guests