The diode idea might work. Depending on the nature of the little spike, a small capacitor across the switch pins might help as well (e.g. a small <1uF non-dielectric). I'd be willing to bet it's the toggle switch rather than relay that's causing the noise, but you could try doing the capacitor thing across one or both.
|