@Former Member posted:Had a couple leds blow out when a train derailed on the switch. Think the diode wasn't rated high enough. Going to switch out for bigger ones and test it out for a bit. Don't want to give you guys a how to if it's not 100%
You may need to put a TVS diode in the switch to clamp spikes. The resistors will limit current, but will have no effect on the maximum voltage that hits the LED.