Protection from electrical noise interference and damaging power transients