Hello
I am creating a circuit based on the ESP-12F itself which is supposed to operate over I2C various peripherals (sensors) and control several circuits digitally or via N-mosfets. (please don't look at the mosfet designations - examples from the Eagle library)
Buttons and programming connections are not envisaged, as I have a separate programmer with which I can program the ESP in the target circuit.
I don't plan to use the lower ESP pins (no holes) because they are used for flash and I will need that after SPI.
The initial schematic looks like this:
.
And now the dilemmas arise:
1. at boot the only pins that are not H are GPIO4 and GPIO5, but these are used for I2C.
So I am reliant on the other pins. The snag is that I want to connect N-mosfets under 3-4 pins. Unfortunately it is unacceptable
to give H on reset even for a moment. Does it make sense to try to solve this by inverter and set pin in setup() as high,
and to switch the mosfet on simply change the state to low? Is this likely to work?
2. if the ESP is already programmed do I need to do GPIO15 with a pull-down or can I not do that and use it like a normal pin?
3) If I connect a mosfet (as on the schematic, through a resistor and with a resistor to ground) to GPIO0, won't it accidentally enter
into flash mode on reboot? (it is possible that using the above inverter this issue would also be solved)
4. can I also set the ADC as digital input or output or does it only work as "analog input"?
I kindly ask for your consultation.
kind regards
I am creating a circuit based on the ESP-12F itself which is supposed to operate over I2C various peripherals (sensors) and control several circuits digitally or via N-mosfets. (please don't look at the mosfet designations - examples from the Eagle library)
Buttons and programming connections are not envisaged, as I have a separate programmer with which I can program the ESP in the target circuit.
I don't plan to use the lower ESP pins (no holes) because they are used for flash and I will need that after SPI.
The initial schematic looks like this:
![[Electronics] ESP-12F: N-mosfet control at boot, GPIOs [Electronics] ESP-12F: N-mosfet control at boot, GPIOs](https://obrazki.elektroda.pl/9592140200_1532344842_thumb.jpeg)
And now the dilemmas arise:
1. at boot the only pins that are not H are GPIO4 and GPIO5, but these are used for I2C.
So I am reliant on the other pins. The snag is that I want to connect N-mosfets under 3-4 pins. Unfortunately it is unacceptable
to give H on reset even for a moment. Does it make sense to try to solve this by inverter and set pin in setup() as high,
and to switch the mosfet on simply change the state to low? Is this likely to work?
2. if the ESP is already programmed do I need to do GPIO15 with a pull-down or can I not do that and use it like a normal pin?
3) If I connect a mosfet (as on the schematic, through a resistor and with a resistor to ground) to GPIO0, won't it accidentally enter
into flash mode on reboot? (it is possible that using the above inverter this issue would also be solved)
4. can I also set the ADC as digital input or output or does it only work as "analog input"?
I kindly ask for your consultation.
kind regards