I'm trying to close an external circuit very briefly (0.2 seconds) with an ESP32.
I have a motorized garage that is not capable of having a remote (internet-enabled) switch (or so all the professionals tell me). So what I'm doing is using some Hall-effect sensors to determine if the garage door is fully open or fully closed.
Then when one of them is true, I can tap on a button on a web page (which is on the ESP32) to actuate the garage door.
To pull this off, I've managed to solder a few wires onto the garage's micro-switch. When I close the circuit (literally touch the wires together), the garage either opens or closes depending on the garage door status.
What I need to do now is figure out a way to "touch" those wires together using logic on the ESP32 so that I can check on the status of the garage door and close it over the internet.
What is the best way I can go about doing this?
If this is the wrong stack exchange site, please let me know, and I'll remove the post.
I've been using this github post as a basis for my project
delay
function of 100ms or so. Of course that delay time should be longer than your Relay response time. \$\endgroup\$delay(200);
, but the real crux is how to get the esp32 to close the circuit. \$\endgroup\$