Control ESP32 using a flip-flop or transistor when the button is pressed or the pin is toggled
Posted: Sun Jul 09, 2023 9:28 pm
Hello dear community,
Unfortunately, I couldn't find anything suitable using the search functions. Or rather, the ones I found were too old to be worth revisiting.
As the title suggests, I am looking for a way to control my ESP using a button. I have already written a sketch that sets Pin 5 to high based on my MQTT commands... now I just need the necessary hardware for this.
In simple terms, I want the ESP to receive power when the button is pressed, execute its commands, and then turn off again. I want everything to happen manually, and preferably in a power-efficient manner since I rely on batteries.
Unfortunately, I'm not particularly knowledgeable in electrical engineering. I've only just grasped the concept of URI and voltage drop.
I understand the basic functioning of a transistor, but I'm not sure how to calculate the signal strength.
I don't want someone to explain everything from A to Z. Are there any alternatives or modules that can handle this job? Essentially, I just need some kind of flip-flop/transistor circuit that can be switched once with the button and then with the pin.
I hope my jumble of words can be read and understood, and someone will take pity on me.
Thank you very much,
Maxim
Unfortunately, I couldn't find anything suitable using the search functions. Or rather, the ones I found were too old to be worth revisiting.
As the title suggests, I am looking for a way to control my ESP using a button. I have already written a sketch that sets Pin 5 to high based on my MQTT commands... now I just need the necessary hardware for this.
In simple terms, I want the ESP to receive power when the button is pressed, execute its commands, and then turn off again. I want everything to happen manually, and preferably in a power-efficient manner since I rely on batteries.
Unfortunately, I'm not particularly knowledgeable in electrical engineering. I've only just grasped the concept of URI and voltage drop.
I understand the basic functioning of a transistor, but I'm not sure how to calculate the signal strength.
I don't want someone to explain everything from A to Z. Are there any alternatives or modules that can handle this job? Essentially, I just need some kind of flip-flop/transistor circuit that can be switched once with the button and then with the pin.
I hope my jumble of words can be read and understood, and someone will take pity on me.
Thank you very much,
Maxim