Descrição do problema:
- Neste circuito que usa um ESP01 com expansão de saídas com PCF8574 (I2C), estava com problema de inicialização na energização.
O circuito completo tem expansão de entrada (8) e saidas (8) , + Display OLED I2C, um monitor serial ligado ao ESP01.
-
Algumas ( várias ) vezes no RESET, o ESP01 simplesmente não conseguia reinicializar, observei uma queda significativa no 3V3 nesse momento. Então coloquei um regulador de 3V3 para o ESP01 e alimentei o resto do circuito com 5V.
-
A cada energização, era necessário resetar o ESP01 fisicamente.
Algumas possibilidades:
- Procurei maneiras de fazer esse reset por software. Consegui achar uma maneira, mas ficou preso em um loop de reset. Não funcionou.
A solução que usei, foi colocar um "Timer On Delay" a transistor no reset. Também poderia usar um 555 para essa função, mas optei por transistor.
Observação: ESP01 é alimentado com 3V3, então suas entradas estão nesse nível de tensão. Os diodos em série são para compatibilizar os níveis de tensão.
Desenho do circuito: https://photos.app.goo.gl/NGTwxzzbVT88C14Q6
Como não achei nada na internet sobre a inicialização do ESP, desenvolvi essa solução. Até hoje está funcionando bem.
Problem description:
This circuit that uses an ESP01 with PCF8574 (I2C) output expansion had a problem starting up when powering up.
The complete circuit has input (8) and output (8) expansion, + I2C OLED Display, and a serial monitor connected to the ESP01.
Some (several) times during RESET, the ESP01 simply could not reboot, I noticed a significant drop in 3V3 at that moment. So I put a 3V3 regulator for the ESP01 and powered the rest of the circuit with 5V.
Each time it was powered up, it was necessary to physically reset the ESP01.
Some possibilities:
I looked for ways to do this reset by software. I managed to find a way, but it got stuck in a reset loop. It didn't work.
The solution I used was to put a transistor "Timer On Delay" on the reset. I could also use a 555 for this function, but I opted for a transistor.
Note: ESP01 is powered by 3V3, so its inputs are at this voltage level. The diodes in series are to make the voltage levels compatible.
Circuit drawing: https://photos.app.goo.gl/NGTwxzzbVT88C14Q6
Since I couldn't find anything on the internet about initializing the ESP, I developed this solution. It's working fine so far.
