JeremyCook
JeremyCook
DIIDevHeads IoT Integration Server
Created by aymen ammari on 12/10/2024 in #pcb-and-analog
ESP8266 Relay Stays On – Why Won’t It Turn Off?
If I was trying to troubleshoot this, maybe look at the relay separately from everything else. Hook up the input VCC and Gnd to an independent power supply, then toggle the input pin to high and to low and see what the response is. If it's clicking/changing where the COM connects or if it's not that tells you something. You might even hook up the motor in such a manual setup too to see if it controls things. The other thing you might consider is whether the motor is drawing too much current for the power supply it is hooked up to. Seems like I ran into a situation long ago where I was attemting to run a motor with a much-too-small relay and it would get stuck on. Not quite the same situation, but something to consider. Finally, what type of relay to you have? This sort of operation might be normal depending, but the docs and/or the fist test should give you some indication.
4 replies