Hi !
I am building a 12V UPS and I have a problem...
On the front panel I have the main power switch (at 230Vac). It is the one from the low-left, with 2 thick blue wires. Those wires are in series with the main SMPS (that module from the middle of the case, with yellow label). But they pass close to the control board, where I have low DC voltages and a Pico microcontroler. The problem is that sometimes when I flip that switch, the control board goes crazy. It resets or turn off the microcontroler. Do you think that these problems can occur because of the parasitic spikes generated by the switched high voltage or something like that ? Can I do someting to stop them ? Should I shield the 230V cables ? If yes, where should I tie the shield, at earth or at circuit gnd ? Would it help if I place some sbubbers on the switch ? I don't even know what the problem is, but I suspect it's from the switch.
And one more thing. Could I simulate the parasitic behavior in LTSpice ? What would be the key elements in the presented context ?
Thanks !

I am building a 12V UPS and I have a problem...
On the front panel I have the main power switch (at 230Vac). It is the one from the low-left, with 2 thick blue wires. Those wires are in series with the main SMPS (that module from the middle of the case, with yellow label). But they pass close to the control board, where I have low DC voltages and a Pico microcontroler. The problem is that sometimes when I flip that switch, the control board goes crazy. It resets or turn off the microcontroler. Do you think that these problems can occur because of the parasitic spikes generated by the switched high voltage or something like that ? Can I do someting to stop them ? Should I shield the 230V cables ? If yes, where should I tie the shield, at earth or at circuit gnd ? Would it help if I place some sbubbers on the switch ? I don't even know what the problem is, but I suspect it's from the switch.
And one more thing. Could I simulate the parasitic behavior in LTSpice ? What would be the key elements in the presented context ?
Thanks !
