I want to reset an ESP32 using an arduino pro mini.
I was not sure to connect the enable pin of the ESP directly to a pin of the arduino so I used a pin of an ULN2003a wich I use to activate some relays of the circuit.
It seems it is working but not sure if it is correct connection. The COM pin of the ULN2003a is connected to 5V wich is the voltage of the Relays.
Enable pin needs to be pulled down to GND to reset Esp. You can do it directly from pro mini, just make sure to not to pull it up. Remember to have common ground between two of them.
I have a similar problem I am working on a project where I use an Arduino Mega to control an ESP32 and restart it when it stops communicating because it is in a loop or stuck. The circuit is simple I go out from a pin of the mega and through a voltage leveler to adjust the signal and not compromise the esp32 I enter the pi EN of the Esp32.
The challenge I am facing is that when the Arduino Mega restarts, the ESP32 also inadvertently resets due to changes in the state of the GPIO pins that are used to control the reset line of the ESP32. This is problematic because I need the ESP32 to remain operational even if the Arduino Mega is restarted. I have tried implementing a circuit with a transistor to isolate the reset signal, but I am still having problems with inadvertent resets because I think the circuit is wrong. I am looking for a reliable solution that ensures that the ESP32 only resets when explicitly commanded by the Arduino Mega, rather than as a result of GPIO state changes during boot.
Ditch the Mega and use one or more GPIO expanders if you need more GPIOs on the ESP32. There's nothing the Mega can do that the ESP32 cannot do, so having both in the same system makes little to no sense.
Jim forgives my approach (not very standard) but as you can see with just one more post this topic has given me more opportunities to help, even others who like me will arrive at this page by searching on the internet like I did.
The topic is practically the same and now it can also help others who have my variant of the problem, and who will thus avoid writing their "new post" almost identical to this one... avoiding new work for the moderators and we are all happier ^_^... am I wrong?
There is not only black and white.
I can't abandon Mega, because it all starts from the fact that I'm adding wifi functionality to a project entirely based on Arduino Mega, wired, and 3D printed, which would mean changing everything and then starting again.
Then mark the topic as solved so that everyone can see that there is a solution and so that other won't continually come here and read the entire post thinking you or the original OP still need help.