I wrote a code that will take input from a push button after that it will delay for 2 seconds and start the relay for 3 milliseconds then it will stay off. so my code works fine in wokwi simulator but whenever I tried uploding the code on esp32. code successfully uploads but it dose not works as i wanted . when I press the push button nothing happaned. I press many times still nothing happened .
then I pressed for long time the relay start but when I relese the button relay stops . bi tried many things like changing the code a bit wiring the relay to different GPIO that still not helped me
i need serious help! [ my esp32 and relay module are perfectly fine ] i’m gessing internal noise are casuing the problem.
Well i’m expecting when I’m going to >> press the button >> 2 seconds delay >> relay module will start for 3 milliseconds >> everything reset for next button press ||