On boot up pins go high!

Do you have any other hardware to test?

Paste your entire sketch

Yeeeeeaaaaaaa!!!

Finally!!! Worked at pin D1 D2 (GPIO4 GPIO5) :slight_smile: :slight_smile: (Lock - Unlock)

I thing the board is broken or bad quality… IDK :frowning:
I want to know the answer but i can’t find the error …

And now on reboot works normal (It doesn’t give voltage to the pins D1 D2)…

1 Like

Great you got it working!

Hopefuly this issue was to do with the board and thats it! :slight_smile:

Yeaa my friend! Thanks for your help! :slight_smile:

1 Like

@Dimitris I have same issue in my nodemcu.
To solve it, in setup, I first connect to the server and after I set the pinmode to output and to low, it worked for me on every pin. Lets try it.

2 Likes

@darkmoon thanks the same thing told me @Jamin …I Tried but failed:( I am 80% sure about hardware failure because when i power it up instant i got high status on the pins… Without bootloader and blynk loaded…!! This is normal …

If anyone solve the mystery i am here :smiley:

@Dimitris I don’t see where jamin tolds you to change the order of your setup function.
You have that:
Pinmode
Digitalwrite
Blink connection

I said you that:
Blink connection
Pinmode
Digital write

Did you test that?

Like this ?

I have uploaded a video to see whats the problem… I just click reset to reboot! @darkmoon @Jamin

https://drive.google.com/open?id=0BzsBXB7LzyHXaXpKdGJRVXNCa1E

@Dimitris just flash a blank sketch and then put your meter on all the pins to see which are high and which are low. On the WeMos some are high and some are low.

Then wire up your system based on what your meter tells you.

For a WeMos D1 Mini Pro the bootup status is:

D0 LOW
D1 LOW
D2 LOW
D3 HIGH
D4 HIGH
D5 LOW
D6 LOW
D7 LOW
D8 LOW
A0 LOW
RX HIGH
TX HIGH

GPIO details for these pins are available at https://www.wemos.cc/product/d1-mini-pro.html
It is normal for D3 and D4 (GPIO 0 and GPIO 2) to be HIGH for all ESP’s as that is part of the regular boot sequence.

4 Likes

Thanks for your info but in first build i used the D6 D7 and was high :frowning: … Now i change them to D1 and D2 and is ok!!

Anyway i will try the Blank sketch as you told me and i will post results :slight_smile:

Thanks!

1 Like

This is my board btw :

1 Like

@Dimitris your OP stated Node MCU V3?

Yes, exactly like this… same problem?

Well, just my 5cents: Yes, in ESP boards some pins are high, some are low at startup… Then the only way (if You can’t allow for short pin-triggering) is to reverse the logic of some particular circuit/pin! There are plenty of ways to do it…

1 Like

yes nodemcu v3!

@darkmoon it’s the same yes :frowning:

@marvin7 can i have an example or guide?

Thanks

Specifically a RobotDyn ESP8266-Pro which they quote as having “10 GPIO’s D0-D10” but the boards are clearly not marked as D0 to D10.

I notice you state you used D6 and D7 to start with but I can’t see any D pins higher than D3. I can’t find a schematic for the board that ties IOx to Dx, do you have one?

These are bespoke boards and the manufacturer may have decided to mess around with the “standard” or just messed up when they were manufactured. I have boards where the screen printing is simply wrong.

Sure, the simplest one is just with NPN transistor:

Or N-channel mosfet:

You can use the CD4049 inverting buffer. Good when more than a couple needs inverting:

Or use an optocoupler. These (below) examples are not the best ones, as the principle of using optocoupler is lost here, but this is the first I’ve found on web, and gives a good “explanation” of “how to use them”.:

1 Like

@Costas you have right the official picture its not the same for some reason sorry here is a picture of my board :

@marvin7 thanks for the examples i will take a look!!

@Dimitris do you have a schematic that ties the screen printed labels to GPIO numbers?