Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By Lawrence_jeff
#6407 Are you sure you are not pulling GPIO0 low and putting it in bootloader mode at start?

Also GPIO2 also needs to be high on bootup apparently, according to a comment here
https://scargill.wordpress.com/2015/01/ ... /#comments

"Don’t forget that GPIO2 and U0TXD should be kept high during power-up (they have internal pull-ups enabled). This also limits the use of GPIO2, we cannot apply a strong low level to it during start."
User avatar
By martinayotte
#6410
JannikJung0 wrote:Okay, so I have two coices now:

Should I go with a 2N7000 (N-CH MOSFET) or a BS-208 (P-MOSFET) ?
Or do you have any other part suggestion ?


2N7000 should be good to drive your relay, except if it has a monster coil ... Do you know it consumption ?
For your prototyping, since you mentionned you don't have MOSFET in stock, simply do a darlington with 2 NPN transistors.
User avatar
By JannikJung0
#6471
Lawrence_jeff wrote:Are you sure you are not pulling GPIO0 low and putting it in bootloader mode at start?

Also GPIO2 also needs to be high on bootup apparently, according to a comment here
https://scargill.wordpress.com/2015/01/ ... /#comments

"Don’t forget that GPIO2 and U0TXD should be kept high during power-up (they have internal pull-ups enabled). This also limits the use of GPIO2, we cannot apply a strong low level to it during start."


That's the case.. GPIO2 is pulled down to ground on bootup, that's why it isn't booting up.
So I will wait until the MOSFETs arrive, the relay needs less than 400mA, so it should be fine.

Thanks everybody for your help!