Yes. I'll try replacing a few capacitors based on recommendations I received elsewhere. Additionally, I'll add a flyback diode and run some tests again.But won't know for sure for a couple hours as before?
Yes. I'll try replacing a few capacitors based on recommendations I received elsewhere. Additionally, I'll add a flyback diode and run some tests again.But won't know for sure for a couple hours as before?
A watchdog is a piece of hardware that periodically checks to see if the processor has locked up, in which case it drives the reset pin and reboots it. There are watchdog timers built in to the ESP32, but the one that would work for this—RTC_WDT (Real Time Clock Watchdog Timer)—is used for watching the boot process and resetting if it seems to hang.Thanks for the reply.
1. A buck converter is definitely a better solution, and I plan to switch to it. However, I’d like to first understand the root cause of the problem. I used standard capacitor values, which are commonly found on modules using these regulators.
2. I’m not familiar with the watchdog. If it needs to be enabled manually, it’s likely not running. Could you please tell me more about it?
Are you still having the issue with the relay "ticking"?Additionally, I'll add a flyback diode and run some tests again.
Yes, it persists. And it's indeed caused by ESP32 sending data because when I turn off this function in code - ticking disappears. I am thinking about adding a bulk decoupling capacitor. Any other ideas on how to resolve this ticking issue?Are you still having the issue with the relay "ticking"?
Thank you, I will try it.
May need to experiment with the value of C30.Thank you, I will try it.
I changed R15 to 3.3k and tested different values for C30. With 10 µF, 4.7 µF, and 1 µF, the relay activates for no obvious reason, even though the transistor's base is set to LOW. Adding a 0.1 µF capacitor has no noticeable effect—the relay doesn’t activate, but the ticking persists. Would it make sense to try capacitor values between 0.1 µF and 1 µF? I also tried to pulldown the transistor base with a 10k resistor, but nothing has changed.May need to experiment with the value of C30.
That makes no sense unless the transistor is defective or installed incorrectly.I changed R15 to 3.3k and tested different values for C30. With 10 µF, 4.7 µF, and 1 µF, the relay activates
Yes, and it acts like I described above.Q1 is configured like this:
View attachment 341546
I tried a new transistor, so it's not damaged. There's no chance it was soldered incorrectly.That makes no sense unless the transistor is defective or installed incorrectly.
I'm not sure. Is there a significant difference?Is that transistor a 2N2222 or a 2N2222A?
Yes. What is written on the transistor?I'm not sure. Is there a significant difference?
Correct. What baffles me is how connecting a diode to the coil activates the relay without a GND connection. Yet, the relay and transistor work perfectly without the diode.
Is the circuit with the capacitor on the base and a diode across the relay working or not?Correct. What baffles me is how connecting a diode to the coil activates the relay without a GND connection. Yet, the relay and transistor work perfectly without the diode.
It doesn't. The relay stays always activated.Is the circuit with the capacitor on the base and a diode across the relay working or not?