Boot problem

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
kirelam
Normal user
Posts: 29
Joined: 04 Apr 2016, 12:10
Location: Westervoort

Boot problem

#1 Post by kirelam » 25 Jun 2017, 20:23

Dear ESP'ers,

I have a awkward problem. I use a D1 mini as a node for my greenhouse environment.
almost every GPIO port is used without any problem with sensors and 1 relay 4 channel. But if i connect the relay,
the ESP will not boot.
I discovered that the ESP works fine with the relay if i connect it the after the ESP has boot.

For the pin layout for the relay i use GPIO: 14, 12, 13, 15.
The only reason i can think of the boot problem is that GPIO 13 and 15 can function as TX/RX and that somehow the Relay
sends a signal back over these pins while booting. This shouldn't be possible, because the relay uses optocouplers, righy?

It works right now, but it is anoying that after a power cut or so i have to disconnect the relay, boot and connect it again.

Anyone an idea and/experience/or a solution?


Many regards,
Kirelam

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

Re: Boot problem

#2 Post by grovkillen » 25 Jun 2017, 21:09

https://www.letscontrolit.com/wiki/inde ... figuration

You should measure GPIO 15 during power on and see if it is LOW. If it is HIGH the unit will not boot. I guess the relay might give a signal HIGH on boot?
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:

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Boot problem

#3 Post by Shardan » 25 Jun 2017, 22:20

kirelam wrote: 25 Jun 2017, 20:23 The only reason i can think of the boot problem is that GPIO 13 and 15 can function as TX/RX and that somehow the Relay
sends a signal back over these pins while booting. This shouldn't be possible, because the relay uses optocouplers, righy?
As grovkillen wrote, i think that GPIO15 is the one.

Optocouplers have an input side. If that Input is connected to "High" it can give a "high" signal to the ESP.
OC's should isolate the relay from the ESP circuit (only as long as you use separate power supplies!).
Nevertheless the voltage driving the LED of the OC can infuence the ESP.

Regards
Shardan
Regards
Shardan

Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests