Witch pin not to use

Moderators: grovkillen, Stuntteam, TD-er

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

Witch pin not to use

#1 Post by Dylantje » 17 Jan 2016, 23:26

Dear....

What are the pins i can not use...

Then i see this...
ScreenShot024.jpg
ScreenShot024.jpg (17.55 KiB) Viewed 7599 times
Can i change this?

What is the maximum pins i can use...

What are the best pins for the Short pulses option:
http://www.esp8266.nu/index.php/GPIO

I must give my pelletstove a puls for 2 or 3 seconds, and then he is reacting

chrille
Normal user
Posts: 88
Joined: 26 Aug 2015, 15:11
Location: Horsens, Denmark

Re: Witch pin not to use

#2 Post by chrille » 18 Jan 2016, 08:25

Dylantje wrote:What are the pins i can not use...

Then i see this...
ScreenShot024.jpg
Can i change this?

What is the maximum pins i can use...

What are the best pins for the Short pulses option:
GPIO 0, 2 and 15 have special purposes during boot, and you must make sure that GPIO 0 and 2 is not pulled low during boot and GPIO 15 must be low during boot. After boot you can use the pins for normal purposes. I have SDA on GPIO 0 and SCL on GPIO 2 - this works fine, as the I2C bus requires pullup resistors to work anyway.
GPIO 4 and 5 are good choices for trigger pins for relays etc

- Jan
Jan Chrillesen, Denmark

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

Re: Witch pin not to use

#3 Post by Dylantje » 18 Jan 2016, 10:48

When i try to use gpio 9 and 10..
The Esp is action very strange...

The esp is crashing...

I do use now the GPIO pins:
4,5,12,13,14 for contact and 1 DHT22

on 13 i try to use an ds18b20, only i see just 0.0c
Do i need this perhaps?
ScreenShot025.jpg
ScreenShot025.jpg (19.94 KiB) Viewed 7576 times

0 and 15 as hardware, and 2 i can not use..


Are there more gpio pins i can use?

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: Witch pin not to use

#4 Post by BertB » 18 Jan 2016, 18:34

Dylantje wrote:When i try to use gpio 9 and 10..
The Esp is action very strange...

The esp is crashing...

I do use now the GPIO pins:
4,5,12,13,14 for contact and 1 DHT22

on 13 i try to use an ds18b20, only i see just 0.0c
Do i need this perhaps?
ScreenShot025.jpg

0 and 15 as hardware, and 2 i can not use..


Are there more gpio pins i can use?
What do you mean with 'this'? You do need a pull up resistor as in the schematic.
You probably use a NodeMCU or a Esp-12 E or F? Pins 9 and 10 are special use.
Somewhere I read you can only use them in ESP-12D

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

Re: Witch pin not to use

#5 Post by costo » 19 Jan 2016, 00:57

BertB wrote: ..............
You probably use a NodeMCU or a Esp-12 E or F? Pins 9 and 10 are special use.
Somewhere I read you can only use them in ESP-12D
This article explains a bit about GPIO9 & GPIO10 http://smarpl.com/content/esp8266-esp-2 ... and-gpio10 e

If GPIO9 and GPIO10 can be used depends on the mode the ESP is being flashed.
In the IDE the board 'Generic ESP8266 Module' has a option to choose between DIO and QIO mode. In DIO mode GPIO9 and GPIO10 are available.
I tested a ESP201 module which have pin 9 and 10 broken out. If flashed in QIO mode, connecting a device to one of them make the module crash but when flashed in DIO mode I can use GPIO 10 as data input line for a DHT22 module. The DHT has a pullup of 4k7 onboard. When I use it on GPIO9 the module crashes , I do not know the reason.

The same happens with the NodeMCU board, in the IDE one cannot choose DIO or QIO, but it seems that DIO is the normal mode for this module and I can confirm that it behaves the same as the ESP-201 flashed in DIO mode. So GPIO10 can be used for the DHT22 and using GPIO9 makes the board crash.

Maybe GPIO9 can be used as an OUTPUT with external pullup, I have not tested that.

edit:
I did not scroll down on that page, to free pin 9 and 10 a hardware modification is also needed.
That it worked for me on GPIO10 is no guarantee that it is stable.
So for normal users: do not use GPIO9 or GPIO10 unless the board is modified.
Last edited by costo on 19 Jan 2016, 01:54, edited 1 time in total.

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

Re: Witch pin not to use

#6 Post by Dylantje » 19 Jan 2016, 01:06

@ Costo...

Yhanks..
Only i do have errors on all my bords: :oops: :oops: :oops:

Code: Select all

PID:0
Version:0
INIT : Incorrect PID or version!
RESET: Cold boot
And / or:

Code: Select all

dt reset
load 0x4010f000, len 1264, room 16 
tail 0
chksum 0x42
csum 0x42
~ld
ªU
INIT : Booting Build nr:48
WIFI : Connecting...
IP   : Static IP :192.168.5.101
INIT : I2C

 ets Jan  8 2013,rst cause:4, boot mode:(3,4)

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 9 guests