As a continuation of my previous question about what type of part I'd need to control a circuit with a higher voltage, I put together schematics for what I hope would achieve what I am looking for without blowing things up, making use of a voltage regulator and a MOSFET now. However, as I am a beginner, I have questions (and my electrical English isn't the best, so I'm having a hard time understanding parts of the spec sheets):
EDIT
Updated version further down
Is the step down converter hooked up correctly?No, and I could have seen that from the examples in the spec sheetDid I understand the MOSFET right? Right now I assume that the drain (lamp) will be connected to the source (USB plug) once the gate gets "triggered"/the GPIO is set to high
The ESP's documentation says to pull down GPIO0 if you want to flash it and otherwise up; Did I implement that right? I am not sure if it is correct to pull it down without a resistor (I was using a resistor that was connected to either Vcc or GND in my tests, so I didn't have this problem) as this would technically be a short, right? But I would assume that if I added one there it had to be smaller than the R3/10k one to make the current "flow" into the right direction, correct? How would I determine that resistance?
And if I should use one, does that mean I should add one to the RST pin as well? And would it make a difference if it was before or behind the reset switch?
Furthermore, in my first approach I had a shared GND for the 3.3v and 5v lines like this:
I assume that would be wrong, but why? In my mind, where I'm still picturing current like water in a pipe (thanks to a friend who never gave up trying to explain electronics to me), the issue basically looks the same to me as using 5v for the input: The problem is too much current, it doesn't matter if it's "coming in" as 5v or "leaving" via the common GND (which, in my water analogy, would be overflowing a 3.3 liters drain by trying to flush through 5 liters --> overflowing water = heat/component's death). Is that (in a nutshell) more or less correct? Seems as if my guts told me to do it right the first time, but why do I need to have a common GND?
Small question to finish everything up: In my schematics, I've used red for Vcc, black for GND, orange for 5v and blue for "logic" related connections. Is that OK? Also, how do you correctly draw the crossed wires for the serial port? Anything else about the drawing in general? I want to get used to the correct conventions as early as possible.
EDIT
OK, thanks Peter Bennett, I could have spotted the issue with the capacitors if I paid more attention to the examples in the sheet:-/ I've incorporated that into the version with the common ground, so it looks like this now:
Can anyone explain why the grounds have to be connected or maybe link one of the probably countless great answers that have very likely been posted here before? It feels wrong to me and would like to understand why it is necessary:-/