Mosfet n channel issue with ESP8266

Wawa:
I assume the ESP8266 has a sleep mode.
If so, there is no need to turn off the power.
Leo..

Only the most advanced ones, and they can't be turned on back based on an external interruption, ESP8266-1 is pretty basic, can't put it to sleep, doesn't have the necessary pins for setting this :slight_smile:

dlloyd:
High side power switch. (suggestion)

I'll review this thanks :slight_smile:

Grumpy_Mike:
You ignored that didn't you?
Can you read that schematic? Let me tell you, you can't.

The parts need dragging into a more sensible place. Then the dotted wires which are called rat's nest wires need routing so they are composed of horizontal and vertical sections. Diagonal wires are not acceptable in a schematic.

The thing about Fritzing and it is why it is hated on this forum is that to use it you require far more skill than you have when you use it, which happens when you feel you need a physical layout diagram. So you make substitutions and render it all useless. By you I mean one, not you personally.

Where is the 5V coming from?

The problem with this is the connections to the Arduino. When the output is high you feed 5V into a 3V3 system, this is very bad. When the output is low the Arduino is feeding a negitave voltage into the ESP, due to the voltage drop across the FET.
Either of these can be enough to latch up the ESP and stop it working.

The use of power switching from the top like in reply #10 will solve the negitave voltage situation. A potential divider of 510R and 1K will cut down the 5V output signal from the Arduino to the ESP to 3V3. Finally you need to make that output signal into an input before removing the power, and make it an output again once the power has been restored.

Mike, I wouldn't say that I ignored, I just did not understand how to do that. I'm not an engineer just an enthusiast who is trying to make something functional.

Regarding your question about 5v, I don't have any 5v here, if you see the breadboard you will see 3.7v battery, my actual input is based on this:

The reason why I don't have this in the breadbard/schematic from fritzing is because I didn't find the components to do it.

But I can ensure you that ESP is receiving 3v only and not 5 :slight_smile: I know it is not tolerant and you can burn the whole thing if you insist on that.

I reviewed your schematic from #10 reply, looks very good, but there is something I need to ask considering my limited knowledge on this: Is there an easier way to make it work even if is not the best way ? If not then I'll try to implement it. I ordered already the 2n3904 that should get home in few days.

Many thanks for your patience !

The 2N3904 transistor is a general purpose switch type. It is one of those things you should just have a bag of on hand (another I often use is the 2N4401). Places like Jameco.com carry them all the time - buy a bunch just to have on hand. Less than 10 cents each - no point in paying shipping for one when you can buy 100 of them and just have them on hand. You will find you often use that sort of transistor for turning things on etc. (the 2n4401 is rated 600ma @40v, the 2n3904 is 200ma at 40v - typically, you are going to be using them more in the 20-100ma range so either is fine - the best one is the one you have in your "parts bins" :slight_smile: )

Mikey,

Regarding these transistors, can they be used to switch on/off the (+) instead of (-) is there any limitation for this ?

Thanks

They are standard switching transistors. You need to look at how they work to determine how they fit your needs - the answer to your question is yes, either could switch it - you need to look at how they work so you understand how to switch stuff with them. A bipolar transistor like that is simply controlled by the base current - you need to look at how to provide that current correctly to make it do what you want.

Regarding these transistors, can they be used to switch on/off the (+) instead of (-) is there any limitation for this ?

If you're considering using the 2N3904 as a high side switch (emitter follower), then there will be a considerable voltage drop from the collector to emitter. It won't work for this application. However, it could be combined with a P-channel MOSFET to create a high side switch as in replies 5 and 8.

dlloyd:
If you're considering using the 2N3904 as a high side switch (emitter follower), then there will be a considerable voltage drop from the collector to emitter. It won't work for this application. However, it could be combined with a P-channel MOSFET to create a high side switch as in replies 5 and 8.

I'm actually trying to figure out how to implement this:

I have the components but I'm struggling to understand the schematic, especially what are the pins that go out from 2n3904 to p channel mosfet.

Thanks,

Do you know the symbol for a transistor? The connection to R3 is called the base, the one with the arrow is called the emitter and the one with no arrow is called the collector.

Grumpy_Mike:
Do you know the symbol for a transistor? The connection to R3 is called the base, the one with the arrow is called the emitter and the one with no arrow is called the collector.

Thanks Mike, Yes, I'm familiar with the resistor, what I don't know is where should I connect the emitter, the one with the arrow that "goes down" on the schematic, should it go to the circuit GND ?

Thanks

Those triangle things mean ground

be80be:
Those triangle things mean ground

Thanks I will review the circuit based on this !

These are what are used as ground

The 3 too the right are used to show a ground the most.

Yes that triangle is the symbol for GND. All wires to that and similar symbols go to the same place even though wires are not shown.

flabombarda:
I'm actually trying to figure out how to implement this:

I have the components but I'm struggling to understand the schematic, especially what are the pins that go out from 2n3904 to p channel mosfet.

Thanks,

Hi could we have the p channel mosfet component reference?
Thanks you

Thank you all for the help !

Could you please validate the attached breadboard to see if it is correct based on the proposed schematic ?

thanks !

ksartor:
Hi could we have the p channel mosfet component reference?
Thanks you

I'm using this: 6nc60 as mosfet transistor.

Thanks

I'm using this: 6nc60 as mosfet transistor.

Sadly I don't think that will work. It is not a logic level FET, it requires 10V to fully turn it on, you only have 3V3.
Don't be fooled by the gate threshold voltage in the data sheet, that is just the point where the FET begins to conduct.

Grumpy_Mike:
Sadly I don't think that will work. It is not a logic level FET, it requires 10V to fully turn it on, you only have 3V3.
Don't be fooled by the gate threshold voltage in the data sheet, that is just the point where the FET begins to conduct.

Correct Mike , not working :slight_smile:
What would you recommend here ?

I'm considering the usage of a solid state relay if I can't make it work. Any thoughts ?

Thanks !

Hi,
Have you got a DMM to measure some voltages?

Thanks.. Tom.. :slight_smile: