Sonoff Basic doesn't start when GPIO2 is LOW

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Velthuis
New user
Posts: 2
Joined: 26 Jan 2019, 17:27

Sonoff Basic doesn't start when GPIO2 is LOW

#1 Post by Velthuis » 26 Jan 2019, 17:45

Hi!

I've a Sonoff Basic with the latest hardware revision (Sonoff RF R2 POWER V1.0).
GPIO14 is no longer available and has been replaced with "IO2" which is connected to GPIO2.

GPIO2 needs to be "HIGH" during boot, otherwise EasyESP won't start. Once EasyESP has started I can use the GPIO to detects triggers, this is working fine and stable.

This behavior makes my application unreliable since the sensor might output "LOW" when the Sonoff unit is booting.

Secondly, there seems to be an internal pullup, can this be disabled? My sensor actively pulls down in a "LOW" situation, this conflicts with the internal pullup of the Sonoff unit resulting in +/- 200mV on the GPIO in a "LOW" condition.

Any ideas?

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

Re: Sonoff Basic doesn't start when GPIO2 is LOW

#2 Post by Shardan » 27 Jan 2019, 01:27

The ESP8266 has some "special" GPIOs.
It can be started from a SD-Card for example, or it can be started in Flash mode.
These modes are controlled by these special GPIO's.
GPIO2 is one of these special ones. It must be "high" at boot time.
If it is "low", the ESP boots to wrong mode.
Regards
Shardan

kimot
Normal user
Posts: 190
Joined: 12 Oct 2017, 20:46

Re: Sonoff Basic doesn't start when GPIO2 is LOW

#3 Post by kimot » 27 Jan 2019, 10:11

At first I suggest using different GPIOs - I am using RX and TX pins from new Sonoffs connector.

Or you must use some circuit like this:
IMG_20190127_094534.jpg
IMG_20190127_094534.jpg (208.64 KiB) Viewed 4256 times

Velthuis
New user
Posts: 2
Joined: 26 Jan 2019, 17:27

Re: Sonoff Basic doesn't start when GPIO2 is LOW

#4 Post by Velthuis » 27 Jan 2019, 20:46

Using the RX pin now instead. TX pin has the same behavior !

Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests