Hey! So just based off what you said, here's a list of possible issues that might be occurring:
-
Grounding issue or ground loop – Causes erratic behavior; ensure all grounds are tied at a single point.
-
Voltage dips or unstable 5V rail – Use decoupling caps (100nF + 10µF) near ICs, especially RTC and Arduino.
-
Back-EMF from motor – Add flyback diodes across motor terminals even with L298N.
-
L298N’s 5V regulator overheating – Bypass it; power logic separately.
-
Relay switching noise – Causes microcontroller brownout/reset; add flyback diode and snubber across relay.
-
Inrush current or poor solar charging – Capacitor bank may help; verify stable power under load.
-
Bad solder joint or cold joint – Thermal cycling reveals it later.
-
RTC losing time – May be underpowered or I2C interference; decouple and isolate SDA/SCL with resistors.
-
USB smoking – Likely 5V backfeed from step-down into USB; Schottky diode fix was correct.
Check those, especially power and grounding.
2 Likes